Skip to content
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

RPG: Add support for custom weaknesses for scripted monsters and equipment #466

Merged
merged 6 commits into from Dec 17, 2022

Conversation

Hypexion
Copy link
Contributor

@Hypexion Hypexion commented Dec 14, 2022

Adds a new pre-defined var, _MyWeakness, that allows for scripted monsters and equipment to support additional weakness types beyond the current Goblin and Wyrm weaknesses. If the player battles a monster with a custom weakness value, and the custom weakness value of their weapon or accessory matches, the player will benefit from the x2 ATK bonus. This check is case-sensitive.

In the UI, a monster's weakness is given as its "aspect", while equipment tooltips show a "Strong against" line if a weakness is set.

Currently, a scripted entity can only have one aspect or strength, but it would be possible to use a specified character as a delimiter and support multiples.

Thread: https://forum.caravelgames.com/viewtopic.php?TopicID=45774

@mrimer mrimer merged commit ab448e2 into CaravelGames:rpg-1.3-dev Dec 17, 2022
@Hypexion Hypexion deleted the rpg-custom-weakness branch December 17, 2022 07:50
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.

None yet

2 participants