- Joined
- Aug 19, 2015
- Messages
- 68
I needed different attackrange for my clones so i scripted it..
but it crashes sometimes when the unit is attacked while used
thx for your opinions
but it crashes sometimes when the unit is attacked while used
-
clone att range
-

Events
-


Unit - A unit enters (Playable map area)
-
-

Conditions
-


((Triggering unit) is an illusion) Gleich True
-


(Unit-type of (Triggering unit)) Gleich Heiress
-
-

Actions
-


Set aantileak_point = (Position of (Triggering unit))
-


Set aantileak_player = (Owner of (Triggering unit))
-


Unit - Remove (Triggering unit) from the game
-


Set int10 = (int10 + 1)
-


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



'IF'-Bedingungen
-




(((Integer(seconds)) + int10) mod 3) Gleich 1
-
-



'THEN'-Aktionen
-




Set aantileak_point2 = (Position of Heiress 0015 <gen>)
-




Custom script: call SetUnitX(gg_unit_O008_0015, GetLocationX(udg_aantileak_point))
-




Custom script: call SetUnitY(gg_unit_O008_0015, GetLocationY(udg_aantileak_point))
-




Unit - Create 1 Heiress clone for aantileak_player at aantileak_point2 facing (Facing of Heiress 0015 <gen>) degrees
-




Custom script: call RemoveLocation (udg_aantileak_point2)
-
-



'ELSE'-Aktionen
-




Unit - Create 1 Heiress clone for aantileak_player at aantileak_point facing (Facing of Heiress 0015 <gen>) degrees
-
-
-


Custom script: call RemoveLocation (udg_aantileak_point)
-


Hero - Set (Last created unit) Hero-level to (Hero level of Heiress 0015 <gen>), hide level-up graphics
-


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



'IF'-Bedingungen
-




(Level of Vampire Slaying Talent (main) for Heiress 0015 <gen>) > 0
-
-



'THEN'-Aktionen
-




Hero - Learn skill for (Last created unit): Vampire Slaying Talent (main)
-
-



'ELSE'-Aktionen
-
-


Unit - Set level of stack Damage Bonus (val) for (Last created unit) to 100
-


Unit - Set level of stack Strength bonus for (Last created unit) to 100
-


Unit - Set level of stack armor shell for (Last created unit) to 100
-


Unit - Set level of stack Lifesteal (shown icon) for (Last created unit) to 100
-


Unit - Set level of stack move (ghostkey) for (Last created unit) to 100
-


Unit - Set level of stack hpreg (ghostkey) for (Last created unit) to 100
-


Unit - Set level of Val passives (crit) for (Last created unit) to ((Hero level of Heiress 0015 <gen>) / 10)
-


Unit - Set level of Vampire Slaying Talent (main) for (Last created unit) to ((Level of Vampire Slaying Talent (main) for Heiress 0015 <gen>) + 0)
-


Unit - Set level of Vampire Slaying Talent (stats) for (Last created unit) to ((Level of Vampire Slaying Talent (main) for Heiress 0015 <gen>) + 1)
-


Unit - Set level of Vampire Slaying Talent (evasion) for (Last created unit) to ((Level of Vampire Slaying Talent (main) for Heiress 0015 <gen>) + 1)
-


Hero - Modify unspent skill points of (Last created unit): set to 0 points
-


Hero - Modify strength of (Last created unit): set to (strength of Heiress 0015 <gen> (Ausschließen bonuses))
-


Hero - Modify agility of (Last created unit): set to (agility of Heiress 0015 <gen> (Ausschließen bonuses))
-


Hero - Modify Intelligence of (Last created unit): set to (Intelligence of Heiress 0015 <gen> (Ausschließen bonuses))
-


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



'IF'-Bedingungen
-




(Heiress 0015 <gen> has an item of type |cffa335eeKey Fragment|r) Gleich True
-
-



'THEN'-Aktionen
-




Hero - Create |cffa335eeKey Fragment|r and give it to (Last created unit)
-




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





'IF'-Bedingungen
-






(Charges remaining in (Item carried by Heiress 0015 <gen> of type |cffa335eeKey Fragment|r)) > 1
-
-





'THEN'-Aktionen
-






Gegenstand - Set charges remaining in (Last created item) to ((Charges remaining in (Item carried by Heiress 0015 <gen> of type |cffa335eeKey Fragment|r)) - 1)
-






Hero - Create |cffa335eeKey Fragment|r and give it to (Last created unit)
-






Gegenstand - Make (Item carried by (Last created unit) of type |cffa335eeKey Fragment|r) Not Droppable
-
-





'ELSE'-Aktionen
-
-
-



'ELSE'-Aktionen
-
-


For each (Integer A) from 1 to 6, do (Actions)
-



Loop - Actions
-




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





'IF'-Bedingungen
-






(Item-type of (Item carried by Heiress 0015 <gen> in slot (Integer A))) != |cffa335eeKey Fragment|r
-






(Item-type of (Item carried by Heiress 0015 <gen> in slot (Integer A))) != |cff1eff00Ankh der Reinkarnation|r
-






(Item-type of (Item carried by Heiress 0015 <gen> in slot (Integer A))) != |cff1eff00Ankh of Van Helsing|r
-






(Item-type of (Item carried by Heiress 0015 <gen> in slot (Integer A))) != |cff0070ddTemporal Mega Wall 2|r
-






(Item-type of (Item carried by Heiress 0015 <gen> in slot (Integer A))) != |cff1eff00Temporal Wall 4|r
-






(Item-type of (Item carried by Heiress 0015 <gen> in slot (Integer A))) != |cff1eff00Mobile Slayer Shop|r (Only Hunter)
-
-





'THEN'-Aktionen
-






Hero - Create (Item-type of (Item carried by Heiress 0015 <gen> in slot (Integer A))) and give it to (Last created unit)
-






Gegenstand - Make (Last created item) Not Droppable
-
-





'ELSE'-Aktionen
-
-
-
-


Unit - Add classification of Summoned to (Last created unit)
-


Unit - Add a 60.00 second Generic expiration timer to (Last created unit)
-
-


