Different setting for different player

Status
Not open for further replies.
If you want to do anything for a specific player, you should put it in a certain code block:

For Player 1 for example:

JASS:
if GetLocalPlayer() == Player(0) then
    <This code will only affect player 1>
endif

But becareful.
If you put stuff like "Kill bla bla bla" in there, it could cause desyncs.

I hope this helped :)
 
In GUI, it would be easy. All you need is custom script.

Create a custom script like this:

  • Custom script: if GetLocalPlayer() == <your player here> then
Under it, put everything you want in GUI

When you're done, create another custom script:
  • Custom script: endif
As simple as that :)

Since you don't know Jass, I'll help you with what you can do for each type of player:

(Picked Player) -----> Replace the <your player here> in the code with GetEnumPlayer()
(Triggering Player) -----> Replace it with GetTriggerPlayer()

Player 1-12 ------> Replace it with Player(#-1)
The # is the player's number.

Player 1 ---> 0
Player 2 ---> 1
Player 3 ---> 2

...

This couldn't be done in GUI, so I made it as GUI-friendly as possible for you using
custom script :)
 
Status
Not open for further replies.
Top