Avenger Posted August 20, 2007 Share Posted August 20, 2007 I didn't found, but i mentioned in a thread the location of the intoxication field. There is also a field: fatigue, which is right before the intox and luck fields. Actually, i think there is also a turn undead level field, but i'm not sure in that. Here is the relevant part of DLTCEP's struct.h: char resmdam; unsigned char unknown61[4]; unsigned char fatigue; unsigned char intox; char luck; unsigned char turnundead; unsigned char unknown69[33]; unsigned char totlevel; Link to comment
Avenger Posted August 20, 2007 Author Share Posted August 20, 2007 There is a little mixup in the v2.2 creature structure (on iesdp): 0x0294 8 (resref) Creature script - Movement Script 0x029c 4 (byte) Unknown 0x02a0 42 (byte) Unknown 0x02ca 32 (char array) Unknown 0x02a0 5x2 (word) 'Internals' - as used by SetInternal 0x02aa 32 (byte) Unknown 0x02ca 32 (char array) 2nd Script Name 0x02ea 2 (word) Unknown You forgot to remove the unknowns. Link to comment
Avenger Posted August 20, 2007 Author Share Posted August 20, 2007 In all inventory item entries (for example: CRE V2.2 Items Table): 0x0000 8 (resref) Resource name of the ITM file holding the particular item 0x0008 2 (word) Unknown 0x000a 2 (word) Usage1 - often the count of the item (stack), or the number of uses remaining. 0x000c 2 (word) Usage2 0x000e 2 (word) Usage3 The unknown field is an item expiration number. (IIRC hours). This is used so summoned items vanish in time, even when passed along, dropped, put in bags, etc. Link to comment
FredSRichardson Posted August 21, 2007 Share Posted August 21, 2007 Oh snap! Turn Undead level? That would be really good to know about! Nice work btw! I'll have to check and see if NI has these. Link to comment
FredSRichardson Posted August 21, 2007 Share Posted August 21, 2007 The intoxication field is 0x066 and that's set to 10 for a few CRE's in IWD2 ("Black Geoffrey", "Blanchard Pike", "Kickshaw") The 5 bytes from 0x061 and the 34 bytes after 0x068 are all zero'd out for all the CRE's in IWD2. So these are maybe run-time parameters? Link to comment
Avenger Posted August 21, 2007 Author Share Posted August 21, 2007 The turn undead level field is what the turn undead level stat reports (when using checkstat). At least iwd2 has setstat action, that's how i found it. I think fatigue would be usable from character editors. But well, which NPC would have fatigue meaningfully. Even intoxication is invisible. Link to comment
FredSRichardson Posted August 21, 2007 Share Posted August 21, 2007 I did a quick test and let my Barbarian go into rage and then fatigue. I didn't see any change in the fatigue field. All I saw was the effects added on (penalty to strength and dexterity). Link to comment
Avenger Posted August 21, 2007 Author Share Posted August 21, 2007 What about editing your saved game? [edit] I just did that, i set the fatigue field to 40, and when loaded the game, the PC had the fatigue portrait icon. Link to comment
FredSRichardson Posted August 21, 2007 Share Posted August 21, 2007 Oh cool, okay. I bet Rage implements fatigue differently. I'll try letting my party hang around for a long time and see if that field is used to mark fatigue. It seems like it should be. What does the turn-undead field mean? Is this the effective level of turning for the PC, or the level of turning difficulty for the CRE? I was looking into this because some monsters have a "turn resistance" in the 3E rules. I don't think this was implemented in IWD2 (I think they may have just pumped up the undead's level). Link to comment
Avenger Posted August 21, 2007 Author Share Posted August 21, 2007 The turn undead level stuff is most likely a fluke. I tried to edit the field, but it didn't have any effect, other than triggering CheckStat(TUNDUNUNDEADLEVEL) Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.