- Joined
- Mar 21, 2007
- Messages
- 155
for some reason, my game crashes when i test it. well, let me be more specific:
everything runs smoothly, but when my unit picks up an item, everything stops for 2 secs, then just closes itself. i have narrowed it to this trigger (i'm sure)
everything runs smoothly, but when my unit picks up an item, everything stops for 2 secs, then just closes itself. i have narrowed it to this trigger (i'm sure)
-
stacking energy system
-
Events
- Unit - A unit Acquires an item
-
Conditions
- (Item-type of (Item being manipulated)) Equal to Crystalised energy
-
Actions
- Item - Remove (Item being manipulated)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- ((Triggering unit) has an item of type Crystalised energy) Equal to False
-
Then - Actions
- Hero - Create Crystalised energy and give it to (Triggering unit)
-
Else - Actions
- Do nothing
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- ((Triggering unit) has an item of type Crystalised energy) Equal to True
-
Then - Actions
- Set stacking_energy = (Item carried by (Triggering unit) of type Crystalised energy)
- Item - Set charges remaining in stacking_energy to ((Charges remaining in stacking_energy) + 1)
-
Else - Actions
- Do nothing
-
If - Conditions
-
Events