Jump to content

Quick Questions, Quick Answers


Mattiewagg

Recommended Posts

 

  Reveal hidden contents

I can see where your script is going wrong. GetSize() returns an integer count of the total number of entries in the form list. You use GetAt() to work with a specific entry.

Your lines:

ConstructibleObject CurrentRecipe = LCCA_DGIngredientRecipesFlist.GetSize()
CurrentRecipe.SetResult("DragonflyBlue")

Become:

Int RecipeListCount = LCCA_DGIngredientRecipesFlist.GetSize()
While RecipeListCount >= 0
  RecipeListCount -= 1
  ConstructibleObject CurrentRecipe = LCCA_DGIngredientRecipesFlist.GetAt(RecipeListCount)
  CurrentRecipe.SetResult("DragonFlyBlue")
EndWhile

I got the position of the subtraction wrong in the earlier example. When you are using a variable that starts with the total number of entries, you have to subtract one first because the GetSize() function returns the total count starting at 1 yet GetAt() uses an index count starting at 0.

Link to comment
Share on other sites

  • Replies 2.6k
  • Created
  • Last Reply

Top Posters In This Topic

  On 11/5/2016 at 5:23 AM, IsharaMeradin said:

 

  Reveal hidden contents

 

I can see where your script is going wrong. GetSize() returns an integer count of the total number of entries in the form list. You use GetAt() to work with a specific entry.

Your lines:

 

  Reveal hidden contents

 

Ok got that working, thank you. However, now the swap isn't working in game any ideas?

Edited by LadyCrystyna
Link to comment
Share on other sites

  On 11/5/2016 at 12:24 PM, LadyCrystyna said:

 

  On 11/5/2016 at 5:23 AM, IsharaMeradin said:

 

  Reveal hidden contents

 

I can see where your script is going wrong. GetSize() returns an integer count of the total number of entries in the form list. You use GetAt() to work with a specific entry.

Your lines:

 

  Reveal hidden contents

 

Ok got that working, thank you. However, now the swap isn't working in game any ideas?

It was late when I replied. There might need to be a cast.

ConstructibleObject CurrentRecipe = LCCA_DGIngredientRecipesFlist.GetAt(RecipeListCount) as ConstructibleObject

 

Reason I say this is that the form list, lists the forms but doesn't list the type of form. If that doesn't help, test on a new game if you haven't been already. And if that doesn't help, I'm just as clueless as you are.

Link to comment
Share on other sites

So say I build the mod with DLC, can it be run without DLC being installed. I didn't remove the DLC masters, loaded it in the game without the DLC enabled. Game and mod loaded fine, had no issues or are my files bugged.

 

I thought if the mod required the DLC then without it wouldn't load.

Link to comment
Share on other sites

  On 11/5/2016 at 6:40 PM, LadyCrystyna said:

So say I build the mod with DLC, can it be run without DLC being installed. I didn't remove the DLC masters, loaded it in the game without the DLC enabled. Game and mod loaded fine, had no issues or are my files bugged.

 

I thought if the mod required the DLC then without it wouldn't load.

Are you modding original Skyrim or SSE? If SSE, as I understand it, the game will re-enable all the DLC. If original Skyrim, the game should have crashed.

Link to comment
Share on other sites

  On 11/5/2016 at 11:08 PM, IsharaMeradin said:

 

  Reveal hidden contents

 

Original Skyrim, not SSE. It didn't crash with the DLC disabled through mod organizer. Was the MCM version I've been working on, I had the mod checks running for DLC though.

Edited by LadyCrystyna
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.

×
×
  • Create New...