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

Dogrules23

Allies
  • Posts

    19
  • Joined

  • Last visited

Posts posted by Dogrules23

  1. This is in Quest Stages where it should be:

     

    SetObjectiveCompleted(5)
    SetObjectiveDisplayed(10)
    Alias_D23UlgronYulhhorn.GetReference().RemoveItem(Alias_D23BookLore.GetReference(), 1, False, Game.GetPlayer())
    debug.notification("Book added")

  2. I did as you said and this is what I get now:

     

    Starting 1 compile threads for 1 files...
    Compiling "QF_D23HagnonQuest_02003456"...
    C:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\temp\QF_D23HagnonQuest_02003456.psc(53,0): variable Alias_D23UlgronYulhhorn is undefined
    C:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\temp\QF_D23HagnonQuest_02003456.psc(53,24): none is not a known user-defined type
    C:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\temp\QF_D23HagnonQuest_02003456.psc(53,39): none is not a known user-defined type
    No output generated for QF_D23HagnonQuest_02003456, compilation failed.

    Batch compile of 1 files finished. 0 succeeded, 1 failed.
    Failed on QF_D23HagnonQuest_02003456
     

  3. 1 minute ago, ladyonthemoon said:

    It's preferable that you put only

    
    GetOwningQuest().SetStage(20)

    in your TIF. Put the rest on the stage 20 of your quest after adding the properties. Not sure what you want to do with your code though.

    I just changed the script to what you said and I get the same error. With that code I want to give the book the NPC has to the player.

  4. Whilst compiling a script for my Skyrim mod, I get the following message:

    Starting 1 compile threads for 1 files...
    Compiling "TIF__0200A5FA"...
    C:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\temp\TIF__0200A5FA.psc(19,14): script property D23LoreBook already defined
    C:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\temp\TIF__0200A5FA.psc(19,14): script variable ::D23LoreBook_var already defined
    C:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\temp\TIF__0200A5FA.psc(19,14): script property D23LoreBook already has a get function defined
    C:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\temp\TIF__0200A5FA.psc(19,14): script property D23LoreBook already has a set function defined
    No output generated for TIF__0200A5FA, compilation failed.

    Batch compile of 1 files finished. 0 succeeded, 1 failed.
    Failed on TIF__0200A5FA
     

     

    Here is my script:

    GetOwningQuest().SetStage(20)
    Alias_D23UlgronYulhhorn.GetReference().RemoveItem(Alias_D23BookLore.GetReference(),1,False,Game.GetPlayer())
    debug.notification("Book added")

  5. I fixed that but now I need something to recognize when the book is picked up. I did find this:

     

    ScriptName SetStageOnPlayerPickUp Extends ObjectReference
    
    Actor Property PlayerREF Auto
    Quest property QuestToSet Auto
    Int Property iStageToSet Auto
    
    Event OnContainerChanged(ObjectReference akNewContainer, ObjectReference akOldContainer)
    	If akNewContainer == PlayerREF
    		QuestToSet.SetStage(iStageToSet)
    		GoToState("Taken")
    	EndIf
    EndEvent
    
    State Taken
    	; Do nothing
    EndState

    I'm not sure where it goes though.

  6. Now that I have that book placed, I need to add in a quest objective that sends the player to get the book. Before, the player would talk to the NPC then be directed to the dungeon. I made sure the index number for the new objective was between the start up and the first objective but I'm not sure how to make it so that you talk to the NPC then are directed to the book.

  7. I am making a quest mod and creating lore for the dungeon but I can't place it anywhere and have it available to take. I have in in Belethor's shop right now but when I read it it says that I can steal it. I don't want to have the player steal it. I want it to be able to be taken without stealing but I can't get it to work. Thanks in advance!

×
×
  • Create New...