Jump to content

DOWNLOAD MODS

Are you looking for something shiny for your load order? We have many exclusive mods and resources you won't find anywhere else. Start your search now...

LEARN MODDING

Ready to try your hand at making your own mod creations? Visit the Enclave, the original ES/FO modding school, and learn the tricks of the trade from veteran modders...

JOIN THE ALLIANCE

Membership is free and registering unlocks image galleries, project hosting, live chat, unlimited downloads, & more...

StrikeForceX

Allies
  • Posts

    14
  • Joined

  • Last visited

Posts posted by StrikeForceX

  1. Yes i have the script on a sword. I have all the script working apart from i can still remove the armor i just don't know how to turn the armor into quest items so they can't be removed, it's really confusing me, Lol. It's the only thing left to do on my mod.

  2. Hi i did eventually realise that OnEquip did not need a numeric parameter so removed it and abSilent worked, however i have removed the numeric parameter on UnequippedItem but still has not helped towards getting abPreventRemoval from working. The script is compiling with no errors but abPreventRemoval just will not work. Is there anything else i could try ? Thanks

  3. Hi i have the abSilent working now but still no luck with abPreventRemoval i have tried (true, true) and get this error " too many arguments passed to function"

    Here is my script all together now, I might have gone wrong somewhere, not to sure. Thanks

     

     

    Scriptname SOTDGTest extends ObjectReference  
     
    Armor Property DaedricHelmet  Auto  
    Armor Property DaedricGauntlets  Auto  
    Armor Property DaedricBoots  Auto  
    Armor Property DaedricCuirass  Auto  
    Armor Property DaedricShield  Auto  
    Bool Property abPreventRemoval  Auto  
    Bool Property abSilent  Auto  
    Bool abPreventRemoval = false
    Bool abSilent = false
     
     
    Event OnEquipped(Actor akActor)
      if akActor == Game.GetPlayer()
    Game.GetPlayer().AddItem(DaedricHelmet, 1, true)
    Game.GetPlayer().AddItem(DaedricCuirass, 1, true)
    Game.GetPlayer().AddItem(DaedricGauntlets, 1, true)
    Game.GetPlayer().AddItem(DaedricShield, 1, true)
    Game.GetPlayer().AddItem(DaedricBoots, 1, true)
          Game.GetPlayer().EquipItem(DaedricHelmet, 1, true, true)
    Game.GetPlayer().EquipItem(DaedricCuirass, 1, true, true)
    Game.GetPlayer().EquipItem(DaedricGauntlets, 1, true, true)
    Game.GetPlayer().EquipItem(DaedricShield, 1, true, true)
    Game.GetPlayer().EquipItem(DaedricBoots, 1, true, true)
           EndIf
    EndEvent
     
    Event OnUnequipped(Actor akActor)
      if akActor == Game.GetPlayer()
    Game.GetPlayer().UnequipItem(DaedricHelmet, 1, true)
    Game.GetPlayer().UnequipItem(DaedricCuirass, 1, true)
    Game.GetPlayer().UnequipItem(DaedricGauntlets, 1, true)
    Game.GetPlayer().UnequipItem(DaedricShield, 1, true)
    Game.GetPlayer().UnequipItem(DaedricBoots, 1, true)
    Game.GetPlayer().RemoveItem(DaedricHelmet, 1, true)
    Game.GetPlayer().RemoveItem(DaedricCuirass, 1, true)
    Game.GetPlayer().RemoveItem(DaedricGauntlets, 1, true)
    Game.GetPlayer().RemoveItem(DaedricShield, 1, true)
    Game.GetPlayer().RemoveItem(DaedricBoots, 1, true)
         EndIf
    EndEvent
     
     
     
     
     

     

     

  4. Hey guys this is my working script i just need abSilent & abPreventRemoval to go in could someone help me please.

     

    Event OnEquipped(Actor akActor)
       if akActor == Game.GetPlayer()
             Game.GetPlayer().AddItem(DaedricHelmet, 1)
             Game.GetPlayer().AddItem(DaedricCuirass, 1)
             Game.GetPlayer().AddItem(DaedricGauntlets, 1)
             Game.GetPlayer().AddItem(DaedricShield, 1)
             Game.GetPlayer().AddItem(DaedricBoots, 1)
             Game.GetPlayer().EquipItem(DaedricHelmet, true)
             Game.GetPlayer().EquipItem(DaedricCuirass, true)
             Game.GetPlayer().EquipItem(DaedricGauntlets, true)
             Game.GetPlayer().EquipItem(DaedricShield, true)
             Game.GetPlayer().EquipItem(DaedricBoots, true)
           EndIf
    EndEvent
     
    Event OnUnequipped(Actor akActor)
      if akActor == Game.GetPlayer()
            Game.GetPlayer().UnequipItem(DaedricHelmet)
            Game.GetPlayer().UnequipItem(DaedricCuirass)
            Game.GetPlayer().UnequipItem(DaedricGauntlets)
            Game.GetPlayer().UnequipItem(DaedricShield)
            Game.GetPlayer().UnequipItem(DaedricBoots)
            Game.GetPlayer().RemoveItem(DaedricHelmet, 1)
            Game.GetPlayer().RemoveItem(DaedricCuirass, 1)
            Game.GetPlayer().RemoveItem(DaedricGauntlets, 1)
            Game.GetPlayer().RemoveItem(DaedricShield, 1)
            Game.GetPlayer().RemoveItem(DaedricBoots, 1)
         EndIf
    EndEvent
  5. Hi Guys 

    I have been looking into trying compile a script that when the player equips a sword it adds a full set of armor to that player an then removes it when the player unequips the

    weapon. I am really struggling getting my head around Papyrus, Lol If a person who is experienced in scripting could help or write the script so i could learn of it would be great. Thanks

  6. Thanks for the help, That is all i can seem to get out of it all. I understand doing the properties but would i do the Armor as ObjectRef or Armor ? 
     
    Event OnEquipped(Actor akActor)
      if akActor == Game.GetPlayer()
    Game.GetPlayer().AddItem(DaedricHelmet, 1, true)
    Game.GetPlayer().AddItem(DaedricArmor, 1, true)
    Game.GetPlayer().AddItem(DaedricGauntlets, 1, true)
    Game.GetPlayer().AddItem(DaedricShield, 1, true)
    Game.GetPlayer().AddItem(DaedricBoots, 1, true)
          Game.GetPlayer().EquipItem(DaedricHelmet)
    Game.GetPlayer().EquipItem(DaedricArmor)
    Game.GetPlayer().EquipItem(DaedricGauntlets)
    Game.GetPlayer().EquipItem(DaedricShield)
    Game.GetPlayer().EquipItem(DaedricBoots)
           EndIf
    EndEvent
     
    Event OnUnequip(Actor akActor)
      if akActor == Game.GetPlayer()
    Game.GetPlayer().UnequipItem(DaedricHelmet)
    Game.GetPlayer().UnequipItem(DaedricArmor)
    Game.GetPlayer().UnequipItem(DaedricGauntlets)
    Game.GetPlayer().UnequipItem(DaedricShield)
    Game.GetPlayer().UnequipItem(DaedricBoots)
    Game.GetPlayer().RemoveItem(DaedricHelmet, 1)
    Game.GetPlayer().RemoveItem(DaedricArmor, 1)
    Game.GetPlayer().RemoveItem(DaedricGauntlets, 1)
    Game.GetPlayer().RemoveItem(DaedricShield, 1)
    Game.GetPlayer().RemoveItem(DaedricBoots, 1)
         EndIf
    EndEvent
  7. Hi i've just followed this tutorial for creating the mannequin. I launched the game to check and the mannequin was alive just like an NPC quite freaky, Lol could this be cause it is in the Hearthfire built manor ?

  8. Hey Guys

    I am a noob when it comes to scripting i have read everything i can find about it and the only thing i have achieved is an headache. I have done a lot for a mod and the only thing left to do is to put a script on a sword that when the player equips gives him a set of armor and removes the armor when he unequips. I would be eternally grateful if someone could help

     

    Thanks

×
×
  • Create New...