K4thos Posted July 30, 2017 Author Share Posted July 30, 2017 Afaik, DLG response flags bit 9 (Execute immediate) allows you to execute non-blocking script actions immediately. that's interesting. It's undocumented on IESDP yet but NI shows additional 2 flags: 9 - Execute immediate 10 - Clear actions so it indeed seems to be possible to implement with weidu after dialogue compiling. Nice find, thanks Link to comment
subtledoctor Posted July 30, 2017 Share Posted July 30, 2017 Btw I've made up a little mod template for using splprot.2da to dynamically apply bonuses based on stat values. E.g. I give an extra melee thac0 bonus for high DEX, and it will respond to drinking a Potion of Agility or Mind Focusing. You can use this for the six traditional stats, you could add extra on-hit effects for weapon proficiencies, you could add spellcasting bonuses for high Lore, you could give immunity to fear for being highly intoxicated... the sky is the limit, it can react to anything in stats.ids or splstate.ids - in other words anything that can be used with splprot.2da. (Notably, it does *not* work to give extra spell slots - this uses the trick of "spell that lasts 7 seconds, but cancels itself and is reapplied every 6 seconds" to simulate a continuous effect. The cancellation invalidates memorized spells in the bonus slot if used this way.) It only uses 4 base files, and some Weidu to clone and edit them. Replace "d5" in the 4 filenames with your prefix, and do a global find/replace to do that inside the .tp2 file as well. Then just expand the Weidu code to add as many bonuses for as many stat values as you want. Instructions for exactly how to do that are in the .tp2. A pretty thorough example of this in action can be found here (lines 242 to 982): https://github.com/UnearthedArcana/Scales_of_Balance/blob/master/scales_of_balance/components/200_SBO_revised_stats.tpa I'm using this in my current IWDEE game and it's great. I thoughtlessly put armor and a helmet that both cause Charisma penalties on my dwarf tank, and his Charisma dropped to 6... suddenly he had saving throw penalties and a -2 Luck penalty! Suddenly those magic items don't look so great... stat_effects.zip Link to comment
K4thos Posted July 30, 2017 Author Share Posted July 30, 2017 nice code, subtledoctor. splprot.2da indeed sounds like a great addition to the engine. Thanks for sharing. Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.