wordbots / wordbots-core

Client-side code for Wordbots, the card game where YOU make the cards.
http://wordbots.io
MIT License
23 stars 4 forks source link

[Suggestion] Attacks (action) word #1900

Open Zergla opened 9 months ago

Zergla commented 9 months ago

It often happens to me that I want a robot to attack another robot as part of an ability. The problem is that there isn't an attack action, and attacks in this game are fairly complicated: -both robots deal damage to each other, -robot can't attack if they have "defender" or 0 attack, -robots with "this robot only deals damage when attacking" can't defend, -if the attacked robot die but not the attacker, then the attacker move on the attacked's tile -when a robot attack, it triggers "When this robot attack" The Last of these can't be replicated at all, doing most of these would be hard on the parser (and both robots deal damage to each other isn't replicable if you want a chosen robot to attack, rather than the one who use the ability) Generally "this robot deals damage to that robot" is enough, but I feel it could be better if we had an action definition of attacks, like X attack Y, or maybe X attack Y for n damage

Example where attacks could be useful: https://app.wordbots.io/card/kw2u0b1135 (This one is also problematic in that the damage is forced to come from "This robot", because "That robot deals damage to X" is invalid

https://app.wordbots.io/card/azie2ubsc1 https://app.wordbots.io/card/4f5wlvoatd1 https://app.wordbots.io/card/o8bor8zcvxq