| 02-27-2005, 07:18 PM | #1 |
If you saw the other thread, and had no clue, maybe you'll be able to help me on this one (last one btw). OK, I have a building cast an ability called "Halt Attack". Code:
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Ability being cast) Equal to Type 8 Halt Attack
((Triggering unit) is A structure) Equal to True
Then - Actions
Trigger - Turn on Set Attacks <gen>
Unit - Remove Type 8 Halt Attack from AttackDefend[1]
Else - ActionsOk, so the ability gets removed, only...even though the 'Set Attacks' trigger says it should go off every .1 seconds... Code:
Events
Time - Every 0.10 seconds of game timeNothing happens. This trigger is humongus, so I'm not going to post it here. Basically what it does is gives a whole bunch of units some abilities, then turns itself off. Unfortunatly, when I cast the "halt Attack" spell which should run this, nothing happends. Any ideas? |
| 02-28-2005, 02:18 AM | #2 |
I dunno what you posted is a bit too vague and unclear for me to figure out anything. Why not try debugging first. At different stages in the trigger make the game display a message like the unit name of the affected unit, or create a special effect on the affected unit, or whether the unit has the ability, just to check where and what is going wrong in the trigger, and if absolutely nothing on the bottom runs, that means the trigger isn't firing at all. |
| 03-01-2005, 02:04 AM | #3 |
Guest | Wait...Isn't this supposed to be in trigger Haven? o_O (Sorry I can't help you...Maybe the answer lies in the trigger parts not posted.) |
