lovender Posted September 27, 2016 Posted September 27, 2016 The tittle says it all. The script that works for player character is like this: ---------------------------------------------------------------------------- scn aaaSCIVIvyGauntletShieldScript begin OnEquip if (player.GetEquipped SCIVIvyGauntlet == 1) player. additem SCIVIvyGauntletShield 1 player.equipitem SCIVIvyGauntletShield endif end begin OnUnequip player if (player.GetEquipped SCIVIvyGauntlet == 0) player. removeitem SCIVIvyGauntletShield 1 endif end ---------------------------------------------------------------------------- I got the script from this mod: http://www.nexusmods.com/oblivion/mods/46150/? and then modified a bit to work with my forthcoming mod. Only NPC that still can't equip GauntletShield automatically. Thanks in advance. -lovender-
lovender Posted September 28, 2016 Author Posted September 28, 2016 Here's my mod as a pre-launching then...for testing or to understand the issue. https://mega.nz/#!JcUATTCY!nKRKNyp12f9hfWIttxgh3Q2clT9ulO7Irsop3cbRH5g Hope somebody can help.
fejeena Posted September 28, 2016 Posted September 28, 2016 Use the script and delete "player" scn aaaSCIVIvyGauntletShieldScriptbegin OnEquip if GetEquipped SCIVIvyGauntlet == 1 additem SCIVIvyGauntletShield 1 equipitem SCIVIvyGauntletShield endifendbegin OnUnequip if GetEquipped SCIVIvyGauntlet == 0 removeitem SCIVIvyGauntletShield 1 endifendbegin OnEquip if GetEquipped SCIVIvyArmor == 1 additem SCIVIvyGauntletShield 1 equipitem SCIVIvyGauntletShield endifendbegin OnUnequip if GetEquipped SCIVIvyArmor == 0 removeitem SCIVIvyGauntletShield 1 endifend Or give her a ID e.g. HornyIsabellaValentineRef scn aaaSCIVIvyGauntletShieldScriptbegin OnEquip if HornyIsabellaValentineRef.GetEquipped SCIVIvyGauntlet == 1 HornyIsabellaValentineRef.additem SCIVIvyGauntletShield 1 HornyIsabellaValentineRef.equipitem SCIVIvyGauntletShield endifendbegin OnUnequip HornyIsabellaValentineRef if HornyIsabellaValentineRef.GetEquipped SCIVIvyGauntlet == 0 HornyIsabellaValentineRef.removeitem SCIVIvyGauntletShield 1 endifendbegin OnEquip if HornyIsabellaValentineRef.GetEquipped SCIVIvyArmor == 1 HornyIsabellaValentineRef.additem SCIVIvyGauntletShield 1 HornyIsabellaValentineRef.equipitem SCIVIvyGauntletShield endifendbegin OnUnequip HornyIsabellaValentineRef if HornyIsabellaValentineRef.GetEquipped SCIVIvyArmor == 0 HornyIsabellaValentineRef.removeitem SCIVIvyGauntletShield 1 endifend
lovender Posted September 29, 2016 Author Posted September 29, 2016 Use the script and delete "player" scn aaaSCIVIvyGauntletShieldScript begin OnEquip if GetEquipped SCIVIvyGauntlet == 1 additem SCIVIvyGauntletShield 1 equipitem SCIVIvyGauntletShield endif end begin OnUnequip if GetEquipped SCIVIvyGauntlet == 0 removeitem SCIVIvyGauntletShield 1 endif end begin OnEquip if GetEquipped SCIVIvyArmor == 1 additem SCIVIvyGauntletShield 1 equipitem SCIVIvyGauntletShield endif end begin OnUnequip if GetEquipped SCIVIvyArmor == 0 removeitem SCIVIvyGauntletShield 1 endif end Or give her a ID ID.jpg e.g. HornyIsabellaValentineRef scn aaaSCIVIvyGauntletShieldScript begin OnEquip if HornyIsabellaValentineRef.GetEquipped SCIVIvyGauntlet == 1 HornyIsabellaValentineRef.additem SCIVIvyGauntletShield 1 HornyIsabellaValentineRef.equipitem SCIVIvyGauntletShield endif end begin OnUnequip HornyIsabellaValentineRef if HornyIsabellaValentineRef.GetEquipped SCIVIvyGauntlet == 0 HornyIsabellaValentineRef.removeitem SCIVIvyGauntletShield 1 endif end begin OnEquip if HornyIsabellaValentineRef.GetEquipped SCIVIvyArmor == 1 HornyIsabellaValentineRef.additem SCIVIvyGauntletShield 1 HornyIsabellaValentineRef.equipitem SCIVIvyGauntletShield endif end begin OnUnequip HornyIsabellaValentineRef if HornyIsabellaValentineRef.GetEquipped SCIVIvyArmor == 0 HornyIsabellaValentineRef.removeitem SCIVIvyGauntletShield 1 endif end Still didn't work, fejeena. I delete "player" and can compile & save the script in TES CS. But now both player & NPC can't automatically equip the gauntlet shield. I tried the second way you recommend & give the NPC an ID. But when trying to compile & save the script in TES CS, I got: Syntax error. invalid reference '[EDITOR ID Name]' (only object references and reference variables are allowed in this context).
fejeena Posted September 29, 2016 Posted September 29, 2016 Were did you add the ID ? Not to the NPC in the NPC window! See my picture, you must add the ID to the NPC in the world ( your NPC is in the world space ) But if the NPC use the same script it will not work for the player. -------------------- I don't understand why the script without "player" does not work. The script is added to the "Ivy SCIV Gauntlet", so the script with out player should work for everyone how equip the "Ivy SCIV Gauntlet" ( or the "Ivy SCIV Armor" ) I will test it. Edit: shit does not work.
fejeena Posted September 29, 2016 Posted September 29, 2016 Ok i read the "quest" and dialogs, the script was never for the NPC and the "begin OnEquip" does not work with a NPC (don't know why, I add the Gauntlet with MCS orders/ trade spell ) .....after some tests...... Here a script for Player and NPC , tested in game. Your NPC need a ID ( the NPC in the world- or interior-cell ! not in the NPC section ! ) I used ID: IsabellaVRef -------------------------------------------------------------------------------------------- scn aaaSCIVIvyGauntletShieldScriptbegin OnEquip if Player.GetEquipped SCIVIvyGauntlet == 1 Player.additem SCIVIvyGauntletShield 1 Player.equipitem SCIVIvyGauntletShield endifendbegin OnUnequip if Player.GetEquipped SCIVIvyGauntlet == 0 Player.removeitem SCIVIvyGauntletShield 1 endifendbegin OnEquip if Player.GetEquipped SCIVIvyArmor == 1 Player.additem SCIVIvyGauntletShield 1 Player.equipitem SCIVIvyGauntletShield endifendbegin OnUnequip if Player.GetEquipped SCIVIvyArmor == 0 Player.removeitem SCIVIvyGauntletShield 1 endifend Begin gamemode if ( IsabellaVRef.GetItemCount SCIVIvyGauntlet >= 1 || IsabellaVRef.GetItemCount SCIVIvyArmor >= 1 ) && IsabellaVRef.GetItemCount SCIVIvyGauntletShield == 0 IsabellaVRef.AddItem SCIVIvyGauntletShield 1 IsabellaVRef.EquipItem SCIVIvyGauntletShield endif if ( IsabellaVRef.GetItemCount SCIVIvyGauntlet == 0 && IsabellaVRef.GetItemCount SCIVIvyArmor == 0 ) && IsabellaVRef.GetItemCount SCIVIvyGauntletShield >= 1 IsabellaVRef.RemoveItem SCIVIvyGauntletShield 1 endifend ---------------------------------------------------------
lovender Posted September 30, 2016 Author Posted September 30, 2016 By the Nine Divines! It works, finally... Thanks a lot, fejeena. I'll include your name in the credits & special thanks. Will release the official mod ASAP in my loverslab modding page.
lovender Posted October 4, 2016 Author Posted October 4, 2016 Just released the mod in my modding page: http://www.loverslab.com/topic/18808-lovenders-armorclothing-separated-into-parts-sip-mods/ Thanks.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.