Okay, now I'm trying to buff the sneaking skill by applying statuses like haste to a character whenever they sneak if they have a sneaking level of higher than X. Problem is, I can get the haste to trigger on sneaking, but can't seem to get that to depend on any stats at all. If I use "IsEqual," the buff always triggers no matter what number I have in the external int or put in the function. If I use IsGreaterThen, then the buff never triggers. (As a side note, they seriously called their function "IsGreaterTHEN?") It doesn't seem to matter what stat I use, or if I use EXTERN INTs (also tried as FLOATs) as the thresholds or just put the threshold numbers in the function. This is in your Player_StateManager script until I can figure out how to use my own scripts. Any insight?

The following code will always apply haste and never blessed, for example. Another thing I noticed is that it doesn't work at all (or my Leader Cleanse script) on Bairdotr, who I assume doesn't have the Player.charscript so doesn't get the Player_StateManager script. Weirdly, Wolgraff is affected, and not sure about the other companions. Something to keep in mind.

Code
EVENT SneakBuffs
VARS

	INT: _SneakingLevel
        EXTERN INT: %SneakHasteThreshold3 = 3
        EXTERN INT: %SneakHasteThreshold4 = 4
        EXTERN INT: %SneakHasteThreshold5 = 5
        EXTERN INT: %SneakHasteThreshold6 = 6
	
ON
	OnCharacterStatus(__Me,SNEAKING) 
ACTIONS
	IF "c1&c2"
		CharacterGetStat(_SneakingLevel,__Me,Sneaking)
		IsGreaterThen(_SneakingLevel,1)
	THEN
		CharacterApplyStatus(__Me, BLESSED, 2, 1)
	ENDIF
	IF "c1&(c2|c3)"
		CharacterGetStat(_SneakingLevel,__Me,Sneaking)
		IsEqual(_SneakingLevel,%SneakHasteThreshold5)
		IsEqual(_SneakingLevel,%SneakHasteThreshold6)
	THEN
		CharacterApplyStatus(__Me, HASTED, 1, 1)

Last edited by Baardvark; 08/12/15 06:35 PM.