- Reaction score
- 1,658
5 Star Bump
5 Star Bump!
5 Star Bump!
Thats because this system creates the item at the position of the unit (From what I've read in the post below yours). If you don't want to do that, just make these your actions:hey for some reason when I purchase the recipe it spawns on the ground as the display until I pick it up. It doesnt go to my inventory. I followed the tutorial exactly.
Ok, will post my trigger if I got this right, Count = Variable(Integer)? Or...?Well, (Sorry Orc_tamer) here's another version if you don't understand that one
Trigger:
- Recipe
- Events
- Unit - A unit Acquires an item
- Conditions
- Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- ((Triggering unit) has an item of type Recipe: Shiny Axe of Strength) Equal to True
- ((Triggering unit) has an item of type Gauntlets of Ogre Strength +3) Equal to True
- Then - Actions
- Set Count = 0
- For each (Integer A) from 1 to 6, do (Actions)
- Loop - Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Item-type of (Item carried by (Triggering unit) in slot (Integer A))) Equal to Axe
- Then - Actions
- Set Count = (Count + 1)
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- Count Equal to 1
- Then - Actions
- Set Slot = (Integer A)
- Else - Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- Count Equal to 2
- Then - Actions
- Item - Remove (Item carried by (Triggering unit) in slot (Integer A))
- Item - Remove (Item carried by (Triggering unit) in slot Slot)
- Item - Remove (Item carried by (Triggering unit) of type Recipe: Shiny Axe of Strength)
- Item - Remove (Item carried by (Triggering unit) of type Gauntlets of Ogre Strength +3)
- Set TempPoint = (Position of (Triggering unit))
- Special Effect - Create a special effect at TempPoint using Abilities\Spells\Undead\ReplenishHealth\ReplenishHealthCaster.mdl
- Special Effect - Destroy (Last created special effect)
- Special Effect - Create a special effect at TempPoint using Abilities\Spells\Human\DispelMagic\DispelMagicTarget.mdl
- Special Effect - Destroy (Last created special effect)
- Custom script: call RemoveLocation(udg_TempPoint)
- Hero - Create Shiny Axe of Strength and give it to (Triggering unit)
- Else - Actions
- Else - Actions
- Else - Actions
And just copy the first "If" to make several of these with different items needed
Btw, this recipe uses well, the recipe itself "Recipe: Shiny Axe of Strength" and "Gauntlets of Ogre Strength +3" as normal ingredients, and "Axe" as the one which is needed 2 of![]()
YeppCount = Variable(Integer)? Or...?
Because there are 6 slots in the inventoryAnd why integer A from 1 to 6?
I just made multiple shops... Works to but little silly to make another shop with the same catogary for one item.. Wich brings you to the point that you should make more items..I had this problem as well, forgot how I fixed it though. Search the forums, you should be able to find it somewhere there.