Apparently i read on a tutorial on making your own equipment system
and here is what I got
if anyone knows how to fix this, please help
and here is what I got
-
Equip
-

Events
-


Unit - A unit Starts the effect of an ability
-
-

Conditions
-


(Ability being cast) Equal to Equip
-
-

Actions
-


If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-



If - Conditions
-




((Item-type of (Target item of ability being cast)) Equal to Ordinary Sword) and (EquipWeaponCheck[(Player number of (Owner of (Casting unit)))] Equal to False)
-
-



Then - Actions
-




Hero - Drop (Target item of ability being cast) from (Casting unit)
-




Item - Remove (Last dropped item)
-




Set EquipWeaponCheck[(Player number of (Owner of (Casting unit)))] = True
-




Set EquipWeaponItem[(Player number of (Owner of (Casting unit)))] = (Item-type of (Target item of ability being cast))
-




Unit - Add Odd Sword to (Casting unit)
-
-



Else - Actions
-




Do nothing
-
-
-
-
if anyone knows how to fix this, please help








