Feature Request: creating groups/scripts from scripts.

Post Reply
User avatar
tsuujin
Posts: 695
Joined: Fri Feb 26, 2010 12:59 am
Location: California
Contact:

Feature Request: creating groups/scripts from scripts.

Post by tsuujin »

I've started organizing my system into modules, and part of this process is having each module manage it's own triggers and aliases, creating them if necessary (such as: first boot in profile). This has led me to see two problems:

First, there is no way that I can see to create a new alias/trigger/script group. It'd be nice to be able to have my scripts self-organize.
permGroup(name, type)
Code: [show] | [select all] lua
permGroup("New Group Name","trigger")
Second, there is no way to have a script create another script, which would be -very- useful for creating events on the fly. As it stands, if you need to tie something to an event, you must use a script... and you can only manually create scripts.
tempEvent(event, luaCode)
Code: [show] | [select all] lua
tempEvent("prompt",[[doPrintSomePromptStuffIGuess()]])
or even
tempEvent(event list, lua code)
Code: [show] | [select all] lua
tempEvent({"prompt","balanceRecovered","something else"}, [[Some lua code that ties these three things together somehow]])

User avatar
Vadi
Posts: 5042
Joined: Sat Mar 14, 2009 3:13 pm

Re: Feature Request: creating groups/scripts from scripts.

Post by Vadi »

You create a group by not giving it a pattern :)

I agree with being able to add/remove event handlers to script.

User avatar
tsuujin
Posts: 695
Joined: Fri Feb 26, 2010 12:59 am
Location: California
Contact:

Re: Feature Request: creating groups/scripts from scripts.

Post by tsuujin »

Vadi wrote:You create a group by not giving it a pattern :)

I agree with being able to add/remove event handlers to script.
I tried this several times, and a group was never created.

User avatar
Vadi
Posts: 5042
Joined: Sat Mar 14, 2009 3:13 pm

Re: Feature Request: creating groups/scripts from scripts.

Post by Vadi »

Indeed. I'll either see about either fixing this, or using your permGroup suggestion today if time permits.

Post Reply