![]() |
The Black Wyrm's Lair Terms of Use |
![]() ![]() ![]() ![]() |
![]() |
![]()
Post
#1
|
|
![]() Master of energies ![]() Council Member Posts: 3325 Joined: 9-July 04 From: Magyarország ![]() |
drake127 has drawn my attention to the fact that some of the spellcasting script actions (SpellRES, ForceSpellRES etc.) work in BG1:TotSC, and that there are several "hidden" script actions which aren't in action.ids but would work in the game.
He has done a research which proved that many of these script actions work perfecly in BG1 TotSC. Based on his results, I have done additional testing on 8 scripting commands chosen from his list. These were: 31 SpellRES(S:ResRef*,O:Target*) 95 SpellPointRES(S:ResRef*,P:Target*) 113 ForceSpellRES(S:ResRef*,O:Target) 114 ForceSpellPointRES(S:ResRef*,P:Target) 160 ApplySpellRES(S:ResRef*,O:Target) 181 ReallyForceSpellRES(S:ResRef*,O:Target) 191 SpellNoDecRES(S:ResRef*,O:Target*) 192 SpellPointNoDecRES(S:ResRef*,P:Target*) The summary of my experience: After properly added to ACTION.IDS, these actions can be used in scripts which can then be compiled by using WeiDU. When casting your spells with custom filenames (such as BBSW01.SPL), you have to be careful in case of SpellRES and SpellPointRES: they won't work if the filename is more than seven character long (the original SPL filenames of the game are exactly 7 characters long, by the way). So BB00SW01.SPL will not work but BB00S01.SPL or BB01.SPL will (they don't have to follow the SPWIxxx/SPPRxxx/etc. convention). I've encountered only one difference between drake127's and my results: SpellNoDecRES worked properly for me, memorized spells were kept in the caster's memory, they weren't removed. -------------------- Mental harmony dispels the darkness.
|
|
|
![]() |
![]()
Post
#2
|
|
![]() Master of energies ![]() Council Member Posts: 3325 Joined: 9-July 04 From: Magyarország ![]() |
QUOTE SpellNoDecRES worked properly also for me. Problem was SpellPointNoDecRES which behaved like SpellPointRES (removed spell from table of memorizated spells). I see... I will test it again.QUOTE Spell.ids should not be changed. It is point of functions *RES. Action.ids is file to change. I've accidently written Spell.ids in my post, certainly action.ids must be modified and not spell.ids. Thanks a lot for correcting me, it could have led to a misunderstanding. QUOTE I did not test Spell*RES functions with eight-character names but even seven-character names may not work if they are lowercase (bad: spwi215; good: SPWI215) or maybe if they are not same as they are write to character file (because these actions check if caster knows this spell). For me, they were exactly written in the same way in the CRE file as in the script file, but spells with 8-character filenames don't work in case of SpellRES and SpellPointRES (they worked okay in case of the other 6 commands). -------------------- Mental harmony dispels the darkness.
|
|
|
![]() ![]() |
![]() |
Lo-Fi Version | Time is now: 29th August 2025 - 06:27 PM |