Code:
mob/proc ChooseChar() src.name = input("Choose a name for your character.","Your Name",src.name) switch(input("Choose a Pokemon","Character Creation", text) in list ("Bulbasaur","Charmander","Squirtle")) if("Bulbasaur") src.Pokemon="Bulbasaur" src.type1="Grass" src.icon="Bulbasaur.dmi";src.icon_state="Bulbasaur" world<<"[src] became a [src.Pokemon]" if("Charmander") src.Pokemon="Charmander" src.type1="Fire" src.icon="Kanto.dmi";src.icon_state="Charmander" world<<"[src] became a [src.Pokemon]" if("Squirtle") src.Pokemon="Squirtle" src.type1="Water" src.icon="Kanto.dmi";src.icon_state="Squirtle" world<<"[src] became a [src.Pokemon]"
|
Problem description:I havent coded in over a year. Now im back and working on a game. im testing and trying to remember things. but im so damn confused as to why this proc when called under Login(), will ask for my name and what Pokemon I want to be but it doesnt give me an icon. Its just null. Its probably something really stupid.