HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Need a little help!

05-25-2006, 09:13 AM#1
Karawasa
Why doesn't this do anything?

Trigger:
Guardian Build Aura
Collapse Events
Unit - A unit Begins construction
Unit - A unit Begins an upgrade
Collapse Conditions
((Triggering unit) has buff Quickness of the Flag ) Equal to True
Collapse Actions
Wait 3.00 game-time seconds
Unit - Set (Triggering unit) construction progress to 100%
Unit - Set (Triggering unit) upgrade progress to 100%
05-25-2006, 10:59 AM#2
-=Emergenzy=-
Hmm maybe its the Trigger Unit. Try see if there are somthing like Constructing Unit.

I dont have WE right now. But instead
Unit - Set (Triggering unit) construction progress to 100%

Then set the the progress time to 3 seconds in OE.
05-25-2006, 11:22 AM#3
Chriz.
I think the construction part and the upgrade part need to be seperate triggers, right now a unit has to be building something while upgrading at the same time for it to work. At least that's my best guess >.<
05-25-2006, 01:58 PM#4
Captain Griffen
Only one event has to fire.

Could be you cannot set it to 100%, so try 99%, and could also be that triggering unit is not the correct unit. Also, obviously make sure it has the buff.

Put in some debugging stuff to see if it has the right unit, etc.
05-25-2006, 09:53 PM#5
Karawasa
Trigger:
Guardian Build Aura
Collapse Events
Unit - A unit Begins construction
Unit - A unit Begins an upgrade
Conditions
Collapse Actions
Custom script: local unit udg_Temp_Unit
Set Temp_Unit = (Triggering unit)
Wait 3.00 game-time seconds
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Temp_Unit has buff Quickness of the Flag ) Equal to True
Collapse Then - Actions
Unit - Set Temp_Unit construction progress to 99%
Unit - Set Temp_Unit upgrade progress to 99%
Collapse Else - Actions
Do nothing

This doesn't work either. I tried debugging and apparently the if/then/else is not firing.
05-25-2006, 09:55 PM#6
shadow1500
Try putting debug messages outside the if, inside, and on the else.
05-25-2006, 10:34 PM#7
Zoxc
Quote:
Originally Posted by Karawasa
I tried debugging and apparently the if/then/else is not firing.

You mean that nothing happens after the wait or the if ain't true? If it's the last one this should be more ability directed.
05-25-2006, 10:39 PM#8
MysticGeneral
Trigger:
Melee Initialization
Collapse Events
Unit - A unit Begins construction
Conditions
Collapse Actions
Wait 0.02 seconds
Set dfadfasdf = (Triggering unit)
Game - Display to (All players) the text: boogers
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
((Triggering unit) has buff Devotion Aura) Equal to True
Collapse Then - Actions
Game - Display to (All players) the text: boogers
Unit - Set (Triggering unit) construction progress to 99%
Else - Actions

Is what I put in my map. It seemed to work perfectly. I needed the wait 0.02 because it doesn't seem to work without it. Not even with 0.01. So, here's a fixed code of yours.

Trigger:
Guardian Build Aura
Collapse Events
Unit - A unit Begins construction
Unit - A unit Begins an upgrade
Conditions
Collapse Actions
Wait 3.00 game-time seconds
Set Temp_Unit = (Triggering unit)
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Temp_Unit has buff Quickness of the Flag ) Equal to True
Collapse Then - Actions
Unit - Set Temp_Unit construction progress to 99%
Unit - Set Temp_Unit upgrade progress to 99%
Collapse Else - Actions
Do nothing
05-25-2006, 10:46 PM#9
Karawasa
Well, I think the problem lies with the if. I don't see why though, I am positive the unit has the buff because the Aura refresh rate is definetly under 3 seconds...
05-25-2006, 11:00 PM#10
MysticGeneral
I'm sorry Karawasa. That above post is really messy. Remove your custom script action. Move the Set Variable under the 3 seconds action. It'll work then.
05-26-2006, 12:37 AM#11
Karawasa
Quote:
Originally Posted by MysticGeneral
I'm sorry Karawasa. That above post is really messy. Remove your custom script action. Move the Set Variable under the 3 seconds action. It'll work then.

I think I posted as you were editing. I will try this once I get home tonight. Thanks for testing it out btw.
05-26-2006, 02:12 AM#12
MysticGeneral
No problem. Curious as to why you have the 3 seconds there. If you don't really need it, you can set it to 0.02 to make it feel seamless.
05-26-2006, 02:51 AM#13
Karawasa
Well there are some structures that normally take 3 seconds to build and they are the basic ones. I feel if they built instantly it might be a little too strong of an Aura.

Btw, works fine, GJ!