ID:176739
 
this is my script but how do i put an alert in there saying "do you want to equip it?" and the 2 choices are Yes or No. If yes it would raise my usr defence if no then it says sumthin to the usr....


obj
Armor
LArmor
icon = 'armor.dmi'
icon_state = "larmor"
verb
Get()
set src in oview(1)
del src.
obj
Armor
LArmor
icon = 'armor.dmi'
icon_state = "larmor"
verb
Get()

set src in oview(1)
switch(alert("Equip")in list("Yes","No"))
if("Yes")
//do equipping stuff here
else
usr<<"//what to say"
del src.
In response to DBZ Kidd
i un know how to equip it though......
In response to DBZ Kidd
ok im getting warning:empty switch staement and it highlights the If("yes") part
In response to Leahcim
The if() statements must be indented past the switch() statement.