Jump to content

Quick Questions, Quick Answers


Mattiewagg

Recommended Posts

  • Replies 2.6k
  • Created
  • Last Reply

Top Posters In This Topic

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 type

unknown type ARTH_LAL_StartQuest

 

Properties are correctly set:

 

 

;BEGIN FRAGMENT CODE - Do not edit anything between this and the end comment
;NEXT FRAGMENT INDEX 1
Scriptname AAF_LAL_TIF__070FD039 Extends TopicInfo Hidden
;BEGIN FRAGMENT Fragment_0
Function Fragment_0(ObjectReference akSpeakerRef)
Actor akSpeaker = akSpeakerRef as Actor
;BEGIN CODE
ChargenQuest.SetAddonQuestStage(10, AAF_LALQuest)
;END CODE
EndFunction
;END FRAGMENT
;END FRAGMENT CODE - Do not edit anything between this and the begin comment

ARTH_LAL_StartQuest Property ChargenQuest Auto
Quest 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

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

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

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 type

unknown type ARTH_LAL_StartQuest

 

Properties are correctly set:

 

 

;BEGIN FRAGMENT CODE - Do not edit anything between this and the end comment

;NEXT FRAGMENT INDEX 1

Scriptname AAF_LAL_TIF__070FD039 Extends TopicInfo Hidden

;BEGIN FRAGMENT Fragment_0

Function Fragment_0(ObjectReference akSpeakerRef)

Actor akSpeaker = akSpeakerRef as Actor

;BEGIN CODE

ChargenQuest.SetAddonQuestStage(10, AAF_LALQuest)

;END CODE

EndFunction

;END FRAGMENT

;END FRAGMENT CODE - Do not edit anything between this and the begin comment

ARTH_LAL_StartQuest Property ChargenQuest Auto

Quest 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 Life

Then edit your SkyrimEditor.ini file:

Under [Papyrus] locate sScriptSourceFolder= and redirect it to your new directory.

Link to comment
Share on other sites

 

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

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 by Elias555
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.

×
×
  • Create New...