ID:178534
 
right now when u talk to him he says yes, no tanks for staying you dont have enough gold! (but all on one line) this is what i have......

mob/inn_owner
icon='inn guy.dmi'
density=1
verb
Talk()
set src in oview(2)
usr << (input("Would you like stay the night for 10 gold?,Inn")in list("yes, no"))
if("yes")
if(usr.wealth>=10)
usr.HP = usr.MAXHP
usr.wealth -= 10
usr << ("thanks for staying")
else
alert("you dont have enough Gold!")
if("no")
usr << ("come back some other time")


but of course u can tell some of them need to be on the same line , and by the way there are no errors with it
you can't put the if about no thanks under the else or it will do both.
In response to Likwiddraino000
hmm what do u mean?
In response to Aleis
Um, just like I said, you make an icon then click on the camera button make the animations for it, and you're done. It will cycle through the animations automatically.
In response to Likwiddraino000
In response to Likwiddraino000
else
alert("you dont have enough Gold!")
if("no")
usr << ("come back some other time")
you want the if to not be under the else. so it should be like this:

else
alert("you dont have enough Gold!")
if("no")
usr << ("come back some other time")

In response to Likwiddraino000
you want the (no) if to be on the same line vertically as the the (yes) if
In response to Likwiddraino000
lol thanx il try it......
In response to Likwiddraino000
if ur trying to make a inn guy do this and then make ur self a goldcheck proc


*****INNGUY**************

Inn_Girl
icon = 'inngirl.dmi'
density = 1
verb
Talk()
set src in oview(2)
var/inn = input("would you like to stay at the inn? only 20gp") in list ("Yes", "No")
switch(inn)
if("Yes")
usr.Total_GP = usr.Total_GP- 20
usr.GoldCheck()
usr.hp = 150
usr << "Hp,Mp restored!"

if("No")
usr << "please come again"
that got a bit messed up just cop y it and then hit backspace at the beggining of som eof the lines then hesers the goldcheck proc
****GOLDCHECK()******

proc/GoldCheck(gold_num as num)
if(src.Total_GP < gold_num)
usr << "you dont have enough money!"
usr << sound('alarm.wav')
return 1
return 0