Soda Dungeon 2

Soda Dungeon 2

View Stats:
FDru Jul 26, 2020 @ 5:08pm
Scripts: great idea but totally broken
Even something simple like Self Mana <30% Defend is ignored.

Ally Status = Positive Defend is similarly useless so you can't stop your mystic from spamming recharge til she's out of mana.

It's impossible to stop casters from wasting all their mana on ores.

It's impossible to not have a thief ransack the same enemy repeatedly.

It's impossible to not have miners spam transmute over and over.

Why doesn't Self Mana <30% Default Attack even work?

There are tons of issues, some with workaround but they just make the AI as stupid as the default so there's no point. Scripts are basically useless for 90% of what you'd want to use them for.


Is there any chance this system will be improved on and made actually workable?
< >
Showing 1-15 of 15 comments
Apoc Jul 26, 2020 @ 6:34pm 
My Mystic won't cast Recharge again while the buff is still active with Ally MP < 75% : Recharge

If you put Is Ore : Standard Attack as the first priority they won't waste mana on them.

I have yet to use transmute but doesnt that change enemies into ore, something like Enemy is not Ore : Transmute should not cast it again on ore?
KracKils Jul 26, 2020 @ 7:06pm 
This link is from a beginners guide and extremely helpful for scripts

https://thesovietgaming.com/soda-dungeon-2/scripts-guide

Ally Status Effect != positive Recharge is what ya need for recharge

The script system is really good but I'm sure improvements will be made to make it even better

Edit: Also remember priority order as it may override some of your scripts
Last edited by KracKils; Jul 26, 2020 @ 7:07pm
FDru Jul 26, 2020 @ 7:24pm 
Originally posted by Apoc:
My Mystic won't cast Recharge again while the buff is still active with Ally MP < 75% : Recharge
The issue seems to be if that if it checks again and the ally is still below the mana threshold it will cast it again. It could be because the mana has not ticked up yet to bring them above, or that they cast another spell and brought themselves below the threshold again. It's pretty consistent for me, so I tried to do Ally Status = Positive Defend to stop the mystic from doing anything while the buff is up, but that doesn't work.

If you put Is Ore : Standard Attack as the first priority they won't waste mana on them.
Yes but I need casters to be casting their AOE spells during normal battles, not hitting ores. So I could have everyone focus on the ores first but that is the "stupid AI" I want to avoid. And if I set casters to do AOE spells they will obviously spend all of their mana nuking ores in mineshafts.

I have yet to use transmute but doesnt that change enemies into ore, something like Enemy is not Ore : Transmute should not cast it again on ore?
Transmute works only once per combat, so any time after the first it is just resisted and wasted mana, even if it is a different enemy.

Ally Status Effect != positive Recharge is what ya need for recharge
That is fine if the only purpose for your mystic is to cast recharge. But I personally like to have mine spam skull bash and AOE spells with her uniquely high mana regen. Otherwise might as well just load up on carpenters.
Asheira Jul 26, 2020 @ 8:32pm 
It's rather a check for conditions, albeit very simple.
To call it Scripting is misleading.

Just ignore Mine Shafts altogether.
Transmute only creates more ore which slows you down.
With a large enough Mana pool and % Key Find, the Mystic becomes obsolete,
keys for the Fairy = recharge.
I've never used Defend via the automation, can't comment on its usefulness outside of boss fights.
Lucky Thirteen Jul 26, 2020 @ 8:41pm 
Originally posted by FDru:
Originally posted by Apoc:
My Mystic won't cast Recharge again while the buff is still active with Ally MP < 75% : Recharge
The issue seems to be if that if it checks again and the ally is still below the mana threshold it will cast it again. It could be because the mana has not ticked up yet to bring them above, or that they cast another spell and brought themselves below the threshold again. It's pretty consistent for me, so I tried to do Ally Status = Positive Defend to stop the mystic from doing anything while the buff is up, but that doesn't work.

Ally Status Effect != positive Recharge is what ya need for recharge
That is fine if the only purpose for your mystic is to cast recharge. But I personally like to have mine spam skull bash and AOE spells with her uniquely high mana regen. Otherwise might as well just load up on carpenters.

Yeah, the scripts could use some improvements, but most of this can still be arranged with what we have.
For your Mystic, try
1. Enemy Team Alive >2 AoE
2. Ally Status != Positive Recharge

That way, in theory, the Mystic should first check if the Enemy Team condition is met and use her AOE if it is. Then if there's less than 2 enemies, she'd check for Ally Status condition and cast Recharge.

As for wasting mana on ores, that's something that mildly annoys me as well. I suppose a clever user (i.e. not me) would be able to find a way around that using scripts. Maybe something along the lines of
1. Enemy Team Alive >3 AoE spell
2. Enemy Is Ore Default Attack

Handoiron Jul 26, 2020 @ 9:34pm 
You could always turn mineshafts off -- and bypass all side rooms.

Personally I like mineshafts because I have scripts set to default attack them ahead of almost everything else. That means mineshafts turn into mini-fairies because it takes awhile to default attack them all which allows for a good chunk of regen to happen.
azuarc Jul 26, 2020 @ 10:31pm 
I think most of your problems could be resolved with a better script. However, yes, there are definitely a few quirks. Triggers based on percent HP or MP never seem to trigger the way I want, and apparently the nurse's most powerful (non-group) heal is still the group heal that only does ~120. I just fixed my script to forcibly cast First Aid instead, and I cleared an extra 2500 floors today when I was pretty stuck yesterday.
Blackwolfe Jul 27, 2020 @ 6:48am 
Defend and default attack require an enemy target so they won't work with self or ally.

The logic for pilfer, transmute and ransack in scripts will be changed in a future update.

Also, 90% uselessness sounds like an absurd overstatement.
FDru Jul 27, 2020 @ 8:25am 
Originally posted by Blackwolfe:
Also, 90% uselessness sounds like an absurd overstatement.
Guess that depends on what you want to do. Maybe it's more like 70%, considering it's possible to make a good script for like, 2 of the classes.
Blackwolfe Jul 27, 2020 @ 8:30am 
Originally posted by FDru:
Originally posted by Blackwolfe:
Also, 90% uselessness sounds like an absurd overstatement.
Guess that depends on what you want to do. Maybe it's more like 70%, considering it's possible to make a good script for like, 2 of the classes.

It is certainly possible to make good scripts for every character, a few bugs aside. Far from totally broken. Floor 500k+ and never had any issues making good scripts. In some cases you might have to do some form of workaround for some bugs but that's about it.

Secondary conditions are coming in the future as are fixes for transmute/pilfer/ransack and more.

https://trello.com/b/RYGuSbPO/soda-dungeon-2-dev-tracker
Last edited by Blackwolfe; Jul 27, 2020 @ 8:34am
noah9942 Jul 27, 2020 @ 8:05pm 
Originally posted by FDru:
Originally posted by Blackwolfe:
Also, 90% uselessness sounds like an absurd overstatement.
Guess that depends on what you want to do. Maybe it's more like 70%, considering it's possible to make a good script for like, 2 of the classes.

what classes are you specifically looking for scripts for and what do you want them to do?
Handoiron Jul 28, 2020 @ 9:23am 
Originally posted by Lecrough:
My Thief setup thanks to Handoiron for coming up with it. (Copy and pasted from his posting)

1 Enemy : Is Ore : Default Attack
2 Enemy : HP > 90% Ransack
3 Enemy : HP < 90% Default Attack
4 Enemy : HP > 0% Defend
That was the script I came up with specifically for 4 thief runs in order to farm extra crafting resources using ransack and prevent the first 1 or 2 thieves from running out of mana to ransack and then attacking instead which would stop other thieves from ransacking due to taking un-ransacked enemies below 90% health.

As it turns out, it was a nearly worthless endeavor because raising item find to 80 means every normal enemy is nearly guaranteed to drop an item so is much more effective. Also, at that point, ransacking things is a very minor benefit because ransack isn't affected by item find. It's much more effective to farm crafting resources with 80 item find and a fast killing group than to run a 4 thief ransack team.

If you're just using 1 thief at the front to ransack for essence, you can set up a simple has essence = ransack line and then only have to worry about minibosses or bosses that have essence being ransacked repeatedly.

I'm guessing that the problem mentioned by FDru that his thieves constantly ransack is more that he has them set to use strongest attack or strongest single target attack in his scripts. Ransack is considered thief's strongest innate attack so unless you're running an item that has higher damage, it will use Ransack in any script that says to use strongest attack.

If you would rather they not use ransack for their main damage, try changing your scripts saying "strongest / strongest single target attack" to default attack so they don't use ransack as their main damage.

1 Enemy : Is Ore - Default Attack
2 Enemy : HP <90% - Default Attack
3 Enemy : Has Essence - Ransack
4 Enemy : Weakest - Default Attack

The above should ensure that your thief helps clear ores without wasting mana ransacking them.

Then it will check if anything is below 90% and default attack them in order to avoid chain ransacking the non normal essence enemies that don't die before the thief acts again. Then it will check if there is an essence enemy and ransack it for the bonus essence.

Finally, if there is no ore or essence enemy or enemy below 90% health it will hit with a default attack.

The majority of the time, your thief using that script in the first party slot will simply ransack any enemy with essence once and move on to only using default attack so you save mana.

Occasionally, it will miss ransacking an enemy just because an ore is there and they aren't the first party member to act after the ore is broken. If that is a big issue for you, you can just remove the first line and accept your thief will mostly ignore ores.

That could cause you to miss ores when they spawn in 2 enemy levels though because at low enough levels, ransack or default attack on the non-ore enemy by the thief in your first party slot can 1 shot the enemy and un-damaged ores as the last enemy on a normal level are ignored and passed by.
Mogidin Jul 28, 2020 @ 3:55pm 
i have trouble with DM curse spell. when enemies spawn with ore mine

enemy: status != negative - curse
enemy: is ore - attack/noxin

if "status" action is first - DM always cast curse on ore mine, and it all depends on the order of the enemies
ore mine can be last target for DM, and DM just spend mp for useless cast, waiting for the end curse on other enemy
or ore mine is not last target, and enemy that is not turned to stone deals damage to my party

if "ore" action is first - enemy newer turned to stone (while ore mine is "alive") and deals damage to my party

also, I can not deal magic damage with the imposition of effects. because it breaks check for curse
Last edited by Mogidin; Jul 28, 2020 @ 3:59pm
IsaJaan Dec 10, 2022 @ 5:18pm 
Now, 2 years later reading this thread is so crazy. Was knowledge about that game really that small? The scripts haven't been updated at all. It has always been fine, there are logical solutions to all of those problems now. Damn.
noah9942 Dec 10, 2022 @ 6:20pm 
Originally posted by IsaJaan:
Now, 2 years later reading this thread is so crazy. Was knowledge about that game really that small? The scripts haven't been updated at all. It has always been fine, there are logical solutions to all of those problems now. Damn.

pls dont necro old threads

but to answer your question, scripts have been improved a good bit since then, but even then they werent that complex, it's just that there were no guides since they were new. So many people struggled with them. Sorry not everyone is as cool as you
< >
Showing 1-15 of 15 comments
Per page: 1530 50