Laststrike attack special

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

Moderator: Forum Moderators

Post Reply
User avatar
Spannerbag
Posts: 86
Joined: December 18th, 2016, 6:14 pm

Laststrike attack special

Post by Spannerbag »

Hi again,

I'd like to give a unittype a laststrike attack special (the reverse of firststrike).
Presently I'm looking at adapting the code for initiative from HttT.
However, if anyone happens to be able to post the (lua?) code for firststrike, I may be able to create this ability just by reversing a few things, maybe?

Otherwise I'll implement in WML :)

Thanks in advance!

Cheers,
-- Spannerbag
UMC Campaign: After EI
I suspect the universe is simpler than we think and stranger than we can know.
User avatar
Ravana
Forum Moderator
Posts: 2515
Joined: January 29th, 2012, 12:49 am
Location: Estonia
Contact:

Re: Laststrike attack special

Post by Ravana »

Just [firststrike] with apply_to=opponent?
User avatar
Spannerbag
Posts: 86
Joined: December 18th, 2016, 6:14 pm

Re: Laststrike attack special

Post by Spannerbag »

Ravana wrote: June 9th, 2021, 10:36 pm Just [firststrike] with apply_to=opponent?
Great idea, hadn't thought of that. Thanks! :D

Cheers,
-- Spannerbag
Post Reply