ID:176236
 
I was wondering how I would add another skill to the list provided when that person reaches a certain level. You start out with just blaze, once you level up to Level4, you learn breeze. So I would want to add a new skill to the list.


if(N == "Magic")
var/J = input("Please select from the list.","Magic")in list("blaze","exit")

For example, I reach level 4, and now the list shows

if(N == "Magic")
var/J = input("Please select from the list.","Magic")in list("blaze","breeze","exit")
Well you can just define a list
mob/var/list/spells
mob/New()
spells = newlist("blaze","exit")

mob/proc/lvlcheck()
if(src.lvl >= 4) //when they are lvl 4 or higher
if(!spells.Find("breeze")) //if they dont have breeze
spells.Add("breeze") //add it to the list

then you would do
var/J = input("Please select from the list","Magic") in src.spells
In response to Weedman
Wow, thanks, i'm not used to lists yet, but that sure as hell helped me out. Let me know if you need anything in the future, I will hook a brotha up fa sho. PEace Out.



<font color=silver> $$$><><$Branks$><><$$$</font color=silver>