• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

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