event to overwrite marksman

Discussion of Lua and LuaWML support, development, and ideas.

Moderator: Forum Moderators

Post Reply
B099
Posts: 26
Joined: September 5th, 2024, 1:00 pm

event to overwrite marksman

Post by B099 »

I noticed that effect apply_to="attack" increase_accuracy=1000 and also set_accuracy=100 both get overwritten by marksman/etc. So they have 60% chance instead of 100%. Is there, a solution?
What is there out there?
Dalas120
Posts: 202
Joined: July 5th, 2020, 6:51 pm

Re: event to overwrite marksman

Post by Dalas120 »

I don't have an exact implementation for you, but you should be able to use the `[overwrite]` key of the `[chance_to_hit]` tag:

https://wiki.wesnoth.org/AbilitiesWML#T ... als.5D_tag
Post Reply