weapon special
Moderator: Forum Moderators
Forum rules
- Please use [code] BBCode tags in your posts for embedding WML snippets.
- To keep your code readable so that others can easily help you, make sure to indent it following our conventions.
weapon special
OK I am making a faction and I want to know how to make a weapon special thats like attack only (from beem) except you can only attack slowed enemies. how would I do this?
every time my cat meows, something dies.
- beetlenaut
- Developer
- Posts: 2867
- Joined: December 8th, 2007, 3:21 am
- Location: Washington State
- Contact:
Re: weapon special
I'm pretty sure this is not possible. The only way I could think of would be to cancel an attack that was about to happen on a non-slowed unit. I've tried something like that, but it hangs the game when the AI tries to use it. When the AI's attack is canceled, it tries again and again....for ever.
Campaigns: Dead Water,
The Founding of Borstep,
Secrets of the Ancients,
and WML Guide
The Founding of Borstep,
Secrets of the Ancients,
and WML Guide
- krotop
- 2009 Map Contest Winner
- Posts: 433
- Joined: June 8th, 2006, 3:05 pm
- Location: Bordeaux, France
Re: weapon special
However, you can do an attack that gets strikes or damage per strikes multiplied by 2 when attacking a slowed ennemy.
Don't trust me, I'm just average player.
***
Game feedback for the Nightmares of Meloen
Art feedback by mystic x the unknown
***
Game feedback for the Nightmares of Meloen
Art feedback by mystic x the unknown
- beetlenaut
- Developer
- Posts: 2867
- Joined: December 8th, 2007, 3:21 am
- Location: Washington State
- Contact:
Re: weapon special
Oh, yeah. As a matter of fact, you could make an attack that does zero damage unless attacking a slowed enemy. That would work, but it still gives the AI a disadvantage, because it would never use that attack. It wouldn't crash the game though, and that's an improvement.krotop wrote:However, you can do an attack that gets strikes or damage per strikes multiplied by 2 when attacking a slowed ennemy.
Edit: The damage also wouldn't show up in the damage calculation box, which is a problem.
Campaigns: Dead Water,
The Founding of Borstep,
Secrets of the Ancients,
and WML Guide
The Founding of Borstep,
Secrets of the Ancients,
and WML Guide
Re: weapon special
Minimum damage is 1, minimum CTH however, is 0%.
Solution: [chance_to_hit] [filter_opponent] [filter_wml] [status] slowed=yes
EDIT: er, that has the opposite effect, so throw a [not] in there.
Solution: [chance_to_hit] [filter_opponent] [filter_wml] [status] slowed=yes
EDIT: er, that has the opposite effect, so throw a [not] in there.