Laststrike attack special

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

Moderator: Forum Moderators

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

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
SP Campaigns: After EI (v1.14) Leafsea Burning (v1.17, v1.16)
I suspect the universe is simpler than we think and stranger than we can know.
Also, I fear that beyond a certain point more intelligence does not necessarily benefit a species...
User avatar
Ravana
Forum Moderator
Posts: 2933
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: 491
Joined: December 18th, 2016, 6:14 pm
Location: Yes

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