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...

Property value not beeing stored


BlackParagon
 Share

Recommended Posts

Hi there...

I am new to scripting in skyrim, so please go easy on me. I will try to give you all the information I can, but sometimes it may take me a while to figure out what you mean ^^

So, I started with altering a script from a mod I really liked. Maybe some of you know it, it's called "Auto Perks". It essentially gives you all the perks that you meet the requirements for.

My goal was to incorporate new perks from another mod I use, so they will be added automatically too.

My first look at the script got me a lot of insight, as it wasn't that complex.

In the original script it looked like this:

Scriptname ap_autoperkscript extends Quest

Perk Property MasterTrader Auto

.

.

.

Function Init()

RegisterForSingleUpdate(60)

endFunction

Event onUpdate()

Actor player = Game.GetPlayer()

if(!player.HasPerk(MasterTrader))

if(player.GetBaseAV("Speechcraft") >= 50)

player.AddPerk(MasterTrader)

Debug.Notification("Perk Master Trader Added")

endif

endif

.

.

.

.

RegisterForSingleUpdate(60)

endEvent

This seemed fairly easy to edit, so I manually removed all unused properties and added the new perks from the perk mod to the properties. I then copy-pasted the actual checks and filled them with the new information. After some typo tracking i succesfully compiled the script and got it to run.

At first i thought, everything would be fine, but then i discovered that it would only work fine with all the vanilla perks and instead of adding the new perks from the other mod, trying to add them without beeing succesful every update.

I tracked this down in the creation kit to the properties not beeing correctly assigned the new values of the perks. The vanilla properties are just assigned fine, but for some reason everytime i assign the modded perks to the new properties i created, they are not beeing stored, instead telling me the properties are assigned to <NULL Form> 04xxxxxx.

I again have been able to track this to be a conflict with the Dragonborn DLC, which is number 04 in my load order.

My conclussion is that the Dragonborn DLC overwrites/kills the aliases for some reason, but I don't know why. Both mods, the perk mod and the autoperk mod are loaded after, shouldn't they overwrite anything conflicting from Dragonborn?

I have already searched for this but haven't found anything about it. Maybe someone here can help me.

Link to comment
Share on other sites

If you are editing the actual mod with the new perks, and not loading two ESP files, then it should work.

Master files, like the Dragonborn DLC, are tricky.

What I think is, If you want to override what a masterfile does, you have to include it as a dependancy.

Or its possible your doing something else. But without more detail, such as an example with all objects your using named, I could not say for sure. You could upload your mod here in a PM to me and I could check it over quick, see if I see anything amiss.

Link to comment
Share on other sites

Okay so, yeah you were absolutely 100% right with your first post, of course i tried to mod a mod ^^

As I tried to reference the properties values from the perk mod over to the autoperk mod. I got it working by simply copying over the quest which has the associated scripts in it to the actual mod with the new perks and then disabled the original autoperk mod. And tada, it works ^^

Thank you very much, you helped me understand this system much better now.

Edited by BlackParagon
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...