ID:263904
 
I've been working on this for about a day now. You see im a coder for a bleach game and im trying to allow players to become a legendary shinigami( not real just a fun idea for players)

The problem is that i code in that the npc should ask me if i want to become a shinigami yes, or no i click yes and...nothing happens

Any idea why this happens or how to fix this


the code for this if you need to see it is:

mob
Oldman
icon = 'NPCs.dmi'
name = "{NPC}Oldman Yammamoto"
icon_state = "Oldman"
npc = 1
verb
Speak()
set category = "NPC's"
set src in oview(2)
if(usr.race == "Shinigami")
if(usr.level < 1250)
usr << "You are too weak to become a Legendary Shinigami, please train some more."
return
switch(input("Ahh Hello Young One. You seem to have potiental. Why don't you let me train you to even higher levels", text) in list ("Yes","No"))
if("Yes")
if(usr.talkrace)
return
usr.talkrace = 1

world << "
Race Info: [usr] is now a Legendary Shinigami!"
usr.race = "Legendary Shinigami"

usr << "Your health got boosted by 60000!"
usr.mhealth += 60000
usr << "
Your reiatsu got boosted by 60000!"
usr.mrei += 60000
usr << "Your attack got boosted by 60000!"
usr.mattack += 60000
usr << "
Your defence got boosted by 60000!"
usr.mdefence += 60000
usr << "Your reiatsu power got boosted by 60000!"
usr.reiatsu += 60000
</1250>
You need to put code within <DM> and </DM> tags, or it's impossible to read.

Also, you should be closing your HTML tags.
mob
Oldman
icon = 'NPCs.dmi'
name = "{NPC}Oldman Yammamoto"
icon_state = "Oldman"
npc = 1
verb
Speak()
set category = "NPC's"
set src in oview(2)
if(usr.race == "Shinigami")
if(usr.level < 1250)
usr << "You are too weak to become a Legendary Shinigami, please train some more."
return
switch(input("Ahh Hello Young One. You seem to have potiental. Why don't you let me train you to even higher levels", text) in list ("Yes","No"))
if("Yes")
if(usr.talkrace)
return
usr.talkrace = 1

world << "Race Info: [usr] is now a Legendary Shinigami!"
usr.race = "Legendary Shinigami"

usr << "Your health got boosted by 60000!"
usr.mhealth += 60000
usr << "Your reiatsu got boosted by 60000!"
usr.mrei += 60000
usr << "Your attack got boosted by 60000!"
usr.mattack += 60000
usr << "Your defence got boosted by 60000!"
usr.mdefence += 60000
usr << "Your reiatsu power got boosted by 60000!"
usr.reiatsu += 60000

Your welcome :P (I put it in a DM code.)
In response to Flame Guardian
mob
Oldman
icon = 'NPCs.dmi'
name = "{NPC}Oldman Yammamoto"
icon_state = "Oldman"
npc = 1
verb/Speak()
set category = "NPC's"
set src in oview(2)
if(usr.race == "Shinigami"&&usr.level < 1250)
usr << "You are too weak to become a Legendary Shinigami, please train some more."
return
switch(input("Ahh Hello Young One. You seem to have potiental. Why don't you let me train you to even higher levels", text) in list ("Yes","No"))
if("Yes")
if(usr.talkrace)
return
usr.talkrace = 1
world << "Race Info: [usr] is now a Legendary Shinigami!";usr.race = "Legendary Shinigami"
usr << "Your health got boosted by 60000!";usr.mhealth += 60000
usr << "Your reiatsu got boosted by 60000!";usr.mrei += 60000
usr <<"Your attack got boosted by 60000!";usr.mattack += 60000
usr << "Your defence got boosted by 60000!";usr.mdefence += 60000
usr << "Your reiatsu power got boosted by 60000!";usr.reiatsu += 60000


Use this code, it works, I kinda rambled this together, did not feel like changing to be less messy, but meh. Yeah, don't use space because it's messy. Tabbing is way better. Also, I may have put somethings in the wrong spot, since your spacing sort of confused me. Anyway, tell me if it works.
In response to Flame Guardian
*sigh* it didn't work. i used the 2nd one you posted since the 1st was producing a lot of errors. Ima screw round wit it 4 a while n see if i can fix it


thanks anyway and tabbing is wayyyyyyyyy better..... o and if you discover anything new please tell me asap cause this is startin to piss me off.....maybe it's just my comp since im juss testing the game from dream maker and juss editing my race and lvl..... anyway thanks
mob
Oldman
icon = 'NPCs.dmi'
name = "{NPC}Oldman Yammamoto"
icon_state = "Oldman"
npc = 1
verb
Speak()
set category = "NPC's"
set src in oview(2)
if(usr.race == "Shinigami")
if(usr.level > 1250)
switch(input("Ahh Hello Young One. You seem to have potiental. Why don't you let me train you to even higher levels", text) in list ("Yes","No"))
if("Yes")
if(!usr.talkrace)
usr.talkrace = 1
world << "Race Info: [usr] is now a Legendary Shinigami!"
usr.race = "Legendary Shinigami"
usr << "Your health got boosted by 60000!"
usr.mhealth += 60000
usr << "Your reiatsu got boosted by 60000!"
usr.mrei += 60000
usr << "Your attack got boosted by 60000!"
usr.mattack += 60000
usr << "Your defence got boosted by 60000!"
usr.mdefence += 60000
usr << "Your reiatsu power got boosted by 60000!"
usr.reiatsu += 60000
if("No")
return
else
usr<<"You are too weak to become a Lengedary Shinigami!"
else
usr<<"You arent a Shinigami!"
WAIT IM REALLY SRRY BUT I LEFT OUT SOME KEY INFORMATION......I CAN BECOME A SHINIGAMI, I GET ALL THE STUFF (ZANPAKTOU N SUIT) BUT THEN I EDIT MYSELF TO 1.5 K N I GO TO THE OLDMAN YAMMAMOTO NPC. HE ASKS IF I WANT TO BECOME A LEGENDARY SHINIGAMI I CLIVK YES AND THEN NOTHING HAPPENS NO BOOST AT ALL.


JUSS THOUGHT BOUT IT SO I POSTED IT SRRY FOR NE TROUBLE THIS CAUSED