[HELP] Next page... = How?

Status
Not open for further replies.
Do like this:
  • Actions
    • Unit - Create 1 Shop for Player 1 (Red) at (Center of (Playable map area)) facing Default building facing degrees
    • Unit - Hide (Last created unit)
    • Custom script: if ( GetLocalPlayer() == Player(0) ) then (Do not type next>>> when you type 0 as player it refers to Player 1 Red, if type 1 to Player 2 Blue and so on.)
    • Unit - Unhide (Last created unit)
    • Custom script: endif
Edit: so now you created a shop but it's seen only for player 1 red. Or to player which number you typed here: if ( GetLocalPlayer() == Player(here) ) then but +1
 
Do like this:
  • Actions
    • Unit - Create 1 Shop for Player 1 (Red) at (Center of (Playable map area)) facing Default building facing degrees
    • Unit - Hide (Last created unit)
    • Custom script: if ( GetLocalPlayer() == Player(0) ) then (Do not type next>>> when you type 0 as player it refers to Player 1 Red, if type 1 to Player 2 Blue and so on.)
    • Unit - Unhide (Last created unit)
    • Custom script: endif
Edit: so now you created a shop but it's seen only for player 1 red. Or to player which number you typed here: if ( GetLocalPlayer() == Player(here) ) then but +1

This would enable me to make any unit only seen by one specific player?
 
This would enable me to make any unit only seen by one specific player?
Yes.

Ok, i'll try and test :). But do they stuck on each other 'cause you know, buildings can't build near others. If they do stuck, tell me how to... fix :D
try to create shops in game do not place on map in WE, then maybe they won't stuck on each other, like in DotA i guess.
 
1st time i try it appears a board and say trigger is disabled. And disconnect from WE. I tried again to take screenshot, but it not appears a board this time, but it disconnect from WE, so, i can't do anything. I Copy your script so it can't be my typo problem i guess. And as Stanley said, 0 = player red, 1 = player blue and so on to all player? hope that's not my problem.
EDIT: There's also a board which highlight some lines that contain the custom script. This one i guess it transform GUI to JASS to works
 
Status
Not open for further replies.
Back
Top