ID:142742
 
Code:
          switch(input("What is your fighting type", text) in list ("Melee","Long Ranged","Controlling","Using Effects"))
if("Melee")
src.random = rand(1,7)
if(src.random == 1)
usr.stype = "Zaraki"
if(src.random == 2)
usr.stype = "Ikkaku"
if(src.random == 3)
usr.stype = "Urahara"
usr.bantype = 1
if(src.random == 4)
usr.stype = "Ichigo"
B.icon = 'ichigoshikai.dmi'
if(src.random == 5)
usr.stype = "Hitsugaya"
if(src.random == 6)
usr.stype = "Komamura"
if(src.random == 7)
usr.stype = "Ukitake"
usr.bantype = 1


Problem description:Yea uhm i know its somthing simple im missing but the errors i receive are
Mob.dm:277:error:rand:undefined proc
Mob.dm:278:error::invalid expression, can anyone help?


Ok this may help u just a little bit its a guide i made for coding in Shikai and Bankai's its under my hosted files

http://www.byond.com/members/Wrath69
In response to Wrath69
thx for trying to help but it didnt help me with randomizing it :(
In response to Kakashi3131
lol ok good luck with randomizing it i been workin on that for a long time and still no luck
In response to Wrath69
i might just put in procs under shikai level randoming and just make the shini teacher give boost race and squad
First of all, your indentation is all wonky.

Second, what's with everybody defining a mob/var/random? Where do you learn this crap?

Third:

usr.stype = pick(list("SDJFL","JSDFS","SDJFSD","SDFJS")
if(usr.stype == "SDKL")
usr.bantype = 1
else if(usr.stype == "SDKFJL")
usr.bantype = 1
else if(usr.stype == "SDKLJF")
B.icno = 'wut'
In response to Garthor
that made more errors XD
In response to Kakashi3131
I'm sure you can figure out how to fix a couple of typos.
In response to Garthor
im not going to bother with it i found another way to do it and it works fine :)
In response to Garthor
"Second, what's with everybody defining a mob/var/random? Where do you learn this crap?"

First: Dragonball Zeta source.

Then Dragonball Elysium used it because it was in the Zeta source.

Then Dragonball Rebirth which is a rip of Elysium also used it.

Then the first Naruto games used it because they learned to code from the ripped Dragonball games.
In response to Garthor
Garthor wrote:
First of all, your indentation is all wonky.

Second, what's with everybody defining a mob/var/random? Where do you learn this crap?

All the rip coding comes with that, pre-defined.