Ulb Posted August 9, 2017 Share Posted August 9, 2017 Heya, I have a bard song that has a chance to do some stuff and disable the bard song ability for a while. The problem is when that effect goes off but the character doesn't get any new action input it will just continue singing the bard song even though the button is disabled. I tried using opcode 356 (which NI calls “Stop all actions”) but that just crashes my game (which, if you think about it, is a good way to stop all actions..) I also tried using stun/cure stun effects but if I chain them up like that they won't break the bard song either. The only solution I can think of right now is to spawn a helper creature and use an actionoverride on the caster but that seems like a pretty shitty solution. I' be grateful for any ideas. On a somewhat related note: Is there a newer version of IESDP floating around somewhere? The g3 version is outdated and the newer version that was here: http://iesdp.baldursgateforge.net/opcodes/bgee.htm seems to be gone. Link to comment
lynx Posted August 9, 2017 Share Posted August 9, 2017 ClearActions(O:Object*) scripting action should also take care of modals. Latest IESDP is always here: https://gibberlings3.github.io/iesdp/ Link to comment
Ulb Posted August 9, 2017 Author Share Posted August 9, 2017 ClearActions(O:Object*) scripting action should also take care of modals. Latest IESDP is always here: https://gibberlings3.github.io/iesdp/ Thanks lynx, ClearActions(O:Object*) would also involve a helper creature though? I think I just found a way to do it within the spell effects by having him cast an empty dummy spell via opcode 146, that seems to work. I've also noted another possibly bigger issue though: Combat scripts like aTweaks' simple scripts (I love those) will ignore the disabled bard song button and merrily continue to activate the song.. So is there a way to prevent this outside of re-writing/not using those scripts? Link to comment
subtledoctor Posted August 9, 2017 Share Posted August 9, 2017 Oppose 146 to stop the song. (It can't be totally instantaneous, you need the casting animation.) Then disable the button for a while. And finally, change the bard song to something with no effect so scripted singing won't cheat. Then at the end of the duration, switch the song back to the original and re-enable the button. Link to comment
Ulb Posted August 9, 2017 Author Share Posted August 9, 2017 Aye, I'm using the cast spell trick, that works quite nicely. As for the bard song change, the whole thing was more about flavor anyway (since the effect turns the bard into a brutish monster I didn't want it to continue to sing) and since changing the bard song would still show him "singing" I'll just give him protection form the bardsong for the duration and be done with it. Thx for the help guys! Link to comment
subtledoctor Posted August 9, 2017 Share Posted August 9, 2017 You could actually, theoretically, do a temporary class change. I'm toying with this idea for druid shapechanges... but I'm not sure how viable that is for something that might need to happen in combat. I think it requires scripts, not just spells. Link to comment
Ulb Posted August 9, 2017 Author Share Posted August 9, 2017 It's not really an option for my situation since it's such a minor cometic thing but it sounds interesting.There are probably a lot of things that can go wrong though. Like, what happens if you get enough xp to levle up as the other class (druids are notorious for there level gap). Link to comment
Avenger Posted August 12, 2017 Share Posted August 12, 2017 Yeah, opcode 356 is more like a global timestop (if it even works in the given engine). Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.