From what I see (remember that I've never learned a thing about JASS in my life...) in his cheatpack he has a
call TriggerRegisterPlayerChatEvent(CHEATS,p2p,"-",false)
which, obviously, searches for when someone says something with a - in it. Then he states if the text typed was [code] (-gold, for example) he would then write the steps it should take to carry out said code.
(In this case, call SetPlayerState(p2p,PLAYER_STATE_RESOURCE_GOLD,GetPlayerState(p2p,PLAYER_STATE_RESOURCE_GOLD)+S2I(SubString(s2s,6,13))) which obviously adds the amount of gold.)
Then there's an "elseif" for when the code isn't -gold but something else.
It's basically an if-then function thing. When all the possible codes are done, there's an
endif
there to say that there's no more possibilities.
Hope this helped a bit
(and hope I wasn't dead wrong =S)
_________________
Quote:
(20:53:52) Bartimaeus: Thank you, Jen.
(20:53:56) Bartimaeus: Truly, you are wise.
Quote:
(23:44:12) Bartimaeus: I was in pubic school until middle school...
Learn how to extract and read RAW Codes here!Need help? Click here and ask your question!