Skip to content

Add link event trigger node.#449

Draft
Hoikas wants to merge 6 commits into
H-uru:masterfrom
Hoikas:link_event_trigger
Draft

Add link event trigger node.#449
Hoikas wants to merge 6 commits into
H-uru:masterfrom
Hoikas:link_event_trigger

Conversation

@Hoikas

@Hoikas Hoikas commented Dec 13, 2025

Copy link
Copy Markdown
Member

This is a higher level use case of the xLinkEventTrigger.py file introduced in H-uru/Plasma#1821. RIght now, this is just an example. I still have some iteration to do here, and I would like to add some more high level logic nodes to improve the workflow where Python has to get involved.

Python File nodes are tricky because the attributes are inputs to the script but function logically as outputs. For example, responders appear as an input to a Python file node, but Python file nodes can trigger responders. The inverse is also true. In the case of xLinkEventTrigger.py, we see the same thing - normally an activator is an input/trigger for a Python file node, but, in this case, the Python script is triggering the activator so that the responder or other things connected under "satisfies" can proceed.

@Hoikas Hoikas force-pushed the link_event_trigger branch 3 times, most recently from 0dc2b48 to c69c4e4 Compare December 14, 2025 23:01
This is a helper node to abstract away the oddities of dealing with
Python File Mods triggering logic. It's hopefully the first of many
higher level logic nodes.
Refactor the previous slightly to allow reusing the logic thunk
cleverness and add dedicated nodes for changing SDL variables.
This adds two nodes for responding to SDL boolean events. The SDL Bool
Trigger node is designed to fire off a Responder when an SDL variable is
in the expected boolean state (true or false). Optionally, the Responder
can be gated on another SDL variable. The node swaps between
xAgeSDLBoolRespond and xAgeSDLBoolAndRespond as needed.

As a bonus, the SDL Bool Gate node uses xAgeSDLBoolCondResp to
trigger a Responder conditionally based on an activator (eg clickable)
and the value of an SDL boolean. This script was added in MOUL but is
included in the OfflineKI, so it's a safe bet.
SDL Bool Gate is a better match for things like xAgeSDLBoolAndSet. So,
rename this node and move it to the conditions file. I suspect it will
not be as useful, so it's ok to yolo it elsewhere.
The "trigger multistage" node was a generic this-player-triggered-it
message anyway. We now have some pretty generic SDL setting stuff, and
it would be nice to fire those from responders. This is the tool we'll
use for that.
This implements a real SDL boolean logic gate node. Some good future
work here would be to force a minimum of two input node sockets to be
visible at all times.
@Hoikas Hoikas force-pushed the link_event_trigger branch from c69c4e4 to 89d0fa5 Compare June 18, 2026 02:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant