• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Trigger Problem

Status
Not open for further replies.
Level 4
Joined
Jan 3, 2009
Messages
64
Hello!

I was trying to make a trigger who only unlock the ally panel for the players 1-9 and adds starting resources for these players, but i can't find a way to :D.

OBS¹: The Players 10-12 are users

OBS²: I can't find a way to do without the CRT(something i call Completely Retarded Triggers, i can't explain :D)

SOLVED by MYSELF
 
Last edited:
Level 4
Joined
Jan 3, 2009
Messages
64
  • Actions
  • For each (Integer A) from 1 to 9, do (Actions)
    • Loop - Actions
      • Player - Set (Player(IntegerA)) Current Gold to 750
      • Player - Set (Player(IntegerA) +1 )) Current Gold to 750
      • Set Lock Ally Panel Off
When it asks for a player, go to Conversion - Convert player index to player.


To unlock the ally panel i just need to put it there?

It is not a variable Sorry! i can't remember the right action heeheh!

And to put other player there i just need to that?

And Man, can you make a explanation about this integer A?
 
Level 15
Joined
Aug 14, 2007
Messages
936
I will.. for integer A from 1 to 9
that means the warcraft runs 9 times
first will take : 1 as reference
second: 2
third: 3
...
ninth: 9
so basically when u convert numbers to players
then they will run 9 times then refer to 9 different players! that saves alot of space in the code
 
Level 4
Joined
Jan 3, 2009
Messages
64
  • Actions
  • For each (Integer A) from 1 to 9, do (Actions)
    • Loop - Actions
      • Player - Set (Player(IntegerA)) Current Gold to 750
      • Player - Set (Player(IntegerA) +1) Current Gold to 750
      • Game - Set Lock alliance settings to Off
So this will give gold to Player 1 and Player 2 and Set Lock alliance settings off to both?
 
Status
Not open for further replies.
Top