HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Aura Tower Ability Bug

03-30-2006, 01:58 PM#1
Knoore
Scroll down :)

I made a Aura tower for my upcoming map, but its bugged :)

Everything works good, except for the ability tooltip and price, it doesn’t change. If you click the click the "upgrade" the price distracted from your current gold, is correct and increases each time.
Does any1 know what the problem is @ this map?

Trigger:
Aura Tower Part 1
Collapse Events
Unit - A unit Starts the effect of an ability
Collapse Conditions
(Ability being cast) Equal to Damage Aura
Collapse Actions
Game - Display to (All players) the text: (You have upgraded to level + (String((Level of Damage Aura for (Triggering unit)))))
Unit - Set the custom value of (Triggering unit) to ((Point-value of (Triggering unit)) + ((Level of Damage Aura for (Triggering unit)) x 2500))
Unit - Increase level of Damage Aura for (Triggering unit)
Unit - Increase level of Damage Aura Casted for (Triggering unit)

Thanks in Advance

Knoore
Attached Files
File type: w3xAbility Bug.w3x (18.4 KB)
03-30-2006, 04:27 PM#2
Linera
If you deselect the unit and reselect it after upgrading, it then shows correct value for gold.

Try this trigger:
Trigger:
Aura Tower Part 1
Collapse Events
Unit - A unit Starts the effect of an ability
Collapse Conditions
(Ability being cast) Equal to Damage Aura
Collapse Actions
Game - Display to (All players) the text: (You have upgraded to level + (String((Level of Damage Aura for (Triggering unit)))))
Unit - Set the custom value of (Triggering unit) to ((Point-value of (Triggering unit)) + ((Level of Damage Aura for (Triggering unit)) x 2500))
Unit - Increase level of Damage Aura for (Triggering unit)
Unit - Increase level of Damage Aura Casted for (Triggering unit)
Selection - Clear selection
Selection - Select (Triggering unit) for (Owner of (Triggering unit))
03-30-2006, 06:22 PM#3
Knoore
K thanks,
I now got this trigger, all works, cept for the tooltip, it still stays the same, but the price off the item now does change.

I currently just changed the tooltip to a standard message, but this ain't too great, so does anybody know an other ideas of fixing?
Trigger:
Aura Tower Part 1
Collapse Events
Unit - A unit Starts the effect of an ability
Collapse Conditions
(Ability being cast) Equal to Damage Aura
Collapse Actions
Game - Display to (All players) the text: (You have upgraded to level + (String((Level of Damage Aura for (Triggering unit)))))
Unit - Set the custom value of (Triggering unit) to ((Point-value of (Triggering unit)) + ((Level of Damage Aura for (Triggering unit)) x 2500))
Unit - Increase level of Damage Aura for (Triggering unit)
If ((Level of Damage Aura Casted for (Triggering unit)) Less than 1) then do (Unit - Add Damage Aura Casted to (Triggering unit)) else do (Unit - Increase level of Damage Aura Casted for (Triggering unit))
If ((Level of Damage Aura Casted for (Triggering unit)) Equal to 10) then do (Unit - Remove Damage Aura from (Triggering unit)) else do (Do nothing)
Selection - Clear selection
Selection - Select (Triggering unit) for (Owner of (Triggering unit))
Thanks in advance,
Knoore
Attached Files
File type: w3xAbility Bug.w3x (18.7 KB)