-
Notifications
You must be signed in to change notification settings - Fork 290
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adds new examine actions: notify and transform. #716
Adds new examine actions: notify and transform. #716
Conversation
notify and transform. - Notify: When object is examined, a popup will be shown with the contents of the object's message property. - Transform: When object is examined, it changes into the object specified by its transforms_into property. If the new object has a message property, it is displayed in a popup.
Haven't thought of a vanilla use for notify aside from as a quick way to grok description for stuff that doesn't already have an examine action, but some potential vanilla uses for transform:
I could see if I can make idea two a thing, that might compliment this addition... |
Smol side note, the JSON example provided in the OP lacks a transform message, it seems? |
That is correct. I did test it with one, but in the final, I just wanted a lamp that turned on and off. |
What's the default message if one is absent? |
For transform, if there isn't one, the popup never triggers. For notify, if there's no message, you get a tiny empty popup box. |
Could you add it to a file? For example, a new file |
Astyle check is failing because you have used different spacing in |
…monstrated the funtionality, it was annoying. Renamed test broken console so it wouldn't conflict with the existing one.
…sg for message instead of popup.
I have officially reached "Fuck it" |
It's just a json error. Run it through https://dev.narc.ro/cataclysm/format.html and it should work. |
…ylakaze/Cataclysm-BN into kaylakaze-new-examine-actions
Summary
SUMMARY: [Mods] "Adds new examine actions: notify and transform"
Purpose of change
This is to provide modders with more functionality. A lot can be accomplished with just the ability to transform an in-world object and the notify action is just to allow the modder to provide feedback to the user.
Fixes #711
Describe the solution
Two new examine-actions are available to modders: notify and transform.
Notify: When the object is examined, a popup will be shown with the contents of the object's message property.
Transform: When the object is examined, it changes into the object specified by its transforms_into property. If the new object has a message property, it is displayed in a popup, like the notify action.
Testing
I created a mod that used each examine action and verified that it worked as expected. As the code is very basic and only adds to the existing code instead of