The Black Wyrm Lair Forums
The Black Wyrm's Lair Terms of Use Help Search Members Calendar

Welcome Guest ( Log In | Register )

> How to activate "hidden" BG1 TotSC script actions, Research by drake127 & Baronius
Baronius
post Jun 5 2005, 06:21 PM
Post #1


Master of energies
Group Icon

Council Member
Posts: 3317
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.
Go to the top of the page
 
Quote Post

Posts in this topic
Baronius   How to activate "hidden" BG1 TotSC script actions   Jun 5 2005, 06:21 PM
drake127   NULL   Jun 5 2005, 07:13 PM
Baronius   NULL   Jun 5 2005, 07:22 PM
drake127   NULL   Jun 5 2005, 07:46 PM
igi   NULL   Jun 5 2005, 08:02 PM
Baronius   NULL   Jun 5 2005, 09:26 PM
Baronius   NULL   Jul 16 2005, 07:23 PM
Baronius   NULL   Jul 16 2005, 07:25 PM
Avenger_teambg   NULL   Jul 17 2005, 12:40 PM
Baronius   NULL   Jul 17 2005, 04:16 PM
Avenger_teambg   NULL   Jul 23 2005, 06:55 PM
Baronius   NULL   Jul 23 2005, 10:28 PM
Avenger_teambg   NULL   Aug 8 2005, 05:27 PM
jastey   I missed this when preparing my BG1 coding tutoria...   Sep 14 2008, 09:26 AM
Baronius   I would be glad if you included them in your codin...   Sep 14 2008, 02:43 PM
jastey   Thank you very much! I will let you know when ...   Sep 14 2008, 05:33 PM


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:



- Lo-Fi Version Time is now: 23rd September 2024 - 09:18 AM