Skip to content

How to add a new list of non-objects? #1287

Discussion options

You must be logged in to vote

Can you navigate through code view?
if so:
go to player object and add attribute "abilities". Set the drop menu to stringlist.
Whenever the player learns a new ability, write:

list add (player.abilities, "kick ass")

make a new command, type "abilities" in its pattern. In its script type:

msg ("Your learnt abilities are: ")
foreach (x, player.abilities){
  msg (x)
}

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@irishtim1393
Comment options

Answer selected by alexwarren
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants