ID:263909
 
Code:
mob
Shinigami_Teacher
icon = 'NPCs.dmi'
name = "{NPC}Shinigami Teacher"
icon_state = "Shinigami"
npc = 1
verb
Talk()
set category = "NPC's"
set src in oview(2)
if(usr.race == "Human")
if(usr.level < 150)
usr << "<b>You are too weak to become a Shinigami, please train some more."
return
switch(input("Do you want to become a powerful Shinigami?", text) in list ("Yes","No"))
if("Yes")
if(usr.talkrace)
return
usr.gotburial = 1
usr.talkrace = 1
usr.cankido = 1
world << "<b><font color = aqua>Race Info: [usr] is now a Shinigami!"
usr.race = "Shinigami"
usr << "<b>Your health got boosted by 500000!"
usr.mhealth += 500000
usr << "<b>Your reiatsu got boosted by 150000!"
usr.mrei += 150000
usr << "<b>Your attack got boosted by 80000!"
usr.mattack += 80000
usr << "<b>Your defence got boosted by 80000!"
usr.mdefence += 80000
usr << "<b>Your reiatsu power got boosted by 20000!"
usr.reiatsu += 20000
var/obj/sword/B = new/obj/sword
B.loc = usr
var/obj/shini/C = new/obj/shini
C.loc = usr
usr.status = "Member"
switch(input("What squad do you want to be in?", text) in list ("One","Two","Three","Four","Five","Six","Seven","Eight","Nine","Ten","Eleven","Twelve","Thirteen"))
if("One")
usr.squad = "One"
if("Two")
usr.squad = "Two"
if("Three")
usr.squad = "Three"
if("Four")
usr.squad = "Four"
if("Five")
usr.squad = "Five"
if("Six")
usr.squad = "Six"
if("Seven")
usr.squad = "Seven"
if("Eight")
usr.squad = "Eight"
if("Nine")
usr.squad = "Nine"
if("Ten")
usr.squad = "Ten"
if("Eleven")
usr.squad = "Eleven"
if("Twelve")
usr.squad = "Twelve"
if("Thirteen")
usr.squad = "Thirteen"
switch(input("What type of fighting do you prefer?", text) in list ("Melee","Long Ranged","Controlling","Using Effects"))
if("Melee")
switch(input("What is your best attribute when fighting?)", text) in list ("Freeze and Kill Your Opponents","Speed and Power","Pure Power","Pure Weapon Power","Blood Blasting","Double Swords","Fire Balls","Water"))
if("Pure Power")
usr.stype = "Zaraki"
if("Pure Weapon Power")
usr.stype = "Ikkaku"
if("Speed and Power")
usr.stype = "Ichigo"
B.icon = 'ichigoshikai(2).dmi'
if("Freeze and Kill Your Opponents")
usr.stype = "Hitsugaya"
if("Blood Blasting")
usr.stype = "Urahara"
usr.bantype = 1
if("Double Swords")
usr.stype = "Shonshui"
usr.bantype = 1
if("Fire Balls")
usr.stype = "Yammamoto"
usr.bantype = 1
if("Ultra Speed")
usr.stype = "Hisagi"
if("Water")
usr.stype = "Kaiens"
if("Long Ranged")
switch(input("What is your best attribute when fighting?)", text) in list ("Skewering Multiple Enemies","Ranged Reiatsu Blasts"))
if("Skewering Multiple Enemies")
usr.stype = "Ichimaru"
usr.bantype = 1
if("Ranged Reiatsu Blasts")
usr.stype = "Hinamori"
usr.bantype = 1
if("Controlling")
switch(input("What is your best attribute when fighting?)", text) in list ("Series of Powerful Strikes","Ripping Your Opponent Apart","Slashing Your Foes With Small Blades"))
if("Series of Powerful Strikes")
usr.stype = "Renji"
if("Slashing Your Foes With Small Blades")
usr.stype = "Jiroubou"
usr.bantype = 1
if("Ripping Your Opponent Apart")
usr.stype = "Byakuya"
if("Using Effects")
switch(input("What is your best attribute when fighting?)", text) in list ("Absorbing Your Enemie's Power","Screwing Your Opponents With Effects","Immobilizing The Enemy","Freezing your Opponent For an Long Time","Freeze and Blind Your Opponents"))
if("Screwing Your Opponents With Effects")
usr.stype = "Mayuri"
if("Immobilizing The Enemy")
usr.stype = "Kira"
usr.bantype = 1
if("Absorbing Your Enemie's Power")
usr.stype = "Yumichika"
usr.bantype = 1
if("Freezing your Opponent For an Long Time")
usr.stype = "Rukia"
if("Freeze and Blind Your Opponents")
usr.stype = "Tousen"
usr.verbs += typesof(/mob/Shinigami/verb)
usr.skill()


Problem description: Just posting this here so I can have something explained 2 me by Pirata.

mob
Shinigami_Teacher
icon = 'NPCs.dmi'
name = "{NPC}Shinigami Teacher"
icon_state = "Shinigami"
npc = 1
verb
Talk()
set category = "NPC's"
set src in oview(2)
if(usr.race == "Human")
if(usr.level < 150)
usr << "<b>You are too weak to become a Shinigami, please train some more."
return
switch(input("Do you want to become a powerful Shinigami?", text) in list ("Yes","No"))
if("Yes")
if(usr.talkrace)
return
usr.gotburial = 1
usr.talkrace = 1
usr.cankido = 1
world << "<b><font color = aqua>Race Info: [usr] is now a Shinigami!"
usr.race = "Shinigami"
usr << "<b>Your health got boosted by 500000!"
usr.mhealth += 500000
usr << "<b>Your reiatsu got boosted by 150000!"
usr.mrei += 150000
usr << "<b>Your attack got boosted by 80000!"
usr.mattack += 80000
usr << "<b>Your defence got boosted by 80000!"
usr.mdefence += 80000
usr << "<b>Your reiatsu power got boosted by 20000!"
usr.reiatsu += 20000
var/obj/sword/B = new/obj/sword
B.loc = usr
var/obj/shini/C = new/obj/shini
C.loc = usr
usr.status = "Member"
switch(input("What squad do you want to be in?", text) in list ("One","Two","Three","Four","Five","Six","Seven","Eight","Nine","Ten","Eleven","Twelve","Thirteen"))
if("One")
usr.squad = "One"
if("Two")
usr.squad = "Two"
if("Three")
usr.squad = "Three"
if("Four")
usr.squad = "Four"
if("Five")
usr.squad = "Five"
if("Six")
usr.squad = "Six"
if("Seven")
usr.squad = "Seven"
if("Eight")
usr.squad = "Eight"
if("Nine")
usr.squad = "Nine"
if("Ten")
usr.squad = "Ten"
if("Eleven")
usr.squad = "Eleven"
if("Twelve")
usr.squad = "Twelve"
if("Thirteen")
usr.squad = "Thirteen"
var/rand = rand(1,19)
if(rand == 1)
usr.stype = "Zaraki"
if(rand == 2)
usr.stype = "Ikkaku"
if(rand == 3)
usr.stype = "Ichigo"
B.icon = 'ichigoshikai(2).dmi'
if(rand == 4)
usr.stype = "Hitsugaya"
if(rand == 5)
usr.stype = "Urahara"
usr.bantype = 1
if(rand == 6)
usr.stype = "Shonshui"
usr.bantype = 1
if(rand == 7)
usr.stype = "Yammamoto"
usr.bantype = 1
if(rand == 8)
usr.stype = "Hisagi"
if(rand == 9)
usr.stype = "Kaiens"
if(rand == 10)
usr.stype = "Ichimaru"
usr.bantype = 1
if(rand = 11)
usr.stype = "Hinamori"
usr.bantype = 1
if(rand == 12)
usr.stype = "Renji"
if(rand == 13)
usr.stype = "Jiroubou"
usr.bantype = 1
if(rand == 14)
usr.stype = "Byakuya"
if(rand == 15)
usr.stype = "Mayuri"
if(rand == 16)
usr.stype = "Kira"
usr.bantype = 1
if(rand == 17)
usr.stype = "Yumichika"
usr.bantype = 1
if(rand = 18)
usr.stype = "Rukia"
if(rand == 19)
usr.stype = "Tousen"
usr.verbs += typesof(/mob/Shinigami/verb)
usr.skill()


try that and tell me if it works
In response to Pirata Inmortal
mob
Shinigami_Teacher
icon = 'NPCs.dmi'
name = "{NPC}Shinigami Teacher"
icon_state = "Shinigami"
npc = 1
verb
Talk()
set category = "NPC's"
set src in oview(2)
if(usr.race == "Human")
if(usr.level < 150)
usr << "<b>You are too weak to become a Shinigami, please train some more."
return
switch(input("Do you want to become a powerful Shinigami?", text) in list ("Yes","No"))
if("Yes")
if(usr.talkrace)
return
usr.gotburial = 1
usr.talkrace = 1
usr.cankido = 1
world << "<b><font color = aqua>Race Info: [usr] is now a Shinigami!"
usr.race = "Shinigami"
usr << "<b>Your health got boosted by 500000!"
usr.mhealth += 500000
usr << "<b>Your reiatsu got boosted by 150000!"
usr.mrei += 150000
usr << "<b>Your attack got boosted by 80000!"
usr.mattack += 80000
usr << "<b>Your defence got boosted by 80000!"
usr.mdefence += 80000
usr << "<b>Your reiatsu power got boosted by 20000!"
usr.reiatsu += 20000
var/obj/sword/B = new/obj/sword
B.loc = usr
var/obj/shini/C = new/obj/shini
C.loc = usr
usr.status = "Member"
switch(input("What squad do you want to be in?", text) in list ("One","Two","Three","Four","Five","Six","Seven","Eight","Nine","Ten","Eleven","Twelve","Thirteen"))
if("One")
usr.squad = "One"
if("Two")
usr.squad = "Two"
if("Three")
usr.squad = "Three"
if("Four")
usr.squad = "Four"
if("Five")
usr.squad = "Five"
if("Six")
usr.squad = "Six"
if("Seven")
usr.squad = "Seven"
if("Eight")
usr.squad = "Eight"
if("Nine")
usr.squad = "Nine"
if("Ten")
usr.squad = "Ten"
if("Eleven")
usr.squad = "Eleven"
if("Twelve")
usr.squad = "Twelve"
if("Thirteen")
usr.squad = "Thirteen"
var/rand == rand(1,19)
if(rand == 1)
usr.stype = "Zaraki"
if(rand == 2)
usr.stype = "Ikkaku"
if(rand == 3)
usr.stype = "Ichigo"
B.icon = 'ichigoshikai(2).dmi'
if(rand == 4)
usr.stype = "Hitsugaya"
if(rand == 5)
usr.stype = "Urahara"
usr.bantype = 1
if(rand == 6)
usr.stype = "Shonshui"
usr.bantype = 1
if(rand == 7)
usr.stype = "Yammamoto"
usr.bantype = 1
if(rand == 8)
usr.stype = "Hisagi"
if(rand == 9)
usr.stype = "Kaiens"
if(rand == 10)
usr.stype = "Ichimaru"
usr.bantype = 1
if(rand = 11)
usr.stype = "Hinamori"
usr.bantype = 1
if(rand == 12)
usr.stype = "Renji"
if(rand == 13)
usr.stype = "Jiroubou"
usr.bantype = 1
if(rand == 14)
usr.stype = "Byakuya"
if(rand == 15)
usr.stype = "Mayuri"
if(rand == 16)
usr.stype = "Kira"
usr.bantype = 1
if(rand == 17)
usr.stype = "Yumichika"
usr.bantype = 1
if(rand = 18)
usr.stype = "Rukia"
if(rand == 19)
usr.stype = "Tousen"
usr.verbs += typesof(/mob/Shinigami/verb)
usr.skill()


Mob.dm:252:error: missing left-hand argument to =.
can someone help me please?
In response to CK Productions
Help me? Please.
In response to CK Productions
if(rand = 11) this line is short an equals sign. Should be

if(rand == 11)
In response to CK Productions
       var/rand == rand(1,19)// try       var/rand = rand(1,19)
In response to Pyro_dragons
its going to look better into <-DM->--<-/DM->
In response to Elextra
Elextra wrote:
> 
> var/rand == rand(1,19)// try var/rand = rand(1,19)
>


Nothing. Same error.
In response to Pyro_dragons
Thanks, Fixed a few of those. Musta been typing to fast.
In response to CK Productions
It really helps if you point out the line you are getting the error on.

It would also help if you reduced those two huge, stupid if() chains to just

usr.squad = input(blah blah blah)

usr.stype = pick(blah, blah, blah, blah, blah)
if(usr.stype == whateverthehellthatoneis)
B.icon = whatever
In response to Pirata Inmortal
I have tried everything that I can possibly do. NOTHING is working for me.Can any of you please. find me an answer.
In response to CK Productions
usr.random = rand(1,28)

use that....it'll work....that should go in the zan sys so its random
In response to Azone
That is the wrong way to do things. Please don't provide wrong advice.
If you are going to set the same value from an alert()/input(), don't bother with setting the values in if() statements, just modify the value directly:
src.EX = input("What value you want EX to be?") in list("I","Don't","Know")
world << src.EX // will mention the value chosen


As a side note (to Pirata), learn how to use switch() or lists, it'll save you so much time in the future:
switch(rand(1,28))
if(1) do this
if(2) do this
if(3) do this
....
if(28) do this
else ERROR!


var/list/Example = list("Uno","Dos","Tres",...,"28") // lets say we filled it up to have a length of 28
world << Example[rand(1,28)] // If the random value is 2, it'll return "Dos", etc.