Quantcast
Channel: Modding — Beamdog Forums
Viewing all articles
Browse latest Browse all 11774

Scripting State?

$
0
0
I'm currently looking at the Whirlwind spell resource (SPCL900).
I see there's an effect that modify the scripting state. What are scripting state and what are they used for?
For this file, opcode #282 is used:
#282 (0x282) Script: Scripting State Modifier [282]
Parameter #1: Value
Parameter #2: Scripting State
Description:
Modifies Scripting state to the given value. Scripting State range from 0 to 35. The scripting state can be checked via scripts (see stats.ids), subtract 156 from the stat value to get the scripting state.
This effect does not have proper bounds checking, and can therefore be used in unintended ways. For example scripting state 13 equals with the NO_CIRCLE attribute (stat=169), and scripting state 1139 ties to PICKPOCKET (stat=29).
What was the base value and what do we obtain once we activate Whirlwind?
Value = 4; Scripting State = 3 in the file.

Viewing all articles
Browse latest Browse all 11774

Latest Images

Trending Articles



Latest Images