Total RP 3: Extended

Total RP 3: Extended

903k Downloads

Table variables

Solanya opened this issue ยท 0 comments

commented

Having a way to use tables for variables could be a good thing. Case example : a quest requires to use a wand on 20 squirrels. We can't be sure the player isn't using the wand on the same squirrel 20 times. We could use 19 variables to store GUIDs and check each previous variable, but that would be a mess. Being able to add to a table and check it cleanly could help.

This would probably need :

  • Effects to interact with a table : add, clear - remove, shuffle/sort ?
  • Access to the table elements : ${example.i} to access the i-th element of the "example" table would be consistent with access to event arguments.
  • Conditions on the table : is X in the table, how many elements in the table ?