Jump to content


Photo

[WIP] Expanded STATS.IDS


  • Please log in to reply
58 replies to this topic

#21 DavidWallace

DavidWallace
  • Validating
  • 337 posts

Posted 29 January 2011 - 04:12 PM

So is this aiming at being able to replace the various ways in which Detectable Spells/Stats is currently implemented?

For compatibility's sake, as well as less headache for new users, old DS obviously shouldn't go anywhere.


This.

(Obviously that doesn't preclude people deciding to do clever things in their own mods that go beyond DS. (But I have to say, I've never found the constraints of DS terribly restrictive, so I don't anticipate taking advantage of it personally.)

#22 Miloch

Miloch

    Barbarian

  • Modder
  • 6579 posts

Posted 29 January 2011 - 07:35 PM

For compatibility's sake, as well as less headache for new users, old DS obviously shouldn't go anywhere.

This.

What do you mean by 'old DS' - the actual old version used in legacy mods or the DW version from a year or two ago?

For that matter, what do you mean by 'shouldn't go anywhere'? Is there an up-to-date 'final' DS in SCS1/2 or somewhere else, that needn't be revised and is also easily includeable in other mods? I believe erebusant actually updated this in Ascension, but I should probably check it.

Infinity Engine Contributions
Aurora * BG1 NPC * BG1 Fixpack * Haiass * Infinity Animations * Level 1 NPCs * P5Tweaks
PnP Free Action * Thrown Hammers * Unique Containers * BG:EE * BGII:EE * IWD:EE
================================================================
Player & Modder Resources
BAM Batcher * Creature Lister * Creature Checker * Creature Fixer * Tutu/BGT Area Map & List * Tutu Mod List
================================================================
"Infinity turns out to be the opposite of what people say it is. It is not 'that which has nothing beyond itself' that is infinite, but 'that which always has something beyond itself'." -Aristotle


#23 Galactygon

Galactygon

    Modding since 2002

  • Member
  • 938 posts

Posted 30 January 2011 - 07:44 AM

It is far more efficient to implement a completely new trigger. This might suck for compatibility reasons (forces people to use TobEx) but I think it is the most optimal way to implement such a trigger.

A casting timer already exists in the CCreatureObject object that counts upwards until it reaches a calculation of casting time and mental speed. Again, the best way to sort this out would be a completely new trigger due to the above limitations.


Sounds fine. Do you have the same thing in mind for stat TIMESTOP which says how many seconds are left, or will this work as a stat?

-Galactygon
Posted Image

#24 Ascension64

Ascension64
  • Modder
  • 5983 posts

Posted 30 January 2011 - 10:33 PM

Probably a global trigger here, since the time remaining is set in the global CInfGame object. It wouldn't make sense to put this in a creature, because it is not a creature-specific thing (except for those immune and the caster of time stop).

--------------
Retired Modder
Note: I do not respond to profile comments/personal messages in regards to troubleshooting my modifications. Please post on the public forums instead.

Baldur's Gate Trilogy-WeiDU and Mods
Throne of Bhaal Extender (TobEx)

Contributions: (NWN2) A Deathstalker (voice acting) - (IWD2) IWD2 NPC Project (soundset editing) - (Misc) SHS PC Soundsets (voice acting)
Legacy: (BG/Tutu/BGT) Beregost Crash Fixer 1.9 (18 Jul 10) - (BG2) Enable conversations with charmed/dominated creatures (18 Jul 10) - (BG2) Experience Corrections (18 Jul 10) - (Misc) Platform Conversion Utility RC2 (13 Feb 10)


#25 DavidWallace

DavidWallace
  • Validating
  • 337 posts

Posted 31 January 2011 - 02:31 AM


For compatibility's sake, as well as less headache for new users, old DS obviously shouldn't go anywhere.

This.

What do you mean by 'old DS' - the actual old version used in legacy mods or the DW version from a year or two ago?

For that matter, what do you mean by 'shouldn't go anywhere'? Is there an up-to-date 'final' DS in SCS1/2 or somewhere else, that needn't be revised and is also easily includeable in other mods? I believe erebusant actually updated this in Ascension, but I should probably check it.


The version of DS in SCS(II) is (hopefully) very stable and easily included in other mods (I'm pretty sure it's in Rogue Rebalancing, in particular). Please feel free to lift it into (e.g.) a revised Ascension - though, yes, I think Erebusant already did just that.

#26 Ascension64

Ascension64
  • Modder
  • 5983 posts

Posted 08 February 2011 - 02:11 AM

Add stat 300.

300 WEIGHTALLOWANCEMOD - custom stat that modiifies by sum the amount a character is allowed to carry (total weight allowance = StrMod value + StrModEx value + WeightAllowanceMod)

Set this stat using the Set Stat opcode 0x13E (318).

So you could now theoretically make items that can increase poundage, or 'burden' spells that can decrease poundage.

Edited by Ascension64, 08 February 2011 - 02:16 AM.

--------------
Retired Modder
Note: I do not respond to profile comments/personal messages in regards to troubleshooting my modifications. Please post on the public forums instead.

Baldur's Gate Trilogy-WeiDU and Mods
Throne of Bhaal Extender (TobEx)

Contributions: (NWN2) A Deathstalker (voice acting) - (IWD2) IWD2 NPC Project (soundset editing) - (Misc) SHS PC Soundsets (voice acting)
Legacy: (BG/Tutu/BGT) Beregost Crash Fixer 1.9 (18 Jul 10) - (BG2) Enable conversations with charmed/dominated creatures (18 Jul 10) - (BG2) Experience Corrections (18 Jul 10) - (Misc) Platform Conversion Utility RC2 (13 Feb 10)


#27 yarpen

yarpen

    Drunken Superhero

  • Member
  • 257 posts

Posted 08 February 2011 - 04:16 PM

Thanks! :)

#28 Galactygon

Galactygon

    Modding since 2002

  • Member
  • 938 posts

Posted 08 February 2011 - 11:24 PM

Yep, externalizing this is a good thing. :)

-Galactygon
Posted Image

#29 Ascension64

Ascension64
  • Modder
  • 5983 posts

Posted 09 February 2011 - 04:15 AM

Do note that I haven't put weight allowance itself in a stat, because if I did I would also have to modify every strength (ex) modifier opcode to refresh such a stat.

--------------
Retired Modder
Note: I do not respond to profile comments/personal messages in regards to troubleshooting my modifications. Please post on the public forums instead.

Baldur's Gate Trilogy-WeiDU and Mods
Throne of Bhaal Extender (TobEx)

Contributions: (NWN2) A Deathstalker (voice acting) - (IWD2) IWD2 NPC Project (soundset editing) - (Misc) SHS PC Soundsets (voice acting)
Legacy: (BG/Tutu/BGT) Beregost Crash Fixer 1.9 (18 Jul 10) - (BG2) Enable conversations with charmed/dominated creatures (18 Jul 10) - (BG2) Experience Corrections (18 Jul 10) - (Misc) Platform Conversion Utility RC2 (13 Feb 10)


#30 Ascension64

Ascension64
  • Modder
  • 5983 posts

Posted 12 February 2011 - 03:49 AM

Can I ask modders to hold off on using any of the new stats for the moment. There may be an opcode clash with GemRB, meaning that the stat numbers may change.

Stats 301+ can still be custom for now (I hope).

If you have already starting including new stats in your mod, can you please indicate so here?

--------------
Retired Modder
Note: I do not respond to profile comments/personal messages in regards to troubleshooting my modifications. Please post on the public forums instead.

Baldur's Gate Trilogy-WeiDU and Mods
Throne of Bhaal Extender (TobEx)

Contributions: (NWN2) A Deathstalker (voice acting) - (IWD2) IWD2 NPC Project (soundset editing) - (Misc) SHS PC Soundsets (voice acting)
Legacy: (BG/Tutu/BGT) Beregost Crash Fixer 1.9 (18 Jul 10) - (BG2) Enable conversations with charmed/dominated creatures (18 Jul 10) - (BG2) Experience Corrections (18 Jul 10) - (Misc) Platform Conversion Utility RC2 (13 Feb 10)


#31 Ascension64

Ascension64
  • Modder
  • 5983 posts

Posted 18 February 2011 - 05:11 AM

Slight change here for GemRB compatibility.

Stats 202-208 are moving to 301-307 (these are the *LEVEL stats)
Stat 300 is moving to 400. (this is WEIGHTALLOWANCEMOD)
Stats 400+ are user-configurable. (WEIGHTALLOWANCEMOD and 401+)

I think this will stay. This won't affect uncompiled scripts, but will invalidate compiled scripts when updating from TobEx beta 0018 to beta 0019.

--------------
Retired Modder
Note: I do not respond to profile comments/personal messages in regards to troubleshooting my modifications. Please post on the public forums instead.

Baldur's Gate Trilogy-WeiDU and Mods
Throne of Bhaal Extender (TobEx)

Contributions: (NWN2) A Deathstalker (voice acting) - (IWD2) IWD2 NPC Project (soundset editing) - (Misc) SHS PC Soundsets (voice acting)
Legacy: (BG/Tutu/BGT) Beregost Crash Fixer 1.9 (18 Jul 10) - (BG2) Enable conversations with charmed/dominated creatures (18 Jul 10) - (BG2) Experience Corrections (18 Jul 10) - (Misc) Platform Conversion Utility RC2 (13 Feb 10)


#32 Miloch

Miloch

    Barbarian

  • Modder
  • 6579 posts

Posted 25 February 2011 - 12:07 PM

Here's a list off the top of my head:
FIGHTERLEVEL, MAGELEVEL, CLERICLEVEL, etc. for each class (useful for multi/dual classes)

I need something like this, or really a means of checking bits 3 through 8 of CRE file flags (dual-classed from fighter, mage, cleric, thief, druid, ranger). It could also be an expanded trigger. Oddly, there are already such triggers for bits 8 and 9 - FallenPaladin() and FallenRanger() - but not for WasFighter() etc.

Ultimately, the goal is to have the XP-matching component of Level 1 NPCs work a little more sensibly for dualed characters, and calculate the actual XP by looking at the inactive class, inactive level, XP for that combo and adding it to the current XP. So really I'm looking for some sort of ActualXP stat or trigger.

Maybe there's already something that could make this work - I haven't really had time to keep up with the multitude of TobEx changes.

Infinity Engine Contributions
Aurora * BG1 NPC * BG1 Fixpack * Haiass * Infinity Animations * Level 1 NPCs * P5Tweaks
PnP Free Action * Thrown Hammers * Unique Containers * BG:EE * BGII:EE * IWD:EE
================================================================
Player & Modder Resources
BAM Batcher * Creature Lister * Creature Checker * Creature Fixer * Tutu/BGT Area Map & List * Tutu Mod List
================================================================
"Infinity turns out to be the opposite of what people say it is. It is not 'that which has nothing beyond itself' that is infinite, but 'that which always has something beyond itself'." -Aristotle


#33 Ascension64

Ascension64
  • Modder
  • 5983 posts

Posted 12 March 2011 - 12:51 AM

Request

An effect to grant a percentage increase to all damage dealt of a selected type would be nice. Ex: Aqua Mortis and the like from IWD2.


Added the following stats that can be set by Set Stat opcode [318]. These are percentage modifiers, so they are interpreted as +x%.

387 ACIDDAMAGEBONUS - percentage modifier to acid damage from item/spell ability effects
388 COLDDAMAGEBONUS - percentage modifier to cold damage from item/spell ability effects
389 CRUSHINGDAMAGEBONUS - percentage modifier to crushing damage from normal damage and item/spell ability effects
390 ELECTRICITYDAMAGEBONUS - percentage modifier to electricity damage from item/spell ability effects
391 FIREDAMAGEBONUS - percentage modifier to fire damage from item/spell ability effects
392 PIERCINGDAMAGEBONUS - percentage modifier to piercing damage from normal damage and item/spell ability effects
393 POISONDAMAGEBONUS - percentage modifier to poison damage from item/spell ability effects
394 MAGICDAMAGEBONUS - percentage modifier to magic damage from item/spell ability effects
395 MISSILEDAMAGEBONUS - percentage modifier to missile damage from normal damage and item/spell ability effects
396 SLASHINGDAMAGEBONUS - percentage modifier to slashing damage from normal damage and item/spell ability effects
397 MAGICFIREDAMAGEBONUS - percentage modifier to magic fire damage from item/spell ability effects
398 MAGICCOLDDAMAGEBONUS - percentage modifier to magic colddamage from item/spell ability effects
399 STUNNINGDAMAGEBONUS - percentage modifier to stunning damage from normal damage and item/spell ability effects


--------------
Retired Modder
Note: I do not respond to profile comments/personal messages in regards to troubleshooting my modifications. Please post on the public forums instead.

Baldur's Gate Trilogy-WeiDU and Mods
Throne of Bhaal Extender (TobEx)

Contributions: (NWN2) A Deathstalker (voice acting) - (IWD2) IWD2 NPC Project (soundset editing) - (Misc) SHS PC Soundsets (voice acting)
Legacy: (BG/Tutu/BGT) Beregost Crash Fixer 1.9 (18 Jul 10) - (BG2) Enable conversations with charmed/dominated creatures (18 Jul 10) - (BG2) Experience Corrections (18 Jul 10) - (Misc) Platform Conversion Utility RC2 (13 Feb 10)


#34 Galactygon

Galactygon

    Modding since 2002

  • Member
  • 938 posts

Posted 12 March 2011 - 01:36 AM

I really like this; will be using it.

-Galactygon
Posted Image

#35 Demivrgvs

Demivrgvs
  • Member
  • 143 posts

Posted 12 March 2011 - 03:23 AM

Request

An effect to grant a percentage increase to all damage dealt of a selected type would be nice. Ex: Aqua Mortis and the like from IWD2.


Added the following stats that can be set by Set Stat opcode [318]. These are percentage modifiers, so they are interpreted as +x%.

387 ACIDDAMAGEBONUS - percentage modifier to acid damage from item/spell ability effects
388 COLDDAMAGEBONUS - percentage modifier to cold damage from item/spell ability effects
389 CRUSHINGDAMAGEBONUS - percentage modifier to crushing damage from normal damage and item/spell ability effects
390 ELECTRICITYDAMAGEBONUS - percentage modifier to electricity damage from item/spell ability effects
391 FIREDAMAGEBONUS - percentage modifier to fire damage from item/spell ability effects
392 PIERCINGDAMAGEBONUS - percentage modifier to piercing damage from normal damage and item/spell ability effects
393 POISONDAMAGEBONUS - percentage modifier to poison damage from item/spell ability effects
394 MAGICDAMAGEBONUS - percentage modifier to magic damage from item/spell ability effects

:woot: Uber cool, I'll be using it too! :Bow:

#36 Ascension64

Ascension64
  • Modder
  • 5983 posts

Posted 12 March 2011 - 06:58 PM

AMOUNTOFDAMAGESUFFERED (maxhp - currenthp) (doesn't go over 255) IIRC DamageTaken() only works for Myself

You can now to NextTriggerObject() and then DamageTaken(), but I did discuss the limitations of DamageTaken() earlier in that the last amount of damage sticks. My question here is why you need an absolute value for damage? Wouldn't it be more consistent to use HPPercentLT()?

MOVEMENTRATE (default is 9, set by opcodes 126, 176, haste, and slow opcodes)

Now the movement rate is not affected by haste and slow, but is affected by 126, 176. I did throw in MovementRate[LT/GT]() trigger, but given that haste and slow does nothing to it, is it still useful?

More to come.

--------------
Retired Modder
Note: I do not respond to profile comments/personal messages in regards to troubleshooting my modifications. Please post on the public forums instead.

Baldur's Gate Trilogy-WeiDU and Mods
Throne of Bhaal Extender (TobEx)

Contributions: (NWN2) A Deathstalker (voice acting) - (IWD2) IWD2 NPC Project (soundset editing) - (Misc) SHS PC Soundsets (voice acting)
Legacy: (BG/Tutu/BGT) Beregost Crash Fixer 1.9 (18 Jul 10) - (BG2) Enable conversations with charmed/dominated creatures (18 Jul 10) - (BG2) Experience Corrections (18 Jul 10) - (Misc) Platform Conversion Utility RC2 (13 Feb 10)


#37 Ascension64

Ascension64
  • Modder
  • 5983 posts

Posted 12 March 2011 - 08:43 PM

Opcodes 129,130,131,132,137 -> These have states, but stats would suit them more, with whatever amount is set by those opcodes
Opcode 145: SPELLDISABLEMAGE, SPELLDISABLEPRIEST, SPELLDISABLEINNATE (set to 0 or 1)


Now we have:

323 AID - set to param1 of Aid effect
324 BLESS - set to param1 of Bless effect
325 CHANT - set to param1 of Chant effect
326 DRAWUPONHOLYMIGHT - set to param1 of Draw Upon Holy Might effect
327 CHANTBAD - set to param1 of Chant Bad effect
328 DISABLESPELLTYPEWIZARD - set to 1 on Disable Spelltype effect
329 DISABLESPELLTYPEPRIEST - set to 1 on Disable Spelltype effect
330 DISABLESPELLTYPEINNATE - set to 1 on Disable Spelltype effect


Opcodes 119, 159: MIRRORIMAGENUMBER (how many images there are left)

This is a new trigger instead.

--------------
Retired Modder
Note: I do not respond to profile comments/personal messages in regards to troubleshooting my modifications. Please post on the public forums instead.

Baldur's Gate Trilogy-WeiDU and Mods
Throne of Bhaal Extender (TobEx)

Contributions: (NWN2) A Deathstalker (voice acting) - (IWD2) IWD2 NPC Project (soundset editing) - (Misc) SHS PC Soundsets (voice acting)
Legacy: (BG/Tutu/BGT) Beregost Crash Fixer 1.9 (18 Jul 10) - (BG2) Enable conversations with charmed/dominated creatures (18 Jul 10) - (BG2) Experience Corrections (18 Jul 10) - (Misc) Platform Conversion Utility RC2 (13 Feb 10)


#38 Ascension64

Ascension64
  • Modder
  • 5983 posts

Posted 12 March 2011 - 09:51 PM

opcode 200 (we need stats for each power level, up to like, 10) : BOUNCEPOWERLEVEL0,

BOUNCEPOWERLEVEL1,...,BOUNCEPOWERLEVEL10 (set to whatever number of spell levels are left)
Opcode 201: same as 200 except DEFLECTPOWERLEVELx

Rather than using up 20 stats, I've just made triggers instead. See http://www.shsforums...post__p__510530

--------------
Retired Modder
Note: I do not respond to profile comments/personal messages in regards to troubleshooting my modifications. Please post on the public forums instead.

Baldur's Gate Trilogy-WeiDU and Mods
Throne of Bhaal Extender (TobEx)

Contributions: (NWN2) A Deathstalker (voice acting) - (IWD2) IWD2 NPC Project (soundset editing) - (Misc) SHS PC Soundsets (voice acting)
Legacy: (BG/Tutu/BGT) Beregost Crash Fixer 1.9 (18 Jul 10) - (BG2) Enable conversations with charmed/dominated creatures (18 Jul 10) - (BG2) Experience Corrections (18 Jul 10) - (Misc) Platform Conversion Utility RC2 (13 Feb 10)


#39 Ascension64

Ascension64
  • Modder
  • 5983 posts

Posted 12 March 2011 - 10:35 PM

331 WINGBUFFET - set to param2 of Wing Buffet effect

--------------
Retired Modder
Note: I do not respond to profile comments/personal messages in regards to troubleshooting my modifications. Please post on the public forums instead.

Baldur's Gate Trilogy-WeiDU and Mods
Throne of Bhaal Extender (TobEx)

Contributions: (NWN2) A Deathstalker (voice acting) - (IWD2) IWD2 NPC Project (soundset editing) - (Misc) SHS PC Soundsets (voice acting)
Legacy: (BG/Tutu/BGT) Beregost Crash Fixer 1.9 (18 Jul 10) - (BG2) Enable conversations with charmed/dominated creatures (18 Jul 10) - (BG2) Experience Corrections (18 Jul 10) - (Misc) Platform Conversion Utility RC2 (13 Feb 10)


#40 Ascension64

Ascension64
  • Modder
  • 5983 posts

Posted 13 March 2011 - 12:50 AM

Here's a list off the top of my head:
FIGHTERLEVEL, MAGELEVEL, CLERICLEVEL, etc. for each class (useful for multi/dual classes)

I need something like this, or really a means of checking bits 3 through 8 of CRE file flags (dual-classed from fighter, mage, cleric, thief, druid, ranger). It could also be an expanded trigger. Oddly, there are already such triggers for bits 8 and 9 - FallenPaladin() and FallenRanger() - but not for WasFighter() etc.

Ultimately, the goal is to have the XP-matching component of Level 1 NPCs work a little more sensibly for dualed characters, and calculate the actual XP by looking at the inactive class, inactive level, XP for that combo and adding it to the current XP. So really I'm looking for some sort of ActualXP stat or trigger.

Maybe there's already something that could make this work - I haven't really had time to keep up with the multitude of TobEx changes.

See http://www.shsforums...41

--------------
Retired Modder
Note: I do not respond to profile comments/personal messages in regards to troubleshooting my modifications. Please post on the public forums instead.

Baldur's Gate Trilogy-WeiDU and Mods
Throne of Bhaal Extender (TobEx)

Contributions: (NWN2) A Deathstalker (voice acting) - (IWD2) IWD2 NPC Project (soundset editing) - (Misc) SHS PC Soundsets (voice acting)
Legacy: (BG/Tutu/BGT) Beregost Crash Fixer 1.9 (18 Jul 10) - (BG2) Enable conversations with charmed/dominated creatures (18 Jul 10) - (BG2) Experience Corrections (18 Jul 10) - (Misc) Platform Conversion Utility RC2 (13 Feb 10)