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

Problem With Trigger Plase Help

Status
Not open for further replies.
Level 3
Joined
Jun 7, 2007
Messages
30
Ok here is what I am trying to do. I have a set of abilities and a set of dummy items to match them. I have a trigger that removes the item when it is purchased from a shop and adds the ability to the unit.
Here is the problem. When my unit buys the last ability I created that is the only ability he gets. But when I buy the next to the last ability I created he gets that ability and the last one I created as well. If I buy the first ability I created he gets all of the abilities I have created.
Here is what my trigger look like.
EVENTS
Unit-A unit acquires an item.
CONDITIONS
(item being manipulated) equal to (item carried by (triggering unit) of type stun ability)
ACTIONS
Unit- Add Stun attack to (Triggering unit)
Item - Remove (item carried by (triggering unit) of type stun ability)

All of my items are based off the same item I just copy and paste it and change the name. Some one please help!
 
Level 8
Joined
Jan 18, 2007
Messages
331
well you´v really explained wath you´v done, but i cant really see the problem... please explain yourself! At one look at this trigger iv noticed 2 things, 1st. its not compleated and will cause lagg and/or may not work compleatly. please search the spell section for the right spell or look at the totorals--> totoralsubmition and then at using the spellbook as a ability storer (it ca help you figure out waths wrong) 2nd. please wrap all triggers in [trigger/] trags.
 
Level 5
Joined
Jan 23, 2005
Messages
124
I see what he's doing... But I haven't a clue how to fix it =x.

My hero walks along, finds an item, picks it up, then the hero gains the skill from the item, and then the item is destroyed/dropped. Leaving the inventory empty again, but the hero now has a new skill from the item...

That is correct, right?
 
Level 3
Joined
Jun 7, 2007
Messages
30
I see what he's doing... But I haven't a clue how to fix it =x.

My hero walks along, finds an item, picks it up, then the hero gains the skill from the item, and then the item is destroyed/dropped. Leaving the inventory empty again, but the hero now has a new skill from the item...

That is correct, right?

Kind of but I want them to buy it from a shop. The problem is that it is giving all of the possible abilities to the hero just by buying the first one in the list.

Thanx to all of you that have helped! Im going to test a few things and will repost soon. Thanx again.
 
Level 3
Joined
Jun 7, 2007
Messages
30
well you´v really explained wath you´v done, but i cant really see the problem... please explain yourself! At one look at this trigger iv noticed 2 things, 1st. its not compleated and will cause lagg and/or may not work compleatly. please search the spell section for the right spell or look at the totorals--> totoralsubmition and then at using the spellbook as a ability storer (it ca help you figure out waths wrong) 2nd. please wrap all triggers in [trigger/] trags.

Ok if I make an ability say a stun ability and then I make a dummy item to match it.
Then I make another ability say a poison spell and then make a dummy item to match it.
I put the items in the shop.
My guy buys the stun ability and gets the stun ability.
But if I if i buy the Poison ability instead of stun he ends up with stun and poison.
 
Status
Not open for further replies.
Top