HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Trigger causing weird bug, help.

03-19-2005, 09:37 PM#1
Fragmentation
Here is my triggers

It is a set of 3 triggers that basically work towards one goal which is reduce life periodically of a unit

Triggers:

Untitled Trigger 001
Events
Unit - A unit Begins casting an ability
Conditions
(Ability being cast) Equal to Submerge (Royal Guard)
Actions
Unit Group - Add (Triggering unit) to VIP_Group
Trigger - Turn on Untitled Trigger 003 <gen>
Trigger - Turn on Untitled Trigger 004 <gen>


Untitled Trigger 003
Events
Time - Every 1.00 seconds of game time
Conditions
Actions
Unit Group - Pick every unit in VIP_Group and do (Unit - Set life of (Picked unit) to ((Life of (Picked unit)) - 2.00))



Untitled Trigger 004
Events
Unit - A unit Is issued an order with no target
Conditions
(Issued order) Equal to (Order(unsubmerge))
Actions
Unit Group - Remove (Triggering unit) from VIP_Group


-------------------------

Now the problem is

in-game when i tested out this trigger what happens is. The unit with the submerge ability doesn't have it. What it has is a bright green square that covers the ability art, and instead of submerge its showing the surface tooltip etc. as if the unit is already submerged. I have no trigger telling the unit to submerge or anything. Just those 3 triggers.

Anyone found the problem?

Please help Thanks
03-19-2005, 11:31 PM#2
Guest
Im not sure what could be causing the problem. However, it might fix it if u attach an expiration timer to the unit, then remove it later on.
03-19-2005, 11:39 PM#3
Anitarf
The green square would mean you don't have an icon defined, or that a custom path to an icon is typed wrong. As far as tooltips go, make sure all the stats of your submerge spell are set properly, like the "alternate form unit" and "normal form unit" data fields.Those fields set wrong could cause the game to mix up which instance of the ability to use, turn on (submerge) or turn off (surface).
03-19-2005, 11:58 PM#4
Raptor--
Quote:
Originally Posted by Fragmentation
Now the problem is

in-game when i tested out this trigger what happens is. The unit with the submerge ability doesn't have it. What it has is a bright green square that covers the ability art, and instead of submerge its showing the surface tooltip etc. as if the unit is already submerged. I have no trigger telling the unit to submerge or anything. Just those 3 triggers.

Anyone found the problem?

Please help Thanks

those problems have nothing to do with the triggers, the triggers define what will happen when you use the ability, not how the ability is presented in the UI (user interface) -- something in the actual object fields of the spell is messed up (ability editor)

like anitarf said, a green square means the interface icon is missing, and having the ability disabled or saying the wrong thing has to do with other fields