• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

why dose it close!?

Status
Not open for further replies.
Level 5
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)

  • 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 (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
is there something i am doing wrong?
 
Level 21
Joined
Aug 21, 2005
Messages
3,699
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)

  • stacking energy system
    • Events
      • Unit - A unit Acquires an item
    • Conditions
      • (Item-type of (Item being manipulated)) Equal to Crystalised energy
    • Actions
      • Trigger - turn off this trigger
      • 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 (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
      • Trigger - turn on this trigger
is there something i am doing wrong?

fixed. And blablabla my message is too short my ass.
 
Status
Not open for further replies.
Top