Player as variable in condition

Centreri

New Member
Reaction score
1
For my swap spell (swaps position of two units), I wanna make it so that friendly players could turn on/off if others can cast it on them. So, I thought I'd make something like
Event:
Player enters chat message '-swapon'
Action:
set Allowance[player number of[triggering player]] on.

Something basically like that. The problem is that it forces me to specify an exact player for the event. Is there any way to circumvent that, or do I have to make 20 triggers to make this work (on/off for 10 players)?

Oh, and one side-question, how do I increase maximum allowed mana cost for a spell?
 

Centreri

New Member
Reaction score
1
Shame. I thought Blizzard would think to make it just 'Player enters chat message'. Thanks.

What about the mana thing?
 

Drunken_God

Hopes to get back into Mapmaking with SC2 :)
Reaction score
106
i dont think its changeable(why you want it to set higher then 999999?)
 

Sim

Forum Administrator
Staff member
Reaction score
534
> Shame. I thought Blizzard would think to make it just 'Player enters chat message'. Thanks.

You could still loop through 12 players at map initialization and add to your trigger the event: "(Picked player) enters a chat message -swapon"...

That would be Blizzard's 'Player enters chat message'! :)

> how do I increase maximum allowed mana cost for a spell?

Try shift-clicking and setting a big value. If it doesn't work then.... consider 999999 as enough!
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top