possibility to use [1][2] in table definings

Feature requests for future versions of Hollywood can be voiced here
Post Reply
Bugala
Posts: 1178
Joined: Sun Feb 14, 2010 7:11 pm

possibility to use [1][2] in table definings

Post by Bugala »

I just ended, once again to the situation where I am making table of "triggers" to 2 dimensional map.

Idea is that I have this:

Code: Select all

Map = {
       [1] = {1, 2, 3}
       [2] = {1, 2, 3}
       [3] = {1, 2, 3}
Then i start making some blocks being triggers:

Code: Select all

Triggers = {
         [2] = { [3] = {trigger} }
               }
Especially when there are several triggers, it becomes bit ugly, hence i would rather just do:

Code: Select all

Triggers = {
       [2][3] = {trigger}
                         }
making code much more readable.


But would it be possible to make Hollywood this way, as automatically defining table Triggers[2], since this is the problem basically that Triggers[2] is not defined when trying to define its index [3].
User avatar
lazi
Posts: 625
Joined: Thu Feb 24, 2011 11:08 pm

Re: possibility to use [1][2] in table definings

Post by lazi »

Sorry, don't understand what you want to reach.
Could you describe the problem a bit more?
Bugala
Posts: 1178
Joined: Sun Feb 14, 2010 7:11 pm

Re: possibility to use [1][2] in table definings

Post by Bugala »

This is at wishlist. Currently this is not possible, hence it is feature suggestion to Andreas, but thanks for trying to figure out a solution anyway.
User avatar
airsoftsoftwair
Posts: 5433
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: possibility to use [1][2] in table definings

Post by airsoftsoftwair »

This looks like much too specific for a VM feature... I doubt that there are other people who'd be looking for the very same thing :)
User avatar
lazi
Posts: 625
Joined: Thu Feb 24, 2011 11:08 pm

Re: possibility to use [1][2] in table definings

Post by lazi »

Bugala wrote:This is at wishlist. Currently this is not possible, hence it is feature suggestion to Andreas,...
I did not even know about this method of addressing a table element.
Triggers = { [2] = { [3] = {trigger} }}

Thanks!
User avatar
airsoftsoftwair
Posts: 5433
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: possibility to use [1][2] in table definings

Post by airsoftsoftwair »

It's all in the doc :)
Post Reply