Forum in READ ONLY mode! All questions and discussions on Discord official server, invite link: https://discord.gg/VxsGzJ7

How to get gumpid?

Ask for help
Post Reply
Atida
Neophyte
Neophyte
Posts: 17
Joined: 15.08.2017 4:33

How to get gumpid?

Post by Atida »

How to get gumpid in game? And Is this gumpid the same for another character?
User avatar
Vizit0r
Developer
Developer
Posts: 3958
Joined: 24.03.2005 17:05
Contact:

Re: How to get gumpid?

Post by Vizit0r »

what you mean ny "gumpid" ?

maybe "function GetGumpID(GumpIndex : Word) : Cardinal" is what you're looking for.
"Пишите код так, как будто сопровождать его будет склонный к насилию психопат, который знает, где вы живете". (с) Макконнелл, "Совершенный код".
Atida
Neophyte
Neophyte
Posts: 17
Joined: 15.08.2017 4:33

Re: How to get gumpid?

Post by Atida »

In game window have three or more gump, I want to find the specified gump, but I do not know that gumpid, Is there a good way to do it?
User avatar
Vizit0r
Developer
Developer
Posts: 3958
Joined: 24.03.2005 17:05
Contact:

Re: How to get gumpid?

Post by Vizit0r »

you can use GetGumpsCount to obtain total gumps count, than check it one by one in loop.
"Пишите код так, как будто сопровождать его будет склонный к насилию психопат, который знает, где вы живете". (с) Макконнелл, "Совершенный код".
Atida
Neophyte
Neophyte
Posts: 17
Joined: 15.08.2017 4:33

Re: How to get gumpid?

Post by Atida »

Good Idea.
Post Reply