I
IllidansHead
Guest
For some reason, this triggger doesn't work.
It's for an equipment system used in my RPG, but it always does the "else", even when the variable IS equal to 'none' and I have a Basic Dark Spellbook.
Code:
Events
Player - Player 1 (Red) types a chat message containing -equip basicdarkbook as An exact match
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
equipped_spellbook Equal to none
(ChosenHero has an item of type Basic Dark Spellbook) Equal to True
Then - Actions
Set equipped_spellbook = basicdarkbook
Item - Remove (Item carried by ChosenHero of type Basic Dark Spellbook)
Hero - Modify Intelligence of ChosenHero: Add 1
Else - Actions
Game - Display to (All players) the text: Cannot equip |cffff0000Basic Dark Spellbook|r. Either you already have a spellbook equipped, or the class you have chosen cannot equip spellbooks.
It's for an equipment system used in my RPG, but it always does the "else", even when the variable IS equal to 'none' and I have a Basic Dark Spellbook.


