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?
- The Sun is just dummies with immolation model, i created 10 so it really looks like a big hot sun.
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>
- Events
- 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)
- Events
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
- Loop - Actions
- Events