- Joined
- Aug 15, 2012
- Messages
- 318
I added Replicate from the spellpack made by Losam to my rpg and so far I havnt got it to work once I did everything right that your supposed to do for imports but nothing any ideas?
-
PAS Replicate
-
Events
-
Unit - A unit Is attacked
-
-
Conditions
-
And - All (Conditions) are true
-
Conditions
-
(Unit-type of (Attacking unit)) Equal to Assassin
-
(Level of Replicate for (Attacking unit)) Greater than 0
-
-
-
-
Actions
-
-------- ######################### --------
-
-------- ### --- HashTable --- ### --------
-
Hashtable - Create a hashtable
-
Set HashTable[12] = (Last created hashtable)
-
-------- ######################### --------
-
-------- ### --- Salvando Coisas no HashTable --- ### --------
-
Hashtable - Save Handle Of(Attacking unit) as 1 of (Key (Attacking unit)) in HashTable[12]
-
Hashtable - Save Handle Of(Position of (Load 1 of (Key (Attacking unit)) in HashTable[12])) as 2 of (Key (Triggering unit)) in HashTable[12]
-
-------- ######################### --------
-
-------- Configurando Algumas Variáveis: --------
-
-------- Ilusionista: --------
-
Set Unit[20] = (Load 1 of (Key (Attacking unit)) in HashTable[12])
-
Set ABI_Point_Position[35] = (Load 2 of (Key (Triggering unit)) in HashTable[12])
-
-------- ######################### --------
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Unit[20] is an illusion) Equal to False
-
(Random integer number between 1 and (10 - (Level of Replicate for Unit[20]))) Equal to 1
-
-
Then - Actions
-
-------- ######################### --------
-
-------- ### --- Criando a Unidade --- ### --------
-
Unit - Create 1 Unit (Casting 1) for (Owner of Unit[20]) at ABI_Point_Position[35] facing Default building facing degrees
-
-------- ######################### --------
-
-------- ### --- Salvando Coisas no HashTable --- ### --------
-
Hashtable - Save Handle Of(Last created unit) as 3 of (Key (Last created unit)) in HashTable[12]
-
Set Unit[21] = (Load 3 of (Key (Last created unit)) in HashTable[12])
-
-------- ######################### --------
-
Unit - Add a 1.00 second Generic expiration timer to Unit[21]
-
Hero - Create Replicate and give it to Unit[21]
-
Unit - Set level of Illusions for Unit[21] to (Level of Replicate for Unit[20])
-
Hero - Order Unit[21] to use (Last created item) on Unit[20]
-
-------- ######################### --------
-
-
Else - Actions
-
-
-------- ######################### --------
-
Set Unit[20] = No unit
-
Set Unit[21] = No unit
-
-------- ######################### --------
-
Custom script: call RemoveLocation (udg_ABI_Point_Position[35])
-
-------- ######################### --------
-
-------- ### --- Clear The HashTable --- ### --------
-
Custom script: call FlushParentHashtableBJ( udg_HashTable[12] )
-
-------- ######################### --------
-
-
Last edited: