okay I have this
name = input("[usr]","what is your name?","name","[key]")
guardian = input("[usr]","What is your Guardian?","guardian")in list ("Fire Guardian Dragon","Water Guardian Hydra","Wind Guardian Pegasus","Earth Guardian Dwarf")
if("Fire Guardian Dragon")
usr.icon = 'wraith.dmi'
usr << "DRAGON: You are now under my protection, I want your aid to help me grow strong to defeat Death."
return ..()
if("Water Guardian Hydra")
usr.icon = 'player.dmi'
usr << "HYDRA: You are now under my protection, I want your aid to help me grow strong to defeat Death."
return ..()
if("Wind Guardian Pegasus")
usr.icon = 'energy.dmi'
usr << "PEGASUS: You are now under my protection, I want your aid to help me grow strong to defeat Death."
return ..()
if("Earth Guardian Dwarf")
usr.icon = 'oflower.dmi'
usr << "DWARF: You are now under my protection, I want your aid to help me grow strong to defeat Death."
return ..()
but I always end up turning into a wraith with the dragon speaking?
Why?
please help...
ID:150130
Dec 8 2001, 5:10 pm
|
|
#1 Dec 8 2001, 5:20 pm
|
|
Look up switch()
| |
okay I have looked it up but could you give me an example of how I would put it in?
| |
#4 Dec 8 2001, 5:52 pm
|
|
Instead of having this as an if statement:
if("Fire Guardian Dragon") Try this: if(guardian == "Fire Guardian Dragon") or try this for switch: switch(guardian) if("Fire Guardian Dragon") [whatever happens here] if("Ice Guardian Dragon") [whatever happens here] | |
