mob
Shinigami_Examiner
// icon = 'Shinigami.dmi'//
// name = "Shinigami Examiner"//
// icon_state = "Shinigami"//
npc = 1
Click()
if(race == "Human")
if(level >= 10)
switch(input("Do you want to be a shinigami?", text) in list ("Yes", "No"))
if("Yes")
faction = "Soul Society"
faction = 1
usr << "<B>You are now a shinigami"
race = "Shinigami"
switch(input("Join a squad ?", text) in list ("Yes", "No"))
if("Yes")
var/P = rand(1,13)
if(P==1)
squad = "First"
if(P==2)
squad = "Second"
if(P==3)
squad = "Third"
if(P==4)
squad = "Fourth"
if(P==5)
squad = "Fifth"
if(P==6)
squad = "Sixth"
if(P==7)
squad = "Seventh"
if(P==8)
squad = "Eigth"
if(P==9)
squad = "Ninth"
if(P==10)
squad = "Tenth"
if(P==11)
squad = "Eleventh"
if(P==12)
squad = "Twevleth"
if(P==13)
squad = "Thirteenth"
Problem description:
I compiled and got this error npc re-initialization of global var
I've even had this error before when trying to program a AI system. If anyone could help it would be highly appreciated.
Also, I see room for improvement on that snippet. I'll be glad to show you how to improve it if you tell me the error and the line.