Jump to content

Lanna from Tevinter Warden keeps spawning


Recommended Posts

Good day to all. Was just wondering if this is bug that already exists or I broke something? Everytime I enter the chantry in lothering, even if I did not recruit her, instances of Lanna keeps spawning there.

 

Tried to create new dialogue lines, new morph and new equipment for her and the other 3 companions (Willam, Marric, Martin), and placed it in the override folder. Even when returned to normal this keeps happening.

 

The other 3 (Willam, Marric, Martin) doesn't have this bug though.

 

Did not fiddle anything from the mod source files; just took referenced from them and all replacement were made from scratch. Any insight would be appreciated. TIA.

Link to comment
Share on other sites

Sorry for the trouble sir Thandal. Please move this topic to where you think it really belongs. Thank you very much. :yes:

 

 

Good news is, I found a remedy to the problem. I think. It needs some modification to the ldp_lanna_spawn script. I'll try to share some findings if it is ok:

 

 

This is the part of the code:

 

(I think this is a layout shared by Satans_karma from "http://social.bioware.com/wiki/datoolset/index.php/User:Satans_karma")

void main()
{
object oArea = GetObjectByTag("lot110ar_chantry");
vector vLocation = Vector(-5.06298, -0.181137, 0.0); //change these numbers to the ones you found
if (WR_GetPlotFlag(PLT_GEN00PT_PARTY_LANNA, GEN_LANNA_CREATED) == FALSE)
{
CreateObject(OBJECT_TYPE_CREATURE, R"gen00fl_lanna.utc", Location(oArea, vLocation, 0.0f));
WR_SetPlotFlag(PLT_GEN00PT_PARTY_LANNA, GEN_LANNA_CREATED, TRUE);
}
}
First test was to change the "lot110ar_chantry" to "lot100ar_lothering", changed the coordinates where Lanna would spawn, then edited the prcscr_ldp_warden.gda to make the script run in the area. It worked fine, no respawning occured.
I wonder if this has something to do with what Satans_karma have noted:
"NOTE: You cannot (as far as I know) use PRCSCR to spawn creatures in areas that are included in an area list but are not the first area entered on that list. For example, you can spawn a creature in the marketplace in Denerim (because it's usually the first area of Denerim to be entered), but you cannot spawn a creature in the Wonders of Thedas shop (because you had to go through the marketplace to get there)."

 

 

 

 

The last fiddling was to get back to the original code, move a line outside and this did the trick:

 

 

if (WR_GetPlotFlag(PLT_GEN00PT_PARTY_LANNA, GEN_LANNA_CREATED) == FALSE)
{
CreateObject(OBJECT_TYPE_CREATURE, R"gen00fl_lanna.utc", Location(oArea, vLocation, 0.0f));
}
WR_SetPlotFlag(PLT_GEN00PT_PARTY_LANNA, GEN_LANNA_CREATED, TRUE); // <----- Moved this line outside the "if" process.
}
Will continue to test if it will occur again.
For now, no more respawning occured inside the chantry. Many thanks to Satans_karma's references and the creator of Tevinter Warden mod. :thumbsup:
Edited by vpulse08
Link to comment
Share on other sites

  • Recently Browsing   0 members

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