Jump to content

Housecarl Project--Small Scripting Question


Recommended Posts

Hello. I’m currently working a housecarl project that expands on the character of a couple of housecarls (Iona and Jordis) for the past week or two.

 

I’m somewhat experienced with the Creation Kit, in terms of modifying NPC appearances and know the basics on how to create a follower, yet when figuring out Papyrus Scripting, I’m hitting a snag.

 

I’m trying to write a script that will disable Jordis ( a duplicate NPC of the housecarl) when the player is appointed thane of Solitude and actually gets the real Jordis as the housecarl NPC. Yet when that event happens, in testing the previous Jordis NPC doesn’t disable and disappear. Both NPCs appear in the game at the same time.

 

Here are my screenshots (I used the NPC Erik’s script as reference):

http://i.imgur.com/7jySH.jpg

 

http://i.imgur.com/dY19y.jpg

 

 

 

 

Am I forgetting something or is it that I need to test it on a clean save? Any help will be appreciated and credited when I have the chance to release this mod!

Edited by sumojellybean
Link to comment
Share on other sites

why did you put them in the onunload() event? this is related to the 3d and animation stuff being stopped. why don't you use onload(), this meant when the npc is ready. i think this is the first mistake, second, did you disable the maiden in the beginning? if not they will sure appear together. unless you mean the opposite. you can try it and tell me back if it did not work for you. Edited by hfiani
Link to comment
Share on other sites

why did you put them in the onunload() event? this is related to the 3d and animation stuff being stopped. why don't you use onload(), this meant when the npc is ready. i think this is the first mistake, second, did you disable the maiden in the beginning? if not they will sure appear together. unless you mean the opposite. you can try it and tell me back if it did not work for you.

 

Checking through the CK, the housecarl Jordis NPC is only enabled after completing a certain stage in the Thane of Hjaalmarch quest.

 

http://i.imgur.com/NEMP0.jpg

 

 

As for the Unload event, I was using a copy from Erik’s script while trying to understand its terms. TBH, Event OnUnload though confused me:

 

http://i.imgur.com/6jdHW.jpg

 

That said I just tested the script again with EventOnload—nothing has changed yet sadly

Link to comment
Share on other sites

OnLoad() has similar effect that OnUnload() does. Try an OnReset(), or perform the enable /disable within the actual quest location, if you know that one of them is going to be changed as a result of that quest stage. If you want to still edit your current script, here is a list of events that may or may not be helpful:

http://www.creationkit.com/Event

Edited by Arron Dominion
Link to comment
Share on other sites

OnLoad() has similar effect that OnUnload() does. Try an OnReset(), or perform the enable /disable within the actual quest location, if you know that one of them is going to be changed as a result of that quest stage. If you want to still edit your current script, here is a list of events that may or may not be helpful:

http://www.creationkit.com/Event

 

Just looked through the quest script. Its says that I shouldn't edit the code from the beginning fragment to the end, which in between the list of all of the vanilla alias's and scripts.

 

That said, I've figured out how to make my script work--turns out I only needed to simplify things and only tell the actor script to disable my new NPC when the quest stage was completed and forget enabling the housecarl--or her alias for that matter.

 

Still, thank you hfiani and Dominion for giving me ideas to help me out and explaining to me what some events were to a noob like myself. xD

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...