Multiline trigger and table

Post Reply
oay
Posts: 2
Joined: Tue Dec 27, 2016 8:21 pm

Multiline trigger and table

Post by oay »

Hi i'm a real begginer at Lua and trying to set up multiline trigger and table with buffname = On/Off which i then echo to a geyser box,
But got stuck on the part of how to change the table depending on which trigger fires...Or if i should just use single triggers instead considering it's only about 15 Buffs to trigger On and Off?
example:
Trigger 0
Code: [show] | [select all] lua
^Your skin transforms into solid stone\!$
Trigger 1
Code: [show] | [select all] lua
^You are surrounded by anti countering field.$
Trigger 1 to change BuffsTable.Stoneskin to On
Trigger 2 to change BuffsTable.Anticounter to On

Or if i should go at it another way?

/Oay

Brontey
Posts: 1
Joined: Sun Jan 01, 2017 8:34 am

Re: Multiline trigger and table

Post by Brontey »

Hi oay have you figured this out yet?
Last edited by Brontey on Fri Dec 01, 2023 9:52 pm, edited 6 times in total.

oay
Posts: 2
Joined: Tue Dec 27, 2016 8:21 pm

Re: Multiline trigger and table

Post by oay »

No, haven't had time to get into it myself around christmas and new years, guess i need to start reading up on it soon though :)

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

Re: Multiline trigger and table

Post by Vadi »

If your triggers are doing different stuff, it's best to make multiple triggers then. Multiline OR triggers are best if you have a bunch of triggers all doing the same thing.

Post Reply