NIFE: Custom Actions Notes
Posted: Posted May 18th by Xhin
I've wanted this feature for a very long time, but it finally looks very viable and maybe even relatively easy to set up.
This plugin would allow Hosts to create their own auto-actions that then do stuff via the events system.
An action can have up to three targets:
Bite [character] -- 1 target
Fix [machine] with [item] -- 2 targets
Examine [character] [property] with [my machine] -- 3 targets
If we need more for some reason I can add more but I kinda doubt you'd need more than 2 ever.
Each "target" is one of the entities that the Tech machine type taps into -- characters, rooms, items, machines, crops, etc. You can also filter these down, like "machines with 0 uses left" or "characters without the zombie trait" or even "items on a character I'm in battle with that are permanent". This filtered list would then show up in the select box.
The format of the auto-action would look like "Fix $1 with $2". You can make whatever you want here. You can also adjust the color of the auto-action to whatever you want, but not the placement just yet.
When the actions runs, it fires some set of events that you choose, with #target1, #target2, #target3 being whatever the player picks.
You can also make a target a number, where you specify the range. This would allow players to adjust Stats and things in a more direct way.
To greatly simplify things but increase functionality, whether custom actions are available or not will be based on the conditions system. Perhaps the Bite action only works if you're a zombie, or the"Lower Water Level" action only works if you're in a room with >50 water stat.
Once this plugin is in place I'd like to rewrite regular actions in it. This should drastically streamline the way actions are handled and allow for some features that are really hard right now. But additionally this would allow Hosts to reorder Actions of all kinds and turn them on or off Conditionally.
For example you could say that all Sparring actions can only be done in a Room with the "PVP" trait. Or perhaps you can only Steal if your Thief Skill is level 3 or above.
There are 3 Replies
Reply to: NIFE: Custom Actions Notes