notitg-mirin icon indicating copy to clipboard operation
notitg-mirin copied to clipboard

Document How to construct a table of actors

Open XeroOl opened this issue 3 years ago • 5 comments

A way to add to the end of a table instead of specifying a specific number? For people who don't want to make actorpool tables using :GetChildren, but want to copy paste actors directly instead of them all needing a different number in their name.

I'm not sure whar the syntax should be, but the options are probably these:

  1. Name="in mytable"
  2. Name="mytable[next]"
  3. Name="mytable[#]"
  4. Name="mytable[#mytable + 1]"
  5. Other
  6. None, but a doc page pointing to calling :GetChildren on an actorframe containing your pool

XeroOl avatar Nov 27 '21 07:11 XeroOl

fwiw php's syntax look like this

$array[] = 'my thing';

HeySora avatar Nov 30 '21 01:11 HeySora

I kind of like the PHP syntax in this case, but it makes things a little bit complicated to implement

XeroOl avatar Jan 29 '22 01:01 XeroOl

I think it might be possible to do like array[#array + 1], which I think would be the most natural? I'm not sure

XeroOl avatar Feb 11 '22 16:02 XeroOl

didn't happen in version 5

XeroOl avatar Feb 18 '22 21:02 XeroOl

We (me and Xero) have discussed and don't want to add this into the template, but issue will be left open until docs have been modified to mention :getchildren()

ChocoboGamer avatar Sep 25 '22 04:09 ChocoboGamer