- Reaction score
- 1,697
5 Star Bump
5 Star Bump!
5 Star Bump!
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.
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
Count = Variable(Integer)? Or...?
And why integer A from 1 to 6?
I had this problem as well, forgot how I fixed it though. Search the forums, you should be able to find it somewhere there.