So it seems that something has gotten really wrong with the array references. Maybe you (the OBSE team) could look into it, from http://www.gamesas.com/index.php?/topic/1097705-relz-quest-log-manager/page__view__findpost__p__16639289 on?
===============================================Game Instance : 1 | Time : 11-08-2010 04-38-07===============================================** Dumping Array #41 **Refs: 1 Owner FA: Duke Patricks - Combat Magic II.esp[ 0.000000 ] : Ancestor Guardian (D9001C35)[ 1.000000 ] : Battle Meditation (D9000801)[ 2.000000 ] : (FM) Reinitialize (CD006EC0)[ 3.000000 ] : Dismiss Companion (D8015178)[ 4.000000 ] : Fix Follower Double-Face Bug (16001BC3)[ 5.000000 ] : Join Faction (D8015167)[ 6.000000 ] : Mental Alacrity (BC00A034)[ 7.000000 ] : Recruit Companion (D8015171)[ 8.000000 ] : Soft Shoes (C3002F40)[ 9.000000 ] : Voice Alteration (250194A2)[ 10.000000 ] : A - Burdening Touch (000A97C1)[ 11.000000 ] : A - Protect (000A97A7)[ 12.000000 ] : A - Protect Other (00071090)[ 13.000000 ] : Combat Magic Kit (FA001C84)[ 14.000000 ] : Fix Fake Magic Item (FA01DF23)[ 15.000000 ] : I - Illuminate (000A319D)[ 16.000000 ] : R - Absorb Health (000A9367)[ 17.000000 ] : Weapon Correction (F8006797)[ 18.000000 ] : Atronach Birthsign (E200341D)[ 19.000000 ] : Automagic Cloak (BC0042F5)[ 20.000000 ] : Azura's Spell (D90160E4)[ 21.000000 ] : Combat Expertise: Spell Disruption (BC02D3B1)[ 22.000000 ] : Correction Spell Ability (F9000ED8)[ 23.000000 ] : Fix Fake Magic Items (FA0015B0)[ 24.000000 ] : Mer Heritage - Base (D901597A)[ 25.000000 ] : Mind Leak (E2003907)[ 26.000000 ] : Power of Thunder (E200518E)[ 27.000000 ] : Realistic Fatigue Effects (C8000810)[ 28.000000 ] : Weak Endurance (D9015A00)RL: loaded RealisticLeveling.iniRL: recalculating all attributesSM Combat Regen initialised with iniPiiiP : INI Initialized !SM Combat Hide Initialised with iniRealistic Sneak for NPCs.ini loadedRH: RealisticHealth.ini loadedRF: RealisticFatigue.ini loadedFrostcrag Reborn: no sound plugins activeEH:Updated values from ini file in data\ini\.MMO:Updated values from ini file in data\ini\.OBGE Support : Loaded ssao_perf.fxOBGE Support : Loaded ssao_test.fxOBGE Support : Loaded DepthOfField.fxOBGE Support : Loaded Godrays.fxOBGE Support : Loaded CelShader+EdgeAA.fxOBGE Support : Loaded ColorEffects.fxOBGE Support : Loaded ColorMood.fxOBGE Support : Loaded obsharpen.fxEnhanced Seasons: Ini LoadedOBSE Drop Lit Torches Initialised (Ini)EE:Updated values from ini file in data\ini\.All Natural Tamriel: InitialisedAll Natural SI: InitialisedSC|Main: shader has loadedSupreme Magicka Initialised SuccesfullyInn publicans now offer misc items.Cobl : 1RF: incrementing strength skills experience by 0.1RF: incrementing endurance skills experience by 0.1RF: incrementing strength skills experience by 0.1RL: recalculating all attributesSpell 'Fix Fake Magic Items' added to Vandal SavageSpell 'Fix Fake Magic Items' removed from Vandal SavageunlockUnlocked Chest ** Dumping Array #511 **Refs: 1 Owner FA: Duke Patricks - Combat Magic II.esp[ 0.000000 ] : Fix Fake Magic Items (FA0015B0)[ 1.000000 ] : Ancestor Guardian (D9001C35)[ 2.000000 ] : Battle Meditation (D9000801)[ 3.000000 ] : (FM) Reinitialize (CD006EC0)[ 4.000000 ] : Dismiss Companion (D8015178)[ 5.000000 ] : Fix Follower Double-Face Bug (16001BC3)[ 6.000000 ] : Join Faction (D8015167)[ 7.000000 ] : Mental Alacrity (BC00A034)[ 8.000000 ] : Recruit Companion (D8015171)[ 9.000000 ] : Soft Shoes (C3002F40)[ 10.000000 ] : Voice Alteration (250194A2)[ 11.000000 ] : A - Burdening Touch (000A97C1)[ 12.000000 ] : A - Protect (000A97A7)[ 13.000000 ] : A - Protect Other (00071090)[ 14.000000 ] : Combat Magic Kit (FA001C84)[ 15.000000 ] : Fix Fake Magic Item (FA01DF23)[ 16.000000 ] : I - Illuminate (000A319D)[ 17.000000 ] : R - Absorb Health {} (000A9367)[ 18.000000 ] : Weapon Correction (F8006797)[ 19.000000 ] : Atronach Birthsign (E200341D)[ 20.000000 ] : Automagic Cloak (BC0042F5)[ 21.000000 ] : Azura's Spell (D90160E4)[ 22.000000 ] : Combat Expertise: Spell Disruption (BC02D3B1)[ 23.000000 ] : Correction Spell Ability (F9000ED8)[ 24.000000 ] : Mer Heritage - Base (D901597A)[ 25.000000 ] : Mind Leak (E2003907)[ 26.000000 ] : Power of Thunder (E200518E)[ 27.000000 ] : Realistic Fatigue Effects (C8000810)[ 28.000000 ] : Weak Endurance (D9015A00)Spell 'Fix Fake Magic Items' added to Vandal SavageunlockUnlocked Chest RF: incrementing strength skills experience by 0.1RF: incrementing agility skills experience by 0.1Spell 'Fix Fake Magic Items' added to Vandal SavageSpell 'Fix Fake Magic Items' removed from Vandal SavageunlockUnlocked Chest RF: incrementing endurance skills experience by 0.1PiiiP : Fine Steel Mace {} (FF005E52) is not off-limits ...PiiiP : Toggle Grab fired...PiiiP : Waiting for grab key release ...PiiiP : Untoggle Grab fired ...PiiiP : Grab key released ...PiiiP : Item Tracker initialized ! PiiiP : Grabbing Core - Cycle complete ! PiiiP : Collision detected !PiiiP: Noise Detection triggered ...PiiiP : 02051A6E | Trigger Radius : 1257.12 | Current Dist : 5564.18....PiiiP : The item has stopped moving ...PiiiP : Item Tracking - Cycle complete !PiiiP : Fine Steel Mace {} (FF005E52) is not off-limits ...PiiiP : Toggle Grab fired...PiiiP : Waiting for grab key release ...PiiiP : Untoggle Grab fired ...PiiiP : Grab key released ...PiiiP : Item Tracker initialized ! PiiiP : Grabbing Core - Cycle complete ! PiiiP : The item has stopped moving ...PiiiP : Item Tracking - Cycle complete !RL: recalculating all attributesRF: incrementing strength skills experience by 0.1A:1B:1A:2B:2Blade equippedA:3B:3RF: incrementing strength skills experience by 0.1RF: 00000014:Vandal Savage play stagger dt=1.013 az=0.000 fatigue=0.40 chance=0.0002RF: incrementing strength skills experience by 0.1RF: incrementing endurance skills experience by 0.1RL: recalculating all attributesA:1B:1A:1B:1A:3B:3A:4B:4A:3B:3A:1B:1B:1B:2B:3Bow equippedBow quest startedA:1B:1bow quest stoppedB:3Bow equippedBow quest started** Dumping Array #11 **Refs: 1 Owner FA: Duke Patricks - Combat Magic II.esp[ 0.000000 ] : Fix Fake Magic Items (FA0015B0)[ 1.000000 ] : Ancestor Guardian (D9001C35)[ 2.000000 ] : Battle Meditation (D9000801)[ 3.000000 ] : (FM) Reinitialize (CD006EC0)[ 4.000000 ] : Dismiss Companion (D8015178)[ 5.000000 ] : Fix Follower Double-Face Bug (16001BC3)[ 6.000000 ] : Join Faction (D8015167)[ 7.000000 ] : Mental Alacrity (BC00A034)[ 8.000000 ] : Recruit Companion (D8015171)[ 9.000000 ] : Soft Shoes (C3002F40)[ 10.000000 ] : Voice Alteration (250194A2)[ 11.000000 ] : A - Burdening Touch (000A97C1)[ 12.000000 ] : A - Protect (000A97A7)[ 13.000000 ] : A - Protect Other (00071090)[ 14.000000 ] : Combat Magic Kit (FA001C84)[ 15.000000 ] : Fix Fake Magic Item (FA01DF23)[ 16.000000 ] : I - Illuminate (000A319D)[ 17.000000 ] : R - Absorb Health {} (000A9367)[ 18.000000 ] : Weapon Correction (F8006797)[ 19.000000 ] : Atronach Birthsign (E200341D)[ 20.000000 ] : Automagic Cloak (BC0042F5)[ 21.000000 ] : Azura's Spell (D90160E4)[ 22.000000 ] : Combat Expertise: Spell Disruption (BC02D3B1)[ 23.000000 ] : Correction Spell Ability (F9000ED8)[ 24.000000 ] : Mer Heritage - Base (D901597A)[ 25.000000 ] : Mind Leak (E2003907)[ 26.000000 ] : Power of Thunder (E200518E)[ 27.000000 ] : Realistic Fatigue Effects (C8000810)[ 28.000000 ] : Weak Endurance (D9015A00)RF: incrementing strength skills experience by 0.1** Dumping Array #511 **Refs: 1 Owner FA: Duke Patricks - Combat Magic II.esp[ 0.000000 ] : Fix Fake Magic Items (FA0015B0)[ 1.000000 ] : Ancestor Guardian (D9001C35)[ 2.000000 ] : Battle Meditation (D9000801)[ 3.000000 ] : (FM) Reinitialize (CD006EC0)[ 4.000000 ] : Dismiss Companion (D8015178)[ 5.000000 ] : Fix Follower Double-Face Bug (16001BC3)[ 6.000000 ] : Join Faction (D8015167)[ 7.000000 ] : Mental Alacrity (BC00A034)[ 8.000000 ] : Recruit Companion (D8015171)[ 9.000000 ] : Soft Shoes (C3002F40)[ 10.000000 ] : Voice Alteration (250194A2)[ 11.000000 ] : A - Burdening Touch (000A97C1)[ 12.000000 ] : A - Protect (000A97A7)[ 13.000000 ] : A - Protect Other (00071090)[ 14.000000 ] : Combat Magic Kit (FA001C84)[ 15.000000 ] : Fix Fake Magic Item (FA01DF23)[ 16.000000 ] : I - Illuminate (000A319D)[ 17.000000 ] : R - Absorb Health {} (000A9367)[ 18.000000 ] : Weapon Correction (F8006797)[ 19.000000 ] : Atronach Birthsign (E200341D)[ 20.000000 ] : Automagic Cloak (BC0042F5)[ 21.000000 ] : Azura's Spell (D90160E4)[ 22.000000 ] : Combat Expertise: Spell Disruption (BC02D3B1)[ 23.000000 ] : Correction Spell Ability (F9000ED8)[ 24.000000 ] : Mer Heritage - Base (D901597A)[ 25.000000 ] : Mind Leak (E2003907)[ 26.000000 ] : Power of Thunder (E200518E)[ 27.000000 ] : Realistic Fatigue Effects (C8000810)[ 28.000000 ] : Weak Endurance (D9015A00)RF: incrementing endurance skills experience by 0.1RF: incrementing strength skills experience by 0.1RL: recalculating all attributesRF: incrementing endurance skills experience by 0.1** Dumping Array #510 **Refs: 1 Owner FA: Duke Patricks - Combat Magic II.esp[ 0.000000 ] : Fix Fake Magic Items (FA0015B0)[ 1.000000 ] : Ancestor Guardian (D9001C35)[ 2.000000 ] : Battle Meditation (D9000801)[ 3.000000 ] : (FM) Reinitialize (CD006EC0)[ 4.000000 ] : Dismiss Companion (D8015178)[ 5.000000 ] : Fix Follower Double-Face Bug (16001BC3)[ 6.000000 ] : Join Faction (D8015167)[ 7.000000 ] : Mental Alacrity (BC00A034)[ 8.000000 ] : Recruit Companion (D8015171)[ 9.000000 ] : Soft Shoes (C3002F40)[ 10.000000 ] : Voice Alteration (250194A2)[ 11.000000 ] : A - Burdening Touch (000A97C1)[ 12.000000 ] : A - Protect (000A97A7)[ 13.000000 ] : A - Protect Other (00071090)[ 14.000000 ] : Combat Magic Kit (FA001C84)[ 15.000000 ] : Fix Fake Magic Item (FA01DF23)[ 16.000000 ] : I - Illuminate (000A319D)[ 17.000000 ] : R - Absorb Health {} (000A9367)[ 18.000000 ] : Weapon Correction (F8006797)[ 19.000000 ] : Atronach Birthsign (E200341D)[ 20.000000 ] : Automagic Cloak (BC0042F5)[ 21.000000 ] : Azura's Spell (D90160E4)[ 22.000000 ] : Combat Expertise: Spell Disruption (BC02D3B1)[ 23.000000 ] : Correction Spell Ability (F9000ED8)[ 24.000000 ] : Mer Heritage - Base (D901597A)[ 25.000000 ] : Mind Leak (E2003907)[ 26.000000 ] : Power of Thunder (E200518E)[ 27.000000 ] : Realistic Fatigue Effects (C8000810)[ 28.000000 ] : Weak Endurance (D9015A00)RL: recalculating all attributesRF: incrementing strength skills experience by 0.1** Dumping Array #26 **Refs: 1 Owner FA: Duke Patricks - Combat Magic II.esp[ 0.000000 ] : Fix Fake Magic Items (FA0015B0)[ 1.000000 ] : Ancestor Guardian (D9001C35)[ 2.000000 ] : Battle Meditation (D9000801)[ 3.000000 ] : (FM) Reinitialize (CD006EC0)[ 4.000000 ] : Dismiss Companion (D8015178)[ 5.000000 ] : Fix Follower Double-Face Bug (16001BC3)[ 6.000000 ] : Join Faction (D8015167)[ 7.000000 ] : Mental Alacrity (BC00A034)[ 8.000000 ] : Recruit Companion (D8015171)[ 9.000000 ] : Soft Shoes (C3002F40)[ 10.000000 ] : Voice Alteration (250194A2)[ 11.000000 ] : A - Burdening Touch (000A97C1)[ 12.000000 ] : A - Protect (000A97A7)[ 13.000000 ] : A - Protect Other (00071090)[ 14.000000 ] : Combat Magic Kit (FA001C84)[ 15.000000 ] : Fix Fake Magic Item (FA01DF23)[ 16.000000 ] : I - Illuminate (000A319D)[ 17.000000 ] : R - Absorb Health {} (000A9367)[ 18.000000 ] : Weapon Correction (F8006797)[ 19.000000 ] : Atronach Birthsign (E200341D)[ 20.000000 ] : Automagic Cloak (BC0042F5)[ 21.000000 ] : Azura's Spell (D90160E4)[ 22.000000 ] : Combat Expertise: Spell Disruption (BC02D3B1)[ 23.000000 ] : Correction Spell Ability (F9000ED8)[ 24.000000 ] : Mer Heritage - Base (D901597A)[ 25.000000 ] : Mind Leak (E2003907)[ 26.000000 ] : Power of Thunder (E200518E)[ 27.000000 ] : Realistic Fatigue Effects (C8000810)[ 28.000000 ] : Weak Endurance (D9015A00)RF: incrementing agility skills experience by 0.1Spell 'Fix Fake Magic Items' added to Vandal SavagetclCollision -> Off** Dumping Array #11 **Refs: 1 Owner FA: Duke Patricks - Combat Magic II.esp[ 0.000000 ] : Fix Fake Magic Items (FA0015B0)[ 1.000000 ] : Ancestor Guardian (D9001C35)[ 2.000000 ] : Battle Meditation (D9000801)[ 3.000000 ] : (FM) Reinitialize (CD006EC0)[ 4.000000 ] : Dismiss Companion (D8015178)[ 5.000000 ] : Fix Follower Double-Face Bug (16001BC3)[ 6.000000 ] : Join Faction (D8015167)[ 7.000000 ] : Mental Alacrity (BC00A034)[ 8.000000 ] : Recruit Companion (D8015171)[ 9.000000 ] : Soft Shoes (C3002F40)[ 10.000000 ] : Voice Alteration (250194A2)[ 11.000000 ] : A - Burdening Touch (000A97C1)[ 12.000000 ] : A - Protect (000A97A7)[ 13.000000 ] : A - Protect Other (00071090)[ 14.000000 ] : Combat Magic Kit (FA001C84)[ 15.000000 ] : Fix Fake Magic Item (FA01DF23)[ 16.000000 ] : I - Illuminate (000A319D)[ 17.000000 ] : R - Absorb Health {} (000A9367)[ 18.000000 ] : Weapon Correction (F8006797)[ 19.000000 ] : Atronach Birthsign (E200341D)[ 20.000000 ] : Automagic Cloak (BC0042F5)[ 21.000000 ] : Azura's Spell (D90160E4)[ 22.000000 ] : Combat Expertise: Spell Disruption (BC02D3B1)[ 23.000000 ] : Correction Spell Ability (F9000ED8)[ 24.000000 ] : Mer Heritage - Base (D901597A)[ 25.000000 ] : Mind Leak (E2003907)[ 26.000000 ] : Power of Thunder (E200518E)[ 27.000000 ] : Realistic Fatigue Effects (C8000810)[ 28.000000 ] : Weak Endurance (D9015A00)Spell 'Fix Fake Magic Items' added to Vandal SavagetclCollision -> OnSpell 'Fix Fake Magic Items' removed from Vandal SavageRF: incrementing strength skills experience by 0.1** Dumping Array #26 **Refs: 1 Owner FA: Duke Patricks - Combat Magic II.esp[ 0.000000 ] : Fix Fake Magic Items (FA0015B0)[ 1.000000 ] : Ancestor Guardian (D9001C35)[ 2.000000 ] : Battle Meditation (D9000801)[ 3.000000 ] : (FM) Reinitialize (CD006EC0)[ 4.000000 ] : Dismiss Companion (D8015178)[ 5.000000 ] : Fix Follower Double-Face Bug (16001BC3)[ 6.000000 ] : Join Faction (D8015167)[ 7.000000 ] : Mental Alacrity (BC00A034)[ 8.000000 ] : Recruit Companion (D8015171)[ 9.000000 ] : Soft Shoes (C3002F40)[ 10.000000 ] : Voice Alteration (250194A2)[ 11.000000 ] : A - Burdening Touch (000A97C1)[ 12.000000 ] : A - Protect (000A97A7)[ 13.000000 ] : A - Protect Other (00071090)[ 14.000000 ] : Combat Magic Kit (FA001C84)[ 15.000000 ] : Fix Fake Magic Item (FA01DF23)[ 16.000000 ] : I - Illuminate (000A319D)[ 17.000000 ] : R - Absorb Health {} (000A9367)[ 18.000000 ] : Weapon Correction (F8006797)[ 19.000000 ] : Atronach Birthsign (E200341D)[ 20.000000 ] : Automagic Cloak (BC0042F5)[ 21.000000 ] : Azura's Spell (D90160E4)[ 22.000000 ] : Combat Expertise: Spell Disruption (BC02D3B1)[ 23.000000 ] : Correction Spell Ability (F9000ED8)[ 24.000000 ] : Mer Heritage - Base (D901597A)[ 25.000000 ] : Mind Leak (E2003907)[ 26.000000 ] : Power of Thunder (E200518E)[ 27.000000 ] : Realistic Fatigue Effects (C8000810)[ 28.000000 ] : Weak Endurance (D9015A00)RF: incrementing endurance skills experience by 0.1RF: incrementing strength skills experience by 0.1** Dumping Array #224 **Refs: 1 Owner FA: Duke Patricks - Combat Magic II.esp[ 0.000000 ] : Fix Fake Magic Items (FA0015B0)[ 1.000000 ] : Ancestor Guardian (D9001C35)[ 2.000000 ] : Battle Meditation (D9000801)[ 3.000000 ] : (FM) Reinitialize (CD006EC0)[ 4.000000 ] : Dismiss Companion (D8015178)[ 5.000000 ] : Fix Follower Double-Face Bug (16001BC3)[ 6.000000 ] : Join Faction (D8015167)[ 7.000000 ] : Mental Alacrity (BC00A034)[ 8.000000 ] : Recruit Companion (D8015171)[ 9.000000 ] : Soft Shoes (C3002F40)[ 10.000000 ] : Voice Alteration (250194A2)[ 11.000000 ] : A - Burdening Touch (000A97C1)[ 12.000000 ] : A - Protect (000A97A7)[ 13.000000 ] : A - Protect Other (00071090)[ 14.000000 ] : Combat Magic Kit (FA001C84)[ 15.000000 ] : Fix Fake Magic Item (FA01DF23)[ 16.000000 ] : I - Illuminate (000A319D)[ 17.000000 ] : R - Absorb Health {} (000A9367)[ 18.000000 ] : Weapon Correction (F8006797)[ 19.000000 ] : Atronach Birthsign (E200341D)[ 20.000000 ] : Automagic Cloak (BC0042F5)[ 21.000000 ] : Azura's Spell (D90160E4)[ 22.000000 ] : Combat Expertise: Spell Disruption (BC02D3B1)[ 23.000000 ] : Correction Spell Ability (F9000ED8)[ 24.000000 ] : Mer Heritage - Base (D901597A)[ 25.000000 ] : Mind Leak (E2003907)[ 26.000000 ] : Power of Thunder (E200518E)[ 27.000000 ] : Realistic Fatigue Effects (C8000810)[ 28.000000 ] : Weak Endurance (D9015A00)RF: incrementing strength skills experience by 0.1RF: incrementing endurance skills experience by 0.1
ScriptName TestRepairfloat fQuestDelayTimefloat targetPfloat targetHfloat baseHfloat currHref itemBegin GameMode if GetGameLoaded set fQuestDelayTime to 0.001 endif if OnKeyDown 35 let targetP := 90 endif if OnKeyDown 36 let targetP := 100 endif if OnKeyDown 37 let targetP := 110 endif if OnKeyDown 38 let targetP := 125 endif if targetP > 0 PrintC " " PrintC "**" ForEach item <- PlayerRef if item.IsWeapon || item.IsArmor let baseH := item.GetObjectHealth let currH := item.GetCurrentHealth let targetH := baseH * targetP / 100.0 let targetH := Ceil targetH if targetH != currH item.SetCurrentHealth targetH PrintC "%n, set health from %.1f to %.1f, base %.0f, p %.0f", item, currH, targetH, baseH, targetP endif endif Loop let targetP := 0 endif if OnKeyDown 34 PrintC " " PrintC "--" ForEach item <- PlayerRef if item.IsWeapon || item.IsArmor let baseH := item.GetObjectHealth let currH := item.GetCurrentHealth PrintC "%n, health: %.1f, base %.0f", item, currH, baseH endif Loop let targetP := 0 endifEnd
scn MFQWeaponCurse1Ref EquipedWeaponBegin MenuMode 1002Set EquipedWeapon to Player.GetEquippedObject 16 IF Player.GetWeaponType EquipedWeapon == 0 MessageBox "this is a sword" EndIfEnd
scn MFQWeaponCurse1Ref EquipedWeaponBegin MenuMode 1002Set EquipedWeapon to Player.GetEquippedObject 16 IF Player.GetWeaponType EquipedWeapon == 4 MessageBox "this is a staff" EndIfEnd
scn MFQWeaponCurse1Ref EquipedWeaponBegin MenuMode 1002Set EquipedWeapon to Player.GetEquippedObject 16 IF Player.GetWeaponType EquipedWeapon == 0 MessageBox "this is a sword" EndIfEnd
scn MFQWeaponCurse1Ref EquipedWeaponBegin MenuMode 1002Set EquipedWeapon to Player.GetEquippedObject 16 IF Player.GetWeaponType EquipedWeapon == 4 MessageBox "this is a staff" EndIfEnd
scn MFQWeaponCurse1Ref EquipedWeaponBegin MenuMode 1002Set EquipedWeapon to Player.GetEquippedObject 16 IF GetWeaponType EquipedWeapon == 2 MessageBox "one hand blund" ElseIF GetWeaponType EquipedWeapon == 5 MessageBox "Bow" EndIfEnd
scn MFQWeaponCurse1Ref EquipedWeaponshort EquipedWeaponBegin MenuMode 1002Set EquipedWeapon to Player.GetEquippedObject 16 IF GetWeaponType EquipedWeapon == 0 MessageBox "Sword" ElseIF GetWeaponType EquipedWeapon == 4 MessageBox "Staff" Elseif GetWeaponType EquipedWeapon == 5 MessageBox "Bow" EndIfEnd
scn MFQWeaponCurse1Ref WeaponShort WeaponTypeBegin MenuMode 1002Set Weapon to Player.GetEquippedObject 16Set weapontype to GetWeaponType Weapon IF WeaponType < 0 ;probably unnecessary return ElseIF WeaponType == 0 If Player.GetEquippedObject 16 == 0 return ElseIf Player.GetEquippedObject 16 != 0 MessageBox "Sword" EndIf ElseIF WeaponType == 4 MessageBox "Staff" Else ;probably unnecessary Return EndIfEnd
scn MfSpellSetScriptRef WeaponRef MfSetScriptTarBegin GameModeSet Weapon to Player.GetEquippedObject 16Weapon.SetScript MfSetScriptTar Player.UnequipItem weaponPlayer.EquipItem WeaponEnd
scn MfSetScriptTarShort ControlVarBegin OnEquip If ControlVar == 0 MessageBox "Test 1 2 3" Set ControlVar to 1 EndIfEnd
scn MFQWeaponCurse1Ref WeaponShort WeaponTypeBegin MenuMode 1002Set Weapon to Player.GetEquippedObject 16Set weapontype to GetWeaponType Weapon IF WeaponType < 0 ;probably unnecessary return ElseIF WeaponType == 0 If Player.GetEquippedObject 16 == 0 return ElseIf Player.GetEquippedObject 16 != 0 MessageBox "Sword" EndIf ElseIF WeaponType == 4 MessageBox "Staff" Else ;probably unnecessary Return EndIfEnd
scn MFQWeaponCurse1Ref WeaponShort WeaponTypeBegin MenuMode 1002Set Weapon to Player.GetEquippedObject 16If Player.GetEquippedObject 16 == 0 ;If no weapon is equipped the script stops here returnEndifSet weapontype to GetWeaponType Weapon ;Now you are sure that player has a weapon equipped If WeaponType == 0 MessageBox "Sword" ElseIF WeaponType == 4 MessageBox "Staff" EndIfEnd