Jump to content

[LE] Script not firing in game


Recommended Posts

Should I keep making new threads as I keep running into issues or should I make a dedicated thread for the mod I'm working on? I don't wanna clutter up the forum and I feel self conscious about always asking for help hahah.

 

So I banged together a script to add the appropriate items to the appropriate formlists to make a new ingredient plantable for HF, since if I just added it manually it would create compatibility issues with other mods that edit those formlists. But for some reason it's not firing in-game, but it's compiling alright.

Scriptname SB_AddSkooma2Form extends quest 
{Adds Mooncane and Moonsugar to the appropriate form lists for Hearthfire}

Ingredient property SB_MoonCaneIGR Auto
Flora property SB_MoonCAne Auto
Formlist property flPlanterPlantableItem Auto
Formlist property flPlanterPlantedFlora Auto

Event OnInit()
  debug.messagebox ("Okay, I'm loading boss!")
  flPlanterPlantableItem.addform(SB_MoonCaneIGR)
  flPlanterPlantedFlora.addform(SB_MoonCane)
endEvent
Link to comment
Share on other sites

Is the quest starting? You can check with this console command:

sqv questname

For what this quest is doing, it should probably ticked to Run On Game Start and also Run Once to avoid having the OnInit fire twice on you. If the quest isn't starting, not having Run On Start ticked is the most likely culprit. Second possibility is, if your quest has non-optional, conditionally-filled aliases, that one or more of them isn't being filled, which will prevent the quest from starting.

Edited by foamyesque
Link to comment
Share on other sites

Putting it in it's own quest seems to let it fire properly, the aliases in quest A are also working properly as far as I can tell so I'm not sure what the hold up was?

 

Also it's firing but it's just not doing what it's supposed to. Debug pops up fine but I still can't plant the new ingredient, does the code look alright?

 

Edit: Never mind I had just forgotten to add the item to my inventory like an idiot.

Edited by SevenBlue
Link to comment
Share on other sites

  • Recently Browsing   0 members

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