Giter Site home page Giter Site logo

Comments (8)

WillScarlettOhara avatar WillScarlettOhara commented on September 22, 2024 1

bddefai.zip

I'm really bad at coding. It's just copy/pasting bit of code from there https://forums.beamdog.com/discussion/72379/convenience-script-instant-store-access-easy-prebuffing-bard-song to SCS Ease of Use AI.
I like the auto bard song and the auto stealth features.

from bg2-tweaks-and-tricks.

burner1024 avatar burner1024 commented on September 22, 2024

Do the rest of the intuition components work fine with Jan? Game pause, trap found sound?

from bg2-tweaks-and-tricks.

WillScarlettOhara avatar WillScarlettOhara commented on September 22, 2024

Yep

from bg2-tweaks-and-tricks.

burner1024 avatar burner1024 commented on September 22, 2024

Could you start a new game, cheat in Jan CreateCreature("jan10"), ctrl-q and test him the same way you tested Imoen?
I can't reproduce on classic, maybe it's a EE thing.

from bg2-tweaks-and-tricks.

WillScarlettOhara avatar WillScarlettOhara commented on September 22, 2024

It's working.

from bg2-tweaks-and-tricks.

WillScarlettOhara avatar WillScarlettOhara commented on September 22, 2024

I found the culprit.

Turns out I modified the SCS Ease-Of-Use AI script with this code to allow me to auto-stealth out of combat.

IF
	!GlobalTimerNotExpired("P!_HIDE","LOCALS")
	ActionListEmpty()
	!Detect(NearestEnemyOf(Myself))
	OR(3)
		Class(Myself,THIEF_ALL)
		Class(Myself,RANGER_ALL)
		Class(Myself,MONK)
	!StateCheck(Myself,STATE_INVISIBLE)
	!ModalState(TURNUNDEAD)
	!ModalState(STEALTH)
	!ModalState(DETECTTRAPS)
	!ButtonDisabled(BUTTON_STEALTH)
THEN
	RESPONSE #100
		SetGlobalTimer("P!_HIDE","LOCALS",2)
		Hide()
END

Auto stealth script + your mod make it hard for the game to know what to do? Find traps or hide in shadows?
Deeply sorry, it's all my fault. Sorry for the inconvenience. I hope you didn't take too much of your time.

from bg2-tweaks-and-tricks.

burner1024 avatar burner1024 commented on September 22, 2024

Hm. Well, just by looking at your script, I'd say they should coexist fine still.
You check for modal state, and TnT doesn't, so it should likely override the command.
You can attach your full AI script, I'll try it sometime later.

from bg2-tweaks-and-tricks.

burner1024 avatar burner1024 commented on September 22, 2024

I tried your script on fresh bg2ee installation, and with AI enabled Imoen automatically switches to trap detection mode asap, she's not hiding in shadows.
I then tried using the script with just the snippet that you provided. In that case, Imoen correctly hid in shadows, and once approached the first trap in Irenicus' dungeon, the script correctly detected the trap.

So, can't reproduce. Let me know if you find additional info for reproducing.

from bg2-tweaks-and-tricks.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.