ID:265089
 
can someone give me a little tutorial on lists??? especially adding vars to them and displaying them in a popup and deleting one that the user chooses?
Thanks,
Air King
especially adding vars to them

var/list/L = new()
L += variable1
L += variable2
L += variable3

displaying them in a popup

var/tmp/result = input(usr,"This is a pop-up","Pop-up",null) in L

deleting one that the user chooses?

L -= result
In response to Evilkevkev
Evilkevkev wrote:
especially adding vars to them

var/list/L = new()
L += variable1
L += variable2
L += variable3

displaying them in a popup

var/tmp/result = input(usr,"This is a pop-up","Pop-up",null) in L

deleting one that the user chooses?

L -= result

THANKS,
<font color=darkblue>A<font color=blue>I<font color=3399FF>R <font color=00FFCC>_<font color=00FFFF>K<font color=0099FF>I<font color=blue>N<font color=darkblue>G</font>
</font>
</font>
</font>
</font>
</font>
</font>
</font>
-[EDIT]-
it only adds some of the vars for some reason.
-[EDIT AGAIN]-
although when i make th vars 2 characters they all show up strange...
-[EDIT YET AGAIN]-
i fixed it now!!!!!1