Like feeding but affects undead too
Moderator: Forum Moderators
Like feeding but affects undead too
Quick question ...
I'm trying to create an ability that is like feeding but the +1hp max bonus applies to all units including undead. However, feeding cites LUA, and I haven't a clue how you customise an LUA-based ability.
Any ideas?
I'm trying to create an ability that is like feeding but the +1hp max bonus applies to all units including undead. However, feeding cites LUA, and I haven't a clue how you customise an LUA-based ability.
Any ideas?
- Celtic_Minstrel
- Developer
- Posts: 2241
- Joined: August 3rd, 2012, 11:26 pm
- Location: Canada
- Contact:
Re: Like feeding but affects undead too
You can pretty much copy the feeding Lua file and customize it however you want. In this case, just deleting the test that the killed unit is not unplagueable should be enough.
Re: Like feeding but affects undead too
You can also implement it in pure WML.
Re: Like feeding but affects undead too
Thanks. Think I'll go for the WML option as it's going to be a steep learning curve ot use LUA once. Over to WML workshop I guess.
Re: Like feeding but affects undead too
You can find old feeding wml from https://github.com/wesnoth/wesnoth/comm ... 4e9945622f
Re: Like feeding but affects undead too
Perfect! Should be able to work from that. (This only affects one scenario so should be straightforward.)