alienrpg icon indicating copy to clipboard operation
alienrpg copied to clipboard

Automatization of Custom Panic table?

Open jacksands opened this issue 1 year ago • 6 comments

Hi! I have been trying to make a custom panic table for my game, what is done, but I haven't been successful in make the automations...

Every time I make the roll from the sheet it rolls the original table, instead of the tables that are in the table list, I made sure to look for all possible panic tables that show in the system, and no luck.

I have the official Core rules and the CMOM, if that makes any difference...

also, the automation for modifiers in the panic roll with items are amazing, can it be altered or customized for my table? were are these items and how do I link than to de roll?

As always thank you for the incredible system!!

Erich

jacksands avatar May 19 '24 11:05 jacksands

Are you replacing the Panic Table?
The panic table is the hardest table to substitute as because of the "More Panic" rule some of the text is hard coded in the language files. Under the lables "Panic1" to "Panic15", so you would need to change thse as well.

The automation is also hard coded (line 611 onwards in actor.js) as the result is checked, to see if its a character change, which I can do as opposed to a party effect which depends on the other actors range.
If it's a result I can do something with (rolls of 8, 10 & 13) I either directly update the actors stats (10 or 13) or for a roll of 8 create an item on the actor with the necessary modifiers.

pwatson100 avatar May 19 '24 11:05 pwatson100

kkk It seems I will need to learn a bit of coding to move forward on this or roll it manually...

but a challenge is always fun!

thank you for the guidance!!!

jacksands avatar May 19 '24 12:05 jacksands

I'm looking ate it now and I think that with your instructions I may actually be able to do it!

aside from that, this is fantastic!! How much of this codemancy you have use!!!

TKS!!!

jacksands avatar May 19 '24 20:05 jacksands

It really worked! even the automations!!!

thank you very much!!!

jacksands avatar May 19 '24 21:05 jacksands

That's really good.
Just remember that when you do an update the actor.js and the language files might be overwritten.

I would be interested in seeing the changes you made.

I have been thinking of how I might build something into the system to make this easier.

pwatson100 avatar May 19 '24 22:05 pwatson100

My players and I think that the panic rolls cascading affects and some results impeding the action, even with success reduces the agency to choose their action, of course this is by design and changing that makes the game less deadly, but we choose for the fun factor.

I change the text of the panic results to alter this situations, and make some others dependent on if you had a successful roll, etc.

I’m sending the files, since we play with the interface in English I only change this language file, but the text are on Brazilian Portuguese for our convenience.

I tried to chance this to a minimum to avoid errors, so on the en.json files only the lines 262 to 271 are altered, even that originally I intended to add a few more levels. I know that I would have to add lines in the actor.js near lines 1267 but decided to go save.

Also, in the language file I introduced empty paragraphs “ ” to facilitate reading.

About the changes in the actor.js they are very few, I just removed the lines that are result dependent, if I remember correctly case 9 and 12 are jus removed.

Now if I can make a suggestion, you system works flawlessly, perhaps would be more save to just add an option to de system setting allowing to choose for “custom panic tables” and using a Dropbox like menu to choose between any tables in the world, after this would only serve to show the result in the chat.

There is a similar situation on the Savage World System, for injury tables I guess, perhaps that can help with coding. swade exemple

The second part would be automation, I suggest the let the GM know that enabling the custom panic would disable the panic automation or if you want, maybe you can make a field for gms to fill in the modifiers for the system to read when custom is activated.

In any case sorry for the really big text, I thank you for the invaluable help!!!

Erich

files.zip

jacksands avatar May 20 '24 22:05 jacksands

Hate to pop into something a year later but I would second a toggle to enable/display the automation. I was attempting to add some extra options to the Panic Table and was really confused about why I kept seeing the default results, even with essentially nothing in the panic table.

Image

Out of curiosity, what would be the simplest way to just display table results when rolling panic (I can live without automation)? Just remove the switch cases from actor.js?

audioeng89 avatar Jul 07 '25 15:07 audioeng89

Currently it's really not that simple. The panic table is remembering I wrote this over 5 years ago, the table is referenced by the code additionally the "more panic" code relies on the table and the data in the language files.

The way panic tables are used has changed in Alien Enhanced to I will be looking into making them more extendable by GM's if possible.

pwatson100 avatar Jul 07 '25 15:07 pwatson100

Because I'm an absolute glutton for punishment, I wrote a crude module that hooks into existing actor panic rolls (I didn't dare tackle ship panic too) and changes the way automatic Panic Effects are handled. It also makes a few key options configurable.

Rather than using the hard-coded switch/case example in the current setup, this idea uses regex to scan the table result text and then assigns the relevant status effect. The condition is that the status effect is formatted as STRESS+1, STRENGTH-2, WITS-1, AGILITY-2, EMPATHY+1, etc, (all-caps, no spaces). I figured this would be foolproof enough not to pick up false positives while still allowing for reader/user friendly table outputs and data entry.

It can handle multiple status effects at once, but probably not multiple declarations of the same effect in one result. There's also a routine to clear the items on panic stop.

Image Image

The nice thing about this is you can change the table at will and use nested tables to expand the panic setup. But it's much more limited in the chat formatting applied to specific results (pros and cons of user configuration). I'm sure this is far from perfect and I'd have a lot more testing to do before I'd consider publishing this as a module. But I'll leave the code here in case it gives you any ideas for the Alien Enhanced rewrite.

panic_enhanced.txt

audioeng89 avatar Jul 09 '25 09:07 audioeng89