Jump to content
Sign in to follow this  
Jarno Mikkola

BG2: Opcode #x ... This effect sets stat #y to ... questions.

Recommended Posts

Example: opcode #66:

 

#66 (0x66) Graphics: Transparency Fade [66]
Parameter #1: Fade Amount

...

This effect sets stat #60 (TRANSLUCENT) to param #1.

There's more, opcodes 71, 109, 135, 153-158, 165, 175 and so on...

Where are these "stat"s located ? And is there a list of all of them ? And yes, I understand that not all of them might be effected, so this is just out of curiosity.

Share this post


Link to post

These are stored in the CRE structures, so consult IESDP. There are several versions of the format, so make sure to look at the appropriate one (iwd2 in this case). Of course, not all stats are saved.

 

You can see a list in gemrb, but I'm not sure it'd really be useful.

Share this post


Link to post

176 LOCKPICKINGCP
177 STEALTHCP
178 TRAPSCP
179 PICKPOCKETCP
180 HIDEINSHADOWSCP
181 DETECTILLUSIONSCP
182 SETTRAPSCP

 

While we're on STATS, what does the "CP" indicate?

Share this post


Link to post

probably copy, since the main ones come early. I see that for bg2, stats.ids is pretty complete — check that out.

Share this post


Link to post

These are stored in the CRE structures, so consult IESDP. There are several versions of the format, so make sure to look at the appropriate one (iwd2 in this case).

Erhm, I am talking about the BG2's Effect Opcodes... so the bold texts, and thus this whole topics title text are left over from IWD2 or did I miss something ?

Share this post


Link to post

CRE file formats and the variables they store.

Share this post


Link to post

CRE file formats and the variables they store.

So the:

This effect sets stat #60

is what value in the .cre file ? Meaning offset here.

Share this post


Link to post

Not all stats got a saved base value. For example:

 

55 TURNUNDEADLEVEL
56 BACKSTABDAMAGEMULTIPLIER
57 LAYONHANDSAMOUNT
58 HELD
59 POLYMORPHED
60 TRANSLUCENT
61 IDENTIFYMODE
62 ENTANGLE
63 SANCTUARY
64 MINORGLOBE
65 SHIELDGLOBE
66 GREASE
67 WEB
DLTCEP mentions the stat, because the CheckStat trigger can detect these (no need of wasting a detectable spell hack on them).
Edited by Avenger

Share this post


Link to post
Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...