• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

[Trigger] owned by player from 1 - 7

Status
Not open for further replies.
Level 7
Joined
May 18, 2010
Messages
264
  • Unit Group - Pick every unit in (Units in (Playable map area) owned by Player[(Integer A)]) and do (Actions)
    • Loop - Actions
      • Unit - Make (Picked unit) Invulnerable
Integer A = players from 1 - 7? how to do it
i set players(1)= player 1 red
set players(2) = player 2 blue etc

but how i make intreger a to be players from 1-7
 
  • For each (Integer A) from 1 to 7, do (Actions)
    • Loop - Actions
      • Set Players[(Integer A)] = (Player((Integer A)))
I don't see the use in that though.
You don't need to set a variable for players, as they can always be referenced through "Player(number)".

Now it loops from 1 to 7.
And it sets the player(integer A) to the correct player.

I'm sorry if this isn't what you were looking for, but could you then perhaps try to elaborate your problem?
 
I finished it my Way :D the hard way a bit long time but i can now just copy paste it to next one il need.
but youre thing helpt

im making cinema... so the units dont get damaged by timing trigers during the cinema.
THX +Rep

CLOSED CLOSED CLOSED
 
Status
Not open for further replies.
Back
Top