switch(input(src,"Distribute Points","[src.points] Points left",text) in list ("Health","Strength","Chakra","Defense","Speed","Stamina","Save for later"))
if("Health")
if(src.points<=0)
src.points=0
return
else
src.maxhealth++
src.points--
if("Strength")
if(src.points<=0)
src.points=0
return
else
src.atkstr++
src.points--
if("Chakra")
if(src.points<=0)
src.points=0
return
else
src.maxchakra++
src.points--
if("Defense")
if(src.points<=0)
src.points=0
return
else
src.Def++
src.points--
if("Speed")
if(src.points<=0)
src.points=0
return
else
src.speed++
src.points--
if("Stamina")
if(src.points<=0)
src.points=0
return
else
src.maxstam++
src.points--
if("Save for later")
return 0
goto start<dm>
ID:270635
Jul 12 2006, 2:18 am
|
|
How do i make it so it ask how much points you want to use please edit this code so it asks that
|
In response to Zmadpeter
|
|
i still don't understand it
|
In response to Supper yugi
|
|
Than please tell us what EXACTLY you don't understand.
IF you are waiting for someone to actually do the code for you, than you are in for a long, LONG wait >.> - GhostAnime |
In response to Supper yugi
|
|
STOP SPAMMING THE FORUMS.
|
http://developer.byond.com/forum/ index.cgi?action=message_read&id=470934&forum=8&view=0