HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Multiboards

04-01-2007, 02:13 PM#1
Exilus
how do i make them show up to only one player? (or one player group)
04-01-2007, 03:00 PM#2
blu_da_noob
This should be in T&S. You would create the multiboard for all players, hide it for all players, and then show it if GetLocalPlayer == YourPlayer (or IsPlayerInForce(GetLocalPlayer(),YourForce)).
04-01-2007, 03:03 PM#3
Exilus
i am not familiar with jass. is it possible to make it via triggers?
04-01-2007, 03:10 PM#4
Fireeye
Not with GUI, you'll need JASS for such an action.
I'll explain you what
if GetLocalPlayer() == <Your Player> then
does.
This condition make it possible to make only 1 action for a specific player, so you can show 1 multiboard to only 1 player, but you have to be careful with this condition because it can cause desync with several actions, like creating 1 unit using GetLocalPlayer() because the other Players won't see it.
04-01-2007, 03:13 PM#5
Exilus
yeah but i have no idea what to do..i am not familiar with jass at all.
04-01-2007, 03:17 PM#6
Fireeye
don't have my WE opened atm, but i'll to post you the part you need.
Trigger:
//...
custom script:if GetLocalPlayer() == GetTriggerPlayer() then
//Put your actions here
custom script:endif
//...
04-01-2007, 03:19 PM#7
Exilus
okay...lets say i want to show the multiboard to all allies of playing 1 (red). what do i replace TriggerPlayer with?
04-01-2007, 03:25 PM#8
Fireeye
Uhm, not sure if this will work, due i don't use GetLocalPlayer() that often.
Trigger:
Player Group - Pick every player in (All players) and do (Actions)
Collapse Loop - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
((Picked player) is an ally of Player 1 (Red)) Equal to True
Collapse Then - Actions
Custom script: if GetLocalPlayer() == GetEnumPlayer() then
//Put your actions here
Custom script: endif
Else - Actions
04-01-2007, 03:34 PM#9
Exilus
thanks. it worked.
04-01-2007, 08:18 PM#10
Panto
Moved.