View Full Version : Minor problem with Enthusiasm, hopefully easy to fix
27th Sep 2010, 4:27 AM
I have an almost-complete with a couple of custom BHAVs that allow for skilling. I'm trying to add Enthusiasm gain to the object, but I copied the code from a different type of object and I think I might not have entered the correct values in the operands. Unfortunately my understanding of BHAVs is limited, I'm not sure which values to enter to make it work. Any assistancce would be greatly appreciated.
28th Sep 2010, 10:25 PM
I believe it might be because Param 0x0001 (the 2nd parameter - remebering that Param 0x0000 is the first parameter) you have passed into this Global function "Enthusiasm - Start" must have a value > 30 (or hexadecimal 0x1E). Your second parameter has the value 0x0001 which is much less than 30. I have only used "Enthusiasm - Start" once myself and I also copied the code from somewhere else. My 2nd parameter had a value of hex 0x96 which is big enough not to get caught by the test inside the Global thus[prim 0x0002] Expression(Param 0x0001 <= Literal 0x001E)which if true goes to a breakpoint and ends.
Try a bigger number in the 2nd parameter.
29th Sep 2010, 6:03 AM
I think I undrstood correctly and I've given it a whirl. I tried changing the second parameter to:
Const 0x2000:0x1F- doesn't work [not found]
Const 0x10000:0x1F- doesn't work [not found]
Const 0x0000:0x1F- doesn't work [not found]
Literal 0x0096- doesn't work
29th Sep 2010, 10:37 AM
Certainly refering to BCONs that don't exist won't work, but putting in Literal 0x0096 should have bypassed that other problem. I can take another look next time I'm on my Sims computer (at work at the mo).
29th Sep 2010, 6:35 PM
Wait, I figured it out. It does work with a value of Literal 0x0096. I must have messed something else up, but I have it working now. Thanks, Mog.
vBulletin v3.0.14, Copyright ©2000-2013, Jelsoft Enterprises Ltd.