- Joined
- Nov 3, 2018
- Messages
- 79
I'm working on a thing with a talent system (i'm a gui user) how do i get the number of a integervariable?
this is what currently is there which gets the ammount of lumber the player has how would the appropiate code be so it checks for an integer number instead of the player wood? probably a noobie question but im really new to vjass and i googled a lot
JASS:
method GetTalentPoints takes nothing returns integer
return GetPlayerState(this.ownerPlayer, PLAYER_STATE_RESOURCE_LUMBER)
endmethod
method SetTalentPoints takes integer points returns nothing
call SetPlayerState(this.ownerPlayer, PLAYER_STATE_RESOURCE_LUMBER, points)
this is what currently is there which gets the ammount of lumber the player has how would the appropiate code be so it checks for an integer number instead of the player wood? probably a noobie question but im really new to vjass and i googled a lot