• 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.

[SOLVED] Group controling HELP ME FIX please

Status
Not open for further replies.
Level 7
Joined
May 18, 2010
Messages
264
K this is my problem
  • Events
  • player-player1(red) types a chat message containg zxc as an exact match
  • Conditions
  • Actions
  • Set Heroes = (Units in (playble map area) matching (((Triggering unit)is a hero) Equal to True))
  • Unit Group - Pick evry unit in Heroes and do (Unit - Move (Picked unit) instantly to (Center of (Playble map area)
.
thats the RAW trigger that i need fixed
i need to pick heroes from around the world and move them to a spot
then after 10 sec move them back to theyre old spot ... Please help
bad english....
 
Last edited:
Level 20
Joined
Jul 6, 2009
Messages
1,885
  • Trigger
    • Events
      • Player - Player 1 (Red) types a chat message containing zxc as An exact match
    • Conditions
    • Actions
      • Set Counter = 0
      • Set Heroes = (Units in (Playable map area) matching (((Matching unit) is A Hero) Equal to True))
      • Unit Group - Pick every unit in Heroes and do (Actions)
        • Loop - Actions
          • Set Counter = (Counter + 1)
          • Set Loc[Counter] = (Position of (Picked unit))
          • Set Hero[Counter] = (Picked unit)
          • Set Loc2 = (Center of YourRegion)
          • Unit - Move (Picked unit) instantly to Loc2
          • Custom script: call RemoveLocation(udg_Loc2)
      • Custom script: call DestroyGroup(udg_Heroes)
      • Countdown Timer - Start Timer as a One-shot timer that will expire in 10.00 seconds
  • Trigger 2
    • Events
      • Time - Timer expires
    • Conditions
    • Actions
      • For each (Integer A) from 1 to Counter, do (Actions)
        • Loop - Actions
          • Unit - Move Hero[Counter] instantly to Loc[Counter]
          • Custom script: call RemoveLocation(udg_Loc[bj_forLoopAIndex])
      • Set Counter = 0
 
Last edited:
Level 7
Joined
May 18, 2010
Messages
264
Lolz i tryed it out and well .... it dosent do a shit =,=
i did evrything 100% right as you made it there ... eaven the trigger 2 runs but my hero well it dosent move aniwhere...


i get this error
Line 995: Undeclared variable udg_Loc
(and this down is HighLited)
call RemoveLocation(udg_Loc[bj_forLoopAIndex])

i named evry thiger withought [ ] thingies.. mby that's problem?
 
Last edited:
Status
Not open for further replies.
Top