Electrocute Me - Remove Random Skill Point
From SimsWiki
Electrocute Me - Remove Random Skill Point | ||
---|---|---|
Instance: | 0x0123 | |
Game Version: | The Sims 2 |
Contents |
Code
### # Group = 0x7FD46CD0, Instance = 0x123 # Title = Electrocute Me - Remove Random Skill Point # # Format = 8009, Params = 1, Locals = 3 # Tree type = 0, Header flag = 0, Tree version = FFFF800A (-32758), Cache flags = 0 0: Temp 0 := random from 0 to < 100 (0x64); true: 1, false: error 1: Temp 0 < Const 0x102(Global Tuning):0x5B(100 (0x64)); true: 2, false: true 2: Skill - Lose Random Skill Point(Param 0); true: true, false: true
Purpose
This is one of many sub functions of the main Electrocute Me global function that helps the game do particular steps in the electrocution process. However, with the availability of Skill - Lose Random Skill Point, if you want to subtract a random skill point, you can simply call that BHAV directly rather than going through this one.
Usage
When you call this BHAV, simply provide the object ID of the Sim that you want to have the skill point removed from. For example, if you want the current Sim affected, feed in these arguements:
03 0B 00 00 00 00 00 00 00 00 00 00 01 00 00 00
Which should yield this from SimPE's BHAV editor:
[global 0x0123] Electrocute Me - Remove Random Skill Point (1 arg: My 0x000B (object id))
For more information on how this works, refer to this page: Using BHAVs With Arguments.
Examples
You can see the use of this in the main Electrocute Me global BHAV.