HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Not sure whether this would work 100% or not

08-22-2006, 01:58 PM#1
darkwulfv
I'm unsure how to test this, so i came here to ask. This trigger runs whenever a certain unit (as specified via conditions) attacks. Now, I don't know if this would work on muiltple units (not MUI, only one unit uses this per team) but i mean if multiple units were attacked. This spell isn't too easy to test, as there's nothing that really makes it stand out. i'm mostly worries about the attacked unit part. Does that need to be put into a variable? I'm sure that this could be done easy in JASS, in fact, I KNOW it can. I'm just terrible at JASS when there's conditions like this. It throws me off. But, I will try my best. In the mean time, here's my trigger.
EDIT: After some thinking, I don't think this will work as I intended. I guess It won't matter much, there was an option like this in the ability editor. No need to worry about this it's fixed.
Trigger:
Hot Feet
Collapse Events
Unit - A unit Is attacked
Collapse Conditions
(Unit-type of (Attacking unit)) Equal to Admiral Proudmoore
Collapse Actions
Custom script: local real udg_HotFeetMoveSpeed
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
((Attacked unit) has buff Hot Feet ) Equal to True
Collapse Then - Actions
Set HotFeetMoveSpeed = (Current movement speed of (Attacked unit))
Unit - Set (Attacked unit) movement speed to ((Current movement speed of (Attacked unit)) + ((Current movement speed of (Attacked unit)) x 0.15))
Wait 3.00 game-time seconds
Unit - Set (Attacked unit) movement speed to HotFeetMoveSpeed
Custom script: set udg_HotFeetMoveSpeed = 0
Collapse Else - Actions
Do nothing
08-22-2006, 02:04 PM#2
aquilla
it probably would but I've been told set unit movement speed is buggy, better use an ability based off of endurance/unholy aura. make a spellbook ability with it in and disable it to all players to hide the icon when you give the unit the spellbook
08-22-2006, 02:17 PM#3
darkwulfv
yea, that or dummies would work. But i think it'd be easier to just go ahead and use whats in the ability editor.
Right now im searching the forums for a thread on allowing negative values... I just can't seem to find it!
08-22-2006, 02:59 PM#4
DioD
shift+click allow enter any value.
08-22-2006, 03:32 PM#5
darkwulfv
I found it :D