if(r.IsOffLimits 7 == 0)
Want to replace that 7 with, to get rid of the magic number, but I can't get OBSE to accept the line.
if(r.IsOffLimits 7 == 0)
scn TestQref spellbegin GameMode set spell to ErikTestSpell1 PrintToConsole "%p" spellend
scn TestQref spellbegin GameMode set spell to ErikTestSpell1 PrintToConsole "%p" spellend
%p - replaced with a pronoun based on the gender of the object parameter passed in a ref variable:%ps - subjective (he, she, it)%pp - possessive (his, her, its)%po - objective (him, her, it)
if(r.IsOffLimits 7 == 0)
if eval (r.IsOffLimits player) == 0
if eval (r.IsOffLimits player) == 0
scriptname aaaDBBAMScriptref bstring_var BookNameref BookScriptlong BookTypeshort BookWeHandleref CrimeTokenshort DefaultModifiedIsDefaultlong DefaultModifier1long DefaultModifier2short DefaultShowSBMessagestring_var DefaultUserSBMessageshort DisabledUseref DoInishort DoOncefloat fQuestDelayTimeref InsertBookNameshort ModKeyDownshort ModifiedIsDefaultlong Modifier1long Modifier2long NoSkillstring_var Pluggyref rref ScriptTokenstring_var SBMessagearray_var SBMessagesshort ShowSBMessagelong Usestring_var UserSBMessagelong Valueshort VersionBegin GameModeif(GetGameLoaded) Let fQuestDelayTime := .001 if eval(!DoOnce) Let Version := 143 Let DoOnce := 1 endif SetDebugMode 1 Let BookType := 21 Let DefaultModifiedIsDefault := 0 Let DefaultModifier1 := 42 ; LShift Let DefaultModifier2 := 54 ; RShift Let DefaultShowSBMessage := 1 Let DefaultUserSBMessage := "No user-defined message" Let DisabledUse := 0 Let DoIni := aaaDBBAMDoIniScript Let InsertBookName := aaaDBBAMInsertBookNameScript Let NoSkill := -1 Let Pluggy := "OBSE_Elys_Pluggy" Let Use := 5 Print "About to check for pluggy" if(IsPluginInstalled $Pluggy) if((GetPluginVersion $Pluggy) >= 131) PrintD "DBBAM: Processing ini" Call DoIni else PrintD "DBBAM: Incorrect version of Pluggy found" endif else PrintD "DBBAM: Pluggy not found" endif Let SBMessages := ar_Construct Array Let SBMessages[0] := "" ; dummy Let SBMessages[1] := "You feel you may learn something from %BOOKNAME%" Let SBMessages[2] := "I feel I may learn something from %BOOKNAME%" Let SBMessages[3] := UserSBMessage if(ShowSBMessage < 0 || ShowSBMessage > 3) Let ShowSBMessage := 1 endif PrintC "DBBAM v1.43: Initialized"endifif(BookScript) ScriptToken.activate player 1 player.removeitemNS aaaDBBAMScriptToken 1 Let BookScript := 0endifLet BookWeHandle := 0if(DisabledUse) EnableControl Use Let DisabledUse := 0endifLet r := GetCrosshairRefif(r) if(r.GetObjectType == BookType && r.GetBookCantBeTaken == 0) Let BookWeHandle := 1 endifendifif(BookWeHandle == 0) returnendifif(IsKeyPressed3 Modifier1 || IsKeyPressed Modifier2) Let ModKeyDown := 1else Let ModKeyDown := 0endif if((ModifiedIsDefault == 0 && ModKeyDown == 0) || (ModifiedIsDefault && ModKeyDown)) returnendifDisableControl UseLet DisabledUse := 1 if(OnControlDown Use) Let b := r.GetBaseObject if eval (r.IsOffLimits player) == 0 player.additemNS b 1 else aaaDBBAMChestRef.additem b 1 Let Value := r.GetGoldValue Let CrimeToken := aaaDBBAMChestRef.placeatme aaaDBBAMCrimeToken 1 CrimeToken.setgoldvalue Value CrimeToken.activate player player.removeitemNS aaaDBBAMCrimeToken 1 aaaDBBAMChestRef.removeallitems player 1 endif aaaDBBAMShadowNPCRef.moveto player aaaDBBAMShadowNPCRef.enable r.activate aaaDBBAMShadowNPCRef aaaDBBAMShadowNPCRef.disable Let BookScript := GetScript b if(BookScript) Let ScriptToken := aaaDBBAMMarkerGood.placeatme aaaDBBAMScriptToken 1 ScriptToken.SetScript BookScript ScriptToken.moveto player endif if eval(ShowSBMessage && GetBookSkillTaught b != NoSkill) Let BookName := GetName b Let SBMessage := Call InsertBookName SBMessages[ShowSBMessage] BookName message $SBMessage endifendif End
if(r.IsOffLimits 7 == 0)if eval (r.isofflimits 7) == 0if r.isofflimits 7 == 0; and so on
if(r.IsOffLimits 7 == 0)if eval (r.isofflimits 7) == 0if r.isofflimits 7 == 0; and so on
if r.isofflimits == 0if (r.isofflimits == 0)if eval (r.isofflimits) == 0; and so on
if r.isofflimits == 0if (r.isofflimits == 0)if eval (r.isofflimits) == 0; and so on
if eval (!r.IsOffLimits (playerref.GetBaseObject))
if eval (!r.IsOffLimits (playerref.GetBaseObject))
%p - replaced with a pronoun based on the gender of the object parameter passed in a ref variable:%ps - subjective (he, she, it)%pp - possessive (his, her, its)%po - objective (him, her, it)