[HELP] Next page... = How?

Status
Not open for further replies.
Level 9
Joined
Aug 7, 2009
Messages
380
Ya, hello
How to ... make something like when you buy something in shop, there'll be a something "Next page". When you click it, the shop will appears another weapons page and "Previous Page" then you'll back to last weapon page? So hard to explain. Not understand = ask :D
 
Level 12
Joined
Apr 16, 2010
Messages
584
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
 
Level 11
Joined
May 26, 2009
Messages
760
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?
 
Level 12
Joined
Apr 16, 2010
Messages
584
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.
 
Level 9
Joined
Aug 7, 2009
Messages
380
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.
Top