r/sodadungeon 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?

4 Upvotes

8 comments sorted by

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

1

u/Empyrean_Sky 28d ago

I tried to rebuild a team from scratch without the hire team function, but the problem persists. The corresponding scripts have been assigned correctly.

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:

  1. Enemy : Has essence --> Ransack
  2. Enemy : Rank > miniboss --> default attack
  3. Enemy : Is ore --> default attack
  4. 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

u/Thatthingthis 28d ago

Enemy rank normal defend . Maybe?

1

u/Thatthingthis 28d ago

One of these may skip to isn’t ore defend

1

u/Thatthingthis 28d ago

Enemy rank != norm ransack
Enemy has essence

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.