Ability remaining after item removal

Mapster

New Member
Reaction score
4
Ability (problem) and Item Restriction (Problem)

Ok i made a tried to make a recipe without looking at a tutorial, everything is all good except when i want it to remove the item, it removes the item but doesn't remove the ability that the item gives.

Fire Axe
. Events
. Unit - Blacksmith 0330 <gen> Sells an item (from shop)
. Conditions
. (Item-type of (Sold Item)) Equal to Burning Axe
. Actions
. If (All Conditions are True) then do (Then Actions) else do (Else Actions)
. If - Conditions
. (((Buying unit) has an item of type Orb of Fire ( 100 )) Equal to True) or ((((Buying unit) has an item of type Orb of Fire ( 120 )) Equal to True) or (((Buying unit) has an item of type Orb of Fire ( 80 )) Equal to True))
. Then - Actions
. If (All Conditions are True) then do (Then Actions) else do (Else Actions)
. If - Conditions
. ((Buying unit) has an item of type Orb of Fire ( 100 )) Equal to True
. Then - Actions
. Item - Remove (Item carried by (Buying unit) of type Orb of Fire ( 100 ))
. Else - Actions
. If (All Conditions are True) then do (Then Actions) else do (Else Actions)
. If - Conditions
. ((Buying unit) has an item of type Orb of Fire ( 120 )) Equal to True
. Then - Actions
. Item - Remove (Item carried by (Buying unit) of type Orb of Fire ( 120 ))
. Else - Actions
. If (All Conditions are True) then do (Then Actions) else do (Else Actions)
. If - Conditions
. ((Buying unit) has an item of type Orb of Fire ( 80 )) Equal to True
. Then - Actions
. Item - Remove (Item carried by (Buying unit) of type Orb of Fire ( 80 ))
. Else - Actions
. Special Effect - Create a special effect attached to the origin of (Buying unit) using Abilities\Spells\Human\Invisibility\InvisibilityTarget.mdl
. Else - Actions
. Hero - Drop (Sold Item) from (Buying unit)
. Item - Remove (Last dropped item)
. Game - Display to (Player group((Owner of (Buying unit)))) the text: You do not have the...
. Player - Add 5000 to (Owner of (Buying unit)) Current gold
. Unit - Remove Item Damage Bonus (+225) from (Buying unit)

Cheers,
Mapster

EDIT:
Ok i had a go at making my own non-item stacking problem but now it's kind of buggered, i need help on getting this fixed... +Rep will me given if either of these can be fixed.

Check the Attachment.

Thanks again
 

Attachments

  • major problem.w3x
    43.5 KB · Views: 79

Ghan

Administrator - Servers are fun
Staff member
Reaction score
888
Code:
. Else - Actions
. Hero - Drop (Sold Item) from (Buying unit)
. Item - Remove (Last dropped item)
. Game - Display to (Player group((Owner of (Buying unit)))) the text: You do not have the...
. Player - Add 5000 to (Owner of (Buying unit)) Current gold
. Unit - Remove Item Damage Bonus (+225) from (Buying unit)

Since these actions are under the Else part, then will execute when the item is NOT the orb of fire, and will NOT execute when it is the orb of fire. Make sense?
 

Mapster

New Member
Reaction score
4
When the player doesn't have the Fire Orbs in their inventory it's ment to remove the FireAxe which was bought along with it's ability, but either way it doesn't remove it. It still has the abilities Attachments and damage.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top