SDL Clickable Node#459
Draft
Hoikas wants to merge 3 commits into
Draft
Conversation
Hoikas
force-pushed
the
sdl_clickable_node
branch
from
July 17, 2026 01:55
289422e to
a7e0a78
Compare
This will be a bit niche, but some nodes may need to expose a key for themselves and keys that they want notified. For notify messages, we want to notify the former and not the latter. Sometimes those buckets are the same, sometimes not.
The old socket and node type validation is useful most of the time, but some nodes will need to have more complex validation logic, so allow them to do so.
This node enable/disables the clickable hotspot based on the value of the attached SDL variable. When this node is linked to a clickable, it takes ownership of the clickable and all downstream nodes triggered by the clickable must be linked to it instead of the clickable itself. I did attempt to allow simultaneous access to the clickable and the conditional clickable, but I found that engine limitation made that impractical without modifying plActivatorActivatorConditionalObject.
Hoikas
force-pushed
the
sdl_clickable_node
branch
from
July 17, 2026 21:26
a7e0a78 to
4e32f47
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This is the "SDL Clickable" node shown in #458. The node takes an SDL variable and a single clickable and enable/disables the clickable's hotspot based on whether or not the SDL variable matches the list of integers provided. The underlying script is xAgeSDLIntActEnabler.
The problem with this is that xAgeSDLIntActEnabler basically takes control of the clickable's physical to turn it on or off. That means the user could get surprising results if they use the same clickable object with different SDL variables. Required reading - the LOS probe that finds clickables disables the hotspot if it finds any disabled LogicMods attached to the physical's target. The clickable node tries to ensure no one links another condition directly to it if an "SDL Clickable" node is attached, but that can be worked around by just adding another clickable node. To be honest, though, having multiple clickables with different settings attached to the same collider would probably not work as expected and is something that Korman should prevent, potentially be poisoning an object once it's used as a clickable.
All that to say, I think this is a good idea, but I feel like it also opens the door to too many surprises for now.