wordbots / wordbots-core

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

Some Activate parsing problem with Give that robot "Ability" #1890

Open Zergla opened 6 months ago

Zergla commented 6 months ago

Sometimes, when creating a long "Activate:", I have a problem where I need to give an ability to a chosen robot, but the parsing only work if the ability has no "" surrounding it, meaning I need to "give that robot Ability" as the last action, and I can't give complicated ability because it's ambiguous whether it is part of the Activate, or the given ability. For example : At the end of each of your turn, destroy every robot with 0 health, then create a 0/0/0 robot named "Holy shield" on each adjacent tile, then choose all robots with 0 health, then give that robot 1 health, then give that robot At the start of each of your turn, destroy this robot. Parse but At the end of each of your turn, destroy every robot with 0 health, then create a 0/0/0 robot named "Holy shield" on each adjacent tile, then choose all robots with 0 health, then give that robot 1 health, then give that robot \" At the start of each of your turn, destroy this robot \". Doesn't

Robots suffering this problem are: https://app.wordbots.io/card/p9uu7s4ualr https://app.wordbots.io/card/0z7mw76u7ax

They are pretty similar in construction so I believe it to be a problem with create a robot named "X" Because it may treat it as a robot named (X" text text text Give that robot "Ability) Kinda like how create a robot named "Bob" with ability "Haste" Create a robot named Bob" with ability "Haste

Zergla commented 6 months ago

If this is really a problem between choosing from "1" 2 "3" and "1" 2 "3", quotation marks could be converted to European quote marks «» or you could require using \" or ' for quotation mark inside quotation mark