Replacement trigger that crashes

Status
Not open for further replies.
Level 9
Joined
Mar 9, 2010
Messages
272
Hello ! ive inserted a small trigger for testing but when it comences the game crashes. Please explain why !
  • Events
    • Unit - a unit enters region 004
  • Conditions
  • Actions
    • Unit - Replace entering unit with a Paladin Using old units reletive life and mana
The game crashes. This is a really simple trigger
, why does it crash the game.
 
Level 13
Joined
Feb 18, 2009
Messages
1,381
Ain't it because it spawn a new unit, and just keeps doing that in an endless loop?
 
Level 9
Joined
Mar 9, 2010
Messages
272
Lovely pharaoh you aswered a question ive been thinking for a year. Also might i ask this: if the old unit has the spell book abillity as a "units" abillity and the paladin brought the abillity from a shop. The paladin is able to use dis book but when he goes into da region the new unit does not have the abillity. please tell me how to transfer it.
 
  • Trigger
  • Events
    • Unit - A unit enters Region000 <gen>
  • Conditions
    • (Unit-type of (Triggering unit)) Not Equal to Paladin
  • Actions
    • If (All conditions are true then do (Actions) else do (Actions)
      • If - Conditons
        • (Level of Spellbook for (Triggering unit)) Greater than 0
      • Then - Actions
        • Unit - Replace (Triggering unit) with a Paladin, using the old unit's relative life and mana
        • Unit - Add Spellbook to (Last replaced unit)
      • Else - Actions
        • Unit - Replace (Triggering unit) with a Paladin, using the old unit's relative life and mana
 
Level 9
Joined
Mar 9, 2010
Messages
272
Im lost may you give me a example map please. Ill be so greatful + happy
abillity transfer
Story:
One day paladin learns assasins skillset(spellbook)through a item from shop) then goes and buys a sword(item) from shop. then he equipts, the model is replaced with a swordsman it but then his assasins skillset disapears. Please helpz
 
Status
Not open for further replies.
Top