• 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.

[Trigger] Trigger Problem

Status
Not open for further replies.
Level 3
Joined
Jun 23, 2008
Messages
22
  • Events
    • Unit - A unit Acquires an item
  • Conditions
    • (Item-type of (Item being manipulated)) Equal to Tidal awakening Lvl up
  • Actions
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      • If - Conditions
        • ((Triggering unit) has an item of type Tidal Awakening Lvl1) Equal to True
      • Then - Actions
        • Item - Remove (Item carried by (Triggering unit) of type Tidal Awakening Lvl1)
        • Item - Remove (Item carried by (Hero manipulating item) of type Tidal awakening Lvl up)
        • Hero - Create Tidal Awakening Lvl2 and give it to (Triggering unit)
        • Wait 1.00 seconds
      • Else - Actions
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      • If - Conditions
        • ((Triggering unit) has an item of type Tidal Awakening Lvl2) Equal to True
      • Then - Actions
        • Item - Remove (Item carried by (Triggering unit) of type Tidal Awakening Lvl2)
        • Item - Remove (Item carried by (Hero manipulating item) of type Tidal awakening Lvl up)
        • Hero - Create Tidal Awakening Lvl3 and give it to (Triggering unit)
      • Else - Actions
This trigger works for the first level up but on the 2nd the level up item remains in the units inventory:con: i've tried to fix it a few times and nothing has worked. Plz help tyty
 
Level 7
Joined
Sep 5, 2006
Messages
333
Like what martin say, remove the wait, if you wait in your trigger, it will clear all triggering unit...etc or if you must wait, set variables.
 
Ive done this before. Basically when you get 2 of one Item you want them to 'combine' and make a level higher.
u need like a condition though, something like this.
Actions:
Trigger - Turn off this trigger
If then else (Multiple functions)
If -
number of items carried of type (tidal awakening lvl1) is greater than 1
Then -
remove item of type (tidal awakening...)
remove item of type (tidal awakening...)
Create (tidal awakening level 2) and give it to (hero manipulating item)
Trigger - Turn on this trigger

Even if the unit isnt a hero, it will still work.
and turning on/off the trigger should keep it from making multiple items. It doesnt matter whether or not u have a wait.
 
Level 3
Joined
Jun 23, 2008
Messages
22
Ive done this before. Basically when you get 2 of one Item you want them to 'combine' and make a level higher.
u need like a condition though, something like this.
Actions:
Trigger - Turn off this trigger
If then else (Multiple functions)
If -
number of items carried of type (tidal awakening lvl1) is greater than 1
Then -
remove item of type (tidal awakening...)
remove item of type (tidal awakening...)
Create (tidal awakening level 2) and give it to (hero manipulating item)
Trigger - Turn on this trigger

Even if the unit isnt a hero, it will still work.
and turning on/off the trigger should keep it from making multiple items. It doesnt matter whether or not u have a wait.
tyty... but if it turns of the trigger befor the events then won't the events kinda... not happen???
 
Status
Not open for further replies.
Top