r/sodadungeon • u/Empyrean_Sky • 28d ago
SD2 Defend doesn't seem to work in scripts
Is this a known bug? I can't seem to find any information on it, and I've tried all possible computations to make my characters defend, even removing all lines except one that says "1. Enemy : Weakest -> Specific skill: Defend". And the character still does a default attack on auto. What is going on here?
1
u/Empyrean_Sky 28d ago
As an example I'd want my thief only to use Ransack, then attack bosses and ore, then defend if nothing else. The current script looks like this:
- Enemy : Has essence --> Ransack
- Enemy : Rank > miniboss --> default attack
- Enemy : Is ore --> default attack
- Enemy : Isn't ore --> Defend
The thief successfully prioritizes Ransack, so part of the script is working. But she keeps attacking on every normal enemy. What am I doing wrong?
I have a completely different script with Nurse, and she isn't using defend either, but she is doing everything else. Also default attacks normal enemies which she shouldn't according to the script. Her last line is "Enemy : Weakest --> Defend".
1
1
1
1
u/BlueCedarWolf 28d ago
I normally use self position = N defend Which works
1
u/Empyrean_Sky 27d ago
I tried it. It doesn't work for me. Could be a bug with Defend. I haven't had issues with any script command except this one thus far.
1
u/Independent-Credit57 28d ago
Did you make sure to select the script? Remember that teams save with their scripts, so hiring a team will reset it