• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

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