Darkxenoth Posted April 17, 2016 Share Posted April 17, 2016 So if I wanted to make an item that had a gold value that changes, could I simply make use of SetGoldValue()? Or would I also have to use a maintenance function to ensure the item kept proper value once it's been changed, since the page mentions that changes made with SetGoldValue() don't save? Link to comment Share on other sites More sharing options...
dredd3110 Posted April 18, 2016 Share Posted April 18, 2016 Hello, I desperatly try to make a mod providing a new start option with Live Another Life, based on Arthmoor infos and mods already providing this (linked in LAL main page). But every time I get this error: ARTH_LAL_StartQuest is not a known user-defined typeunknown type ARTH_LAL_StartQuest Properties are correctly set: ;BEGIN FRAGMENT CODE - Do not edit anything between this and the end comment;NEXT FRAGMENT INDEX 1Scriptname AAF_LAL_TIF__070FD039 Extends TopicInfo Hidden;BEGIN FRAGMENT Fragment_0Function Fragment_0(ObjectReference akSpeakerRef)Actor akSpeaker = akSpeakerRef as Actor;BEGIN CODEChargenQuest.SetAddonQuestStage(10, AAF_LALQuest);END CODEEndFunction;END FRAGMENT;END FRAGMENT CODE - Do not edit anything between this and the begin commentARTH_LAL_StartQuest Property ChargenQuest AutoQuest Property AAF_LALQuest Auto And when I try to build my mod with all the LAL content unpacked, I've got even more errors. I don't understand what is wrong, I do exactly the same thing as other working mods, but it don't compile that line and so the entire mod can't be... :verymad: Someone here already tried? Thanks in advance. Link to comment Share on other sites More sharing options...
Elias555 Posted April 19, 2016 Share Posted April 19, 2016 What the hell is the correct syntax for setting Misc Items properties? I've tried: MiscItems Property MyMiscItem Auto MiscItem Property MyMiscItem Auto Misc Property MyMiscItem Auto Items Property MyMiscItem Auto Item Property MyMiscItem Auto Link to comment Share on other sites More sharing options...
IsharaMeradin Posted April 19, 2016 Share Posted April 19, 2016 So if I wanted to make an item that had a gold value that changes, could I simply make use of SetGoldValue()? Or would I also have to use a maintenance function to ensure the item kept proper value once it's been changed, since the page mentions that changes made with SetGoldValue() don't save?Yes, you'd need to use maintenance code to reapply the change. Other than that, SetGoldValue() is the function to use. Link to comment Share on other sites More sharing options...
IsharaMeradin Posted April 19, 2016 Share Posted April 19, 2016 Hello, I desperatly try to make a mod providing a new start option with Live Another Life, based on Arthmoor infos and mods already providing this (linked in LAL main page). But every time I get this error: ARTH_LAL_StartQuest is not a known user-defined typeunknown type ARTH_LAL_StartQuest Properties are correctly set: ;BEGIN FRAGMENT CODE - Do not edit anything between this and the end comment;NEXT FRAGMENT INDEX 1Scriptname AAF_LAL_TIF__070FD039 Extends TopicInfo Hidden;BEGIN FRAGMENT Fragment_0Function Fragment_0(ObjectReference akSpeakerRef)Actor akSpeaker = akSpeakerRef as Actor;BEGIN CODEChargenQuest.SetAddonQuestStage(10, AAF_LALQuest);END CODEEndFunction;END FRAGMENT;END FRAGMENT CODE - Do not edit anything between this and the begin commentARTH_LAL_StartQuest Property ChargenQuest AutoQuest Property AAF_LALQuest Auto And when I try to build my mod with all the LAL content unpacked, I've got even more errors. I don't understand what is wrong, I do exactly the same thing as other working mods, but it don't compile that line and so the entire mod can't be... :verymad: Someone here already tried? Thanks in advance. You need to extract all the PSC scripts from the LAL BSA and put them into your main script SOURCE folder. You'll also need to do the same for the DLC scripts that LAL connects with. It may be desirable, however, to create a new directory under your scripts folder and copy-paste the PSC files in the following order:Skyrim > Dawnguard > Hearthfires > Dragonborn > Live Another LifeThen edit your SkyrimEditor.ini file:Under [Papyrus] locate sScriptSourceFolder= and redirect it to your new directory. Link to comment Share on other sites More sharing options...
IsharaMeradin Posted April 19, 2016 Share Posted April 19, 2016 What the hell is the correct syntax for setting Misc Items properties? I've tried: MiscItems Property MyMiscItem Auto MiscItem Property MyMiscItem Auto Misc Property MyMiscItem Auto Items Property MyMiscItem Auto Item Property MyMiscItem Auto MiscObject Property MyMiscItem Auto Link to comment Share on other sites More sharing options...
Drazhar753 Posted April 19, 2016 Share Posted April 19, 2016 (edited) I made a longer post but just noticed this, so here goes; how can I apply the WardBodyFX.nif ability to stop only magical projectiles to another .nif such as the Vaermina skull of corruption barrier? Edited April 19, 2016 by Drazhar753 Link to comment Share on other sites More sharing options...
dredd3110 Posted April 19, 2016 Share Posted April 19, 2016 (edited) @ IsharaMeradin Thanks for the advice! Edit: Unpacking all the DLC's scripts solve the issue. No errors ,that's so good :D Thanks again. Edited April 19, 2016 by dredd3110 Link to comment Share on other sites More sharing options...
Elias555 Posted April 21, 2016 Share Posted April 21, 2016 (edited) Thanks IsharaMeradin! This doesn't seem to fire, not sure why, it's basically the example given on the wiki with a some tweaks. It's a lesser power, it has a duration of 5s. Actor Property PlayerRef Auto Spell Property MySpell Auto Idle Property MyIdle Auto Function SomeFunction() RegisterForAnimationEvent(PlayerRef, "MyIdle") EndFunction Event OnAnimationEvent(ObjectReference akSource, string asEventName) If akSource == PlayerRef && asEventName == "MyIdle" MySpell.Cast(PlayerRef) Debug.Notification("Fired") EndIf EndEvent Edited April 21, 2016 by Elias555 Link to comment Share on other sites More sharing options...
IsharaMeradin Posted April 21, 2016 Share Posted April 21, 2016 What is calling your "SomeFunction()" function? Why not use the OnInit() event instead of creating a custom function? SomeFunction() on the wiki is just an example. It is psuedo code to show that the registration needs to take place before you can have the event actually work. Link to comment Share on other sites More sharing options...
Recommended Posts