Game Crash: FATAL ERROR What happen to my spell!

CuteCumber

Member
Reaction score
4
My game crashes with fatal error when i cast a spell, 1st time, triggered, 2nd time, triggered, but 3rd time, it crashes with fatal error. Why?

Trigger:
  • Big Bang Explosion
    • Events
      • Unit - A unit Begins channeling an ability
    • Conditions
      • (Ability being cast) Equal to (==) Big Bang Explosion
    • Actions
      • Unit - Create 10 Sun for (Owner of (Triggering unit)) at (Position of (Triggering unit)) facing Default building facing (270.0) degrees
      • Set BBcaster = (Triggering unit)
      • Trigger - Turn on Big Bang Explosion Effect <gen>

- The Sun is just dummies with immolation model, i created 10 so it really looks like a big hot sun.

Trigger:
  • Big Bang Explosion Effect
    • Events
      • Time - Every 0.40 seconds of game time
    • Conditions
    • Actions
      • Unit - Create 1 Dummy for (Owner of BBcaster) at (Position of BBcaster) facing Default building facing (270.0) degrees
      • Unit - Add Flame Strike (Sun) to (Last created unit)
      • Unit - Set level of Flame Strike (Sun) for (Last created unit) to (Level of Big Bang Explosion for BBcaster)
      • Unit - Order (Last created unit) to Human Blood Mage - Flame Strike ((Position of BBcaster) offset by (Random real number between 150.00 and 600.00) towards (Random real number between 0.00 and 360.00) degrees)
      • Unit - Add a 1.50 second Generic expiration timer to (Last created unit)


Trigger:
  • Big Bang Explosion Stop
    • Events
      • Unit - A unit Stops casting an ability
    • Conditions
      • (Ability being cast) Equal to (==) Big Bang Explosion
    • Actions
      • Set BBcaster = (Triggering unit)
      • Trigger - Turn off Big Bang Explosion Effect <gen>
      • Unit Group - Pick every unit in (Units of type Sun) and do (Actions)
        • Loop - Actions
          • Unit - Remove (Picked unit) from the game
 

cleeezzz

The Undead Ranger.
Reaction score
268
you sure its not something else in your map? i dont see a reason why it would crash.
 

Pharaoh_

The epic journey will soon begin... Prepare!
Reaction score
136
1) It leaks a lot; you create too many units, when the points leak.
2) Go to your Dummy unit, change to Stats - Food Cost = 0.
3) The trigger(s):
Trigger:
  • Trigger1
    • Events
      • A unit begins channeling an ability
    • Conditions
      • Ability being cast Equal to Big Bang Explosion
    • Actions
      • Set Caster = (Triggering unit)
      • Set Point1 = (Position of (Caster))
      • Set RealNumber = (Random Real number between 150.00 and 300.00)
      • Set RealNumber1 = (Random Real number between 0.00 and 360.00)
      • For each (Integer A) from 1 to 10, do (Actions)
        • Loop - Actions
          • Unit - Create 1 Sun for (Owner of (Caster)) at (Point1) facing default building degrees
          • Unit - Add (Last created unit) to (SunGroup)
      • Trigger - Turn on (Trigger2 <gen>)
      • Custom script: call RemoveLocation (udg_Point1)


Trigger:
  • Trigger2
    • Events
      • Time - Every 0.40 seconds of game-time
    • Conditions
      • (Caster) is alive Equal to True
      • (Caster) has Stun (Paused) Equal to False
    • Actions
      • Set Point1 = (Position of (Caster))
      • Set Point2 = ((Point1) offset by (RealNumber) towards (RealNumber1)
      • Unit Group - Pick up every unit in (Random 1 unit from (SunGroup)) and do (Actions)
        • Loop - Actions
          • Unit - Add (Flame Strike) to (Picked unit)
          • Unit - Set level of (Flame Strike) for (Picked unit) to (Level of (Big Bang Explosion) for (Caster))
          • Unit - Order (Picked unit) to Human Blood Mage - Flame Strike (Point2)
      • Custom script: call RemoveLocation (udg_Point1)
      • Custom script: call RemoveLocation (udg_Point2)


Trigger:
  • Trigger3
    • Events
      • Unit - A unit stops channeling an ability
    • Conditions
      • (Ability being cast) Equal to Big Bang Explosion
    • Actions
      • Unit Group - Pick up every unit in (SunGroup) and do (Actions)
        • Loop - Actions
          • Unit - Kill (Picked unit)
          • Unit - Remove (Picked unit) from the game [this, because the Immolation is an effect]
 
General chit-chat
Help Users

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top