weapon special

The place to post your WML questions and answers.

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.
Post Reply
User avatar
fuzz579
Posts: 33
Joined: November 29th, 2008, 2:17 am
Location: kitty!

weapon special

Post by fuzz579 »

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.
User avatar
beetlenaut
Developer
Posts: 2867
Joined: December 8th, 2007, 3:21 am
Location: Washington State
Contact:

Re: weapon special

Post by beetlenaut »

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
User avatar
fuzz579
Posts: 33
Joined: November 29th, 2008, 2:17 am
Location: kitty!

Re: weapon special

Post by fuzz579 »

oh ok thanks
every time my cat meows, something dies.
User avatar
krotop
2009 Map Contest Winner
Posts: 433
Joined: June 8th, 2006, 3:05 pm
Location: Bordeaux, France

Re: weapon special

Post by krotop »

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
User avatar
beetlenaut
Developer
Posts: 2867
Joined: December 8th, 2007, 3:21 am
Location: Washington State
Contact:

Re: weapon special

Post by beetlenaut »

krotop wrote:However, you can do an attack that gets strikes or damage per strikes multiplied by 2 when attacking a slowed ennemy.
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.
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
AI
Inactive Developer
Posts: 2396
Joined: January 31st, 2008, 8:38 pm

Re: weapon special

Post by AI »

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.
User avatar
fuzz579
Posts: 33
Joined: November 29th, 2008, 2:17 am
Location: kitty!

Re: weapon special

Post by fuzz579 »

ok thanks
every time my cat meows, something dies.
Post Reply