Trigger Error

ZeroThirteen

New Member
Reaction score
35
THIS IS NOT YET SOLVED

I have a trigger that replaces training targets that sit there and do nothing with ones that attack. Unfortunately, it's not working the way it should be. Here are the triggers:

Code:
[B]Events[/B]
Map initialization
[B]Conditions[/B]
[B]Actions[/B]
Set Towers = (Units in (Playable map area) owned by Player 12 (Brown))
Code:
[B]Events[/B]
Player - Player 1 (Red) types a chat message containing attack on as An exact match
Player - Player 2 (Blue) types a chat message containing attack on as An exact match
Player - Player 4 (Purple) types a chat message containing attack on as An exact match
Player - Player 6 (Orange) types a chat message containing attack on as An exact match
Player - Player 7 (Green) types a chat message containing attack on as An exact match
[B]Conditions[/B]
[B]Actions[/B]
Unit Group - Pick every unit in Towers and do (Actions)
    Loop - Actions
        Unit - Replace (Picked unit) with a Training Target (Attacking) using The old unit's relative life and mana
        Set Towers = (Units in (Playable map area) owned by Player 12 (Brown))

The trigger that turns off the attack functions the same.



And, for bonus points, tell me why this isn't working:
Code:
[B]Events[/B]
Unit - Training Target 0009 <gen>'s life becomes Less than 100.00
Unit - Training Target 0010 <gen>'s life becomes Less than 100.00
Unit - Training Target 0011 <gen>'s life becomes Less than 100.00
Unit - Training Target 0012 <gen>'s life becomes Less than 100.00
Unit - Training Target 0013 <gen>'s life becomes Less than 100.00
[B]Conditions[/B]
[B]Actions[/B]
Unit - Set life of (Triggering unit) to 100.00%
 

Magoiche

Member
Reaction score
20
Code:
Unit Group - Pick every unit in Towers and do (Actions)
    Loop - Actions
        Unit - Replace (Picked unit) with a Training Target (Attacking) using The old unit's relative life and mana
        [B]Set Towers = (Units in (Playable map area) owned by Player 12 (Brown))[/B]

Put the bold line before the loop.
The problem is that you say to the trigeer use a variable that hasn't been seted yet =D
 

ZeroThirteen

New Member
Reaction score
35
If you look at the map intialization trigger, it sets the units before the trigger that replaces them fires. There's something else wrong with it, and I don't know what.
 

Magoiche

Member
Reaction score
20
sry i missed it xD

Lets see....
What exactaly it do?
Nothing?


Try making a trigger that only run the replace line and see what happens.
If it work you will have 2 solutions:

1) You are typing wrong.(What is impossible)
2) Another trigger don't let this trigger work(i think)
 

ZeroThirteen

New Member
Reaction score
35
EDIT: I figured it out. XD
It turns out that it did replace the unit the whole time. It's just that it was based on Scout Tower, so its acquisition range was set to 0. Thanks anways! +Rep

RE-EDIT: Ech... nevermind. XP
Any assistance yet? I'll go back over the stats in the object editor, but nothing works as of yet...
 

Magoiche

Member
Reaction score
20
if its to be only the tower you want tis simple.
In the pick every blablabla
Make a matching and do the conditions you want =O
 

ZeroThirteen

New Member
Reaction score
35
That's what it's doing. I still can't figure out why it's ineffective (or defective). Somebody please help me.
EDIT: Now I noticed that I forgot to set the targets allowed. :eek:
RE-EDIT Again, it's still not working.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top