need some help with a script
Posted: Fri Aug 21, 2009 8:09 am
So i'm trying to create a script that adds a spell to the player's list when wraithguard is equipped. that works fine. however the next part of the script is supposed to have an amulet that the player can wear instead of wraithguard while removing the guantlet wraithguard from the player's inventory. i created a spell and created a script to workj when the spell's effects are active, however i can not get it to work. I continue to get an EXPRESSION and Left Eval error when i start up the game. here's what the script currently looks like, i haven't tried to finish it yet. any help would be appreciated.
begin wraithguard_change
if ( Player->HasItemEquipped "wraithguard" == 1 )
Player->AddSpell "wraithguard_change"
endif
if ( Player->HasItemEquipped "wraithguard" == 0 )
Player->RemoveSpell "wraithguard_change"
endif
if ( Player->HasItemEquipped "wraithguard" == 1 )
if ( Player->GetSpellEffects, "wraithguard_change" == 1 )
player->additem "wraithguard_amulet" 1
player->removeitem "wraithguard" 1
endif
endif
end
if ( Player->HasItemEquipped "wraithguard" == 1 )
Player->AddSpell "wraithguard_change"
endif
if ( Player->HasItemEquipped "wraithguard" == 0 )
Player->RemoveSpell "wraithguard_change"
endif
if ( Player->HasItemEquipped "wraithguard" == 1 )
if ( Player->GetSpellEffects, "wraithguard_change" == 1 )
player->additem "wraithguard_amulet" 1
player->removeitem "wraithguard" 1
endif
endif
end