Like feeding but affects undead too

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

Moderator: Forum Moderators

Post Reply
User avatar
Chris NS
Posts: 540
Joined: May 6th, 2006, 3:22 pm
Location: Where the Queen lives

Like feeding but affects undead too

Post by Chris NS »

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?
User avatar
Celtic_Minstrel
Developer
Posts: 2233
Joined: August 3rd, 2012, 11:26 pm
Location: Canada
Contact:

Re: Like feeding but affects undead too

Post by Celtic_Minstrel »

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.
Author of The Black Cross of Aleron campaign and Default++ era.
Former maintainer of Steelhive.
User avatar
Ravana
Forum Moderator
Posts: 3011
Joined: January 29th, 2012, 12:49 am
Location: Estonia
Contact:

Re: Like feeding but affects undead too

Post by Ravana »

You can also implement it in pure WML.
User avatar
Chris NS
Posts: 540
Joined: May 6th, 2006, 3:22 pm
Location: Where the Queen lives

Re: Like feeding but affects undead too

Post by Chris NS »

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.
User avatar
Chris NS
Posts: 540
Joined: May 6th, 2006, 3:22 pm
Location: Where the Queen lives

Re: Like feeding but affects undead too

Post by Chris NS »

Perfect! Should be able to work from that. (This only affects one scenario so should be straightforward.)
Post Reply