- Joined
- Feb 1, 2009
- Messages
- 107
ok, so I'm a real noob with JASS and I was wondering if someone would want to help me understand this JASS code I found and need to edit:
So, I only need to change "player_to_display_to" to the player I want to display the multiboard. How do I do that in JASS? I want to show my multiboard to a triggering player, so I should replace "player_to_display_to" with "TriggerPlayer"?
For the multiboard. I want to set variables to each multiboard I create. So if I create my multiboard and then do "Set Multiboard[Player number of Triggering Player] = Last created Multiboard", then can i add "udg_Multiboard[GetConvertedPlayerId(GetTriggerPlayer())]" to the JASS code, replacing "my_multiboard"? Will the JASS script understand the variable array, too?
So I would end up with something like...
That's what I've learned making having some GUI triggers translated into JASS by the editor, so I could have an idea of what to use on the script... How far am I from what I want? =P
JASS:
if GetLocalPlayer() == player_to_display_to then
call MultiboardDisplay(my_multiboard, true)
endif
So, I only need to change "player_to_display_to" to the player I want to display the multiboard. How do I do that in JASS? I want to show my multiboard to a triggering player, so I should replace "player_to_display_to" with "TriggerPlayer"?
For the multiboard. I want to set variables to each multiboard I create. So if I create my multiboard and then do "Set Multiboard[Player number of Triggering Player] = Last created Multiboard", then can i add "udg_Multiboard[GetConvertedPlayerId(GetTriggerPlayer())]" to the JASS code, replacing "my_multiboard"? Will the JASS script understand the variable array, too?
So I would end up with something like...
JASS:
if GetLocalPlayer() == TriggerPlayer then
call MultiboardDisplay(udg_Multiboard[GetConvertedPlayerId(GetTriggerPlayer())], true)
endif
That's what I've learned making having some GUI triggers translated into JASS by the editor, so I could have an idea of what to use on the script... How far am I from what I want? =P