- Joined
- Feb 9, 2009
- Messages
- 1,814
Basically this is a spell that i got, in the second Trigger (RuinedFleshDamage) it states that the unit with this ability has to be present in the map installation. My question is that can there be a way around this? because i want it for a specific hero that is chosen in a hero tavern and not immediately on the map.
-
Ruined Flesh Init
-

Events
-


Unit - A unit Starts the effect of an ability
-
-

Conditions
-


(Ability being cast) Equal to Runed Flesh
-
-

Actions
-


Set RF_ShieldLife = 500.00
-


Set RF_Caster = (Casting unit)
-


Set RF_Duration = 30.00
-


Trigger - Turn on Ruined Flesh Loop <gen>
-
-
-
Ruined Flesh Damage
-

Events
-


Unit - Blood Mage 0015 <gen> Takes damage
-
-

Conditions
-


((Attacked unit) has buff Runed Flesh ) Equal to True
-
-

Actions
-


-------- Blood mage 0015 <Gen> is a preset unit, you would need a unit already placed on the map on map initialization --------
-


Set RF_Damage = (Damage taken)
-


Set RF_ShieldLife = (RF_ShieldLife - RF_Damage)
-


Unit - Set life of RF_Caster to ((Life of RF_Caster) + RF_Damage)
-
-
-
Ruined Flesh Loop
-

Events
-


Time - Every 1.00 seconds of game time
-
-

Conditions
-

Actions
-


Set RF_Location = (Position of RF_Caster)
-


-------- This works a timer. for each second a real variable is decreased by 1. The maximum of that real (Duration) is equal to the amount of seconds it lasts --------
-


Set RF_Duration = (RF_Duration - 1.00)
-


If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-



If - Conditions
-




RF_ShieldLife Greater than 0.00
-
-



Then - Actions
-




If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-





If - Conditions
-






RF_Duration Greater than 0.00
-
-





Then - Actions
-





Else - Actions
-






-------- Most Special Effects carry out their effect even when destroyed. --------
-






Set RF_Duration = 30.00
-






Set RF_ShieldLife = 500.00
-






Special Effect - Create a special effect attached to the Attach Point - Overhead of RF_Caster using BlueImmolationDamage.mdx
-






Special Effect - Destroy (Last created special effect)
-
-
-
-



Else - Actions
-




-------- A location leaks a point, taking up memory. It is removed by this jass line. --------
-




Custom script: call RemoveLocation (udg_RF_Location)
-




Unit - Remove Runed Flesh buff from RF_Caster
-




Trigger - Turn off (This trigger)
-
-
-
-




