mob/verb/RemoveSkills()
var/Remove=src.ShowSkills[1]
var/Add=Lists[ShowSkills.len+1]
src.ShowSkills+=Add
src.ShowSkills-=Remove
src.ShowSkill()
mob/verb/ShowSkill()
for(var/V in src.ShowSkills)
src<<V
mob/proc/ShowSkills()
for(var/V=1,V<=5,V++)
ShowSkills+="Number [V]"
var/list/Lists=list("")
mob/var/list/ShowSkills=list()
proc/PopulateLists()
for(var/V=1,V<=20,V++)
Lists+="Number [V]"
Problem description:This code was only made to test but i want to know that i am making a system which only show 6 skills on HUD and when user gets to 6th skill the first one dis appear and another one is added on the list but cant figure out.
something like this
|---|7//In the list
^ //More Skill arrow- When press this no 1 disappear and no 7 will be added to the list then all of them moves down so it only shows 6 skills.
|---|6
|---|5
|---|4
|---|3
|---|2
|---|1