ID:148785
 
Bleh, deleted some of my code earlier =( Oh well...

Login()
usr.race = input("Who would you like to play as?") in list("Goku", "Picollo")
return..()
RaceCheck()

proc
RaceCheck()
if(usr.race == "Goku")
icon = 'Chara2.dmi'
else
icon = 'Chara3.dmi'

Okay, thats my attempt at a chara choice. When I run it I get the input option, but I choose one and my screen comes up blank. I can see where the mistake would be, but cant find a way to fix it. Meh, enlighten me if you can (thinks that a majority of the world's population could fix this, oh well) (And yes, I realize that there are to many DBZ games out there)
Well, the real problem is a pretty typical one with Login() procs, but I'm not going to tell you how to fix that.

Instead, I'm going to help you with an even worse problem: You've got usr running rampant all over your procs. Even though usr is technically valid in Login() (supposedly), and your RaceCheck proc is being called from there, usr is not to be trusted in procs and you should be using src or a reference instead.

Lummox JR
In response to Lummox JR
Damnit, gotta stop using usr and start using src... Meh, this coding stuff is tough... :(
Wait a second...
AHH!! I still dont know how to fix it!
In response to Gathin
You're returning Login() before calling the character generation proc. Return stops the execution of the proc.
CURSES!!!!!! *kicks himself*

(oh yeah, and it did work, thanks, im kicking myself cause I didnt notice that... Bleh)
In response to Garthor
Actually I was thinking that you should make it so it locates a user some where....that might fix it....and i have no idea why usr dosnt work...ive been codeing for along time and usr has never made anything not work....src indeed makes it work when usr dosnt but usr very very rarley dosnt work....
In response to K'ros Trikare
It's not that it doesn't work, it's that in certain circumstances or locations, it may not work correctly. (For example, it will not work correctly in Entered().)