ID:162281
 
well basicly im working on my non rip yugioh card game

i need help if someone can help me make a charcter chooser ( i havent even made a login yet ) so people can just pick their charcters and make it provide information on that charcter

I hope you could understand what im saying im still new to coding but im learning as im going along


ALSO im tring normal way(kinda dull) but im getting an issue

turf/charselect
density=1
Click()
usr.baseselected=4
switch(input("Choose a Character", text) in list ("Yugi","Marik","Joey","Tristan","Bandit Keith","Kaiba"))
if("Yugi")
usr.icon='YugiBASE.dmi'
usr.baseselected=1

ERROR MESSAGE-----> loading Yugioh.dme
Login.dm:4:error:usr.baseselected:undefined var
Login.dm:8:error:usr.baseselected:undefined var

Yugioh.dmb - 2 errors, 0 warnings (double-click on an error to jump to it)


~~~Mike~~~
As far as your error goes, make sure you have baseselected as a variable in your mob.
atom/movable
var
baseselected

That way you can save the variable to the character.

As far as picking cards, Make a list of all the cards and you can use pick() to randomly pick cards or to have them pick themselves by using input().