-
Notifications
You must be signed in to change notification settings - Fork 53
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
Customize combat messaging for weapons #92
Comments
Spent some time working on this over the weekend, mainly pondering how best to do it. It's a touch beyond my skills, but if you could provide me with an example of what this would look like on the prototypes_weapons.py file, I'd be happy to fill this in for all the other records. For my own notes, weapons.py line 29, rulebook.py 438 |
@stefanludlow, here's an example:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Currently, all weapons use the base Weapon typeclass's combat messaging. They are stored in an dict attribute called
messages
that has four keys for the four possible weapon attack outcomes.dmg_hp
- displayed when the weapon is used to damage the target's HPdmg_sp
- displayed when the weapon is used to damage the target's SPdodged
- displayed when the attack is dodgedmissed
- displayed when the attack missesHere is a link to the messages' definition in the base typeclass: https://github.com/evennia/ainneve/blob/master/typeclasses/weapons.py#L29
To implement this, a
messages
key will need to be added to each weapon prototype in the prototypes_weapons.py file.Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
The text was updated successfully, but these errors were encountered: