Jump to content

PRCSR scripting issue


LadyHonor

Recommended Posts

I am making a mod to add a small quest to the original campaign. I'm using this http://social.bioware.com/wiki/datoolset/index.php/PRCSCR_Script_Templates to add a NPC to Denerim. Anyway...when I use the sample script with the plot flag not set and then set the plot flag it doesn't create him. I add a journal entry just to be certain it was firing and the journal entry shows up in the journal, but no NPC. If I set use two different flags like create_npc and npc_created, it works fine. The problem with that is it creates dozens of the same npc.... one every time I enter the area. It's as if its setting the plot flag before it creates the npc or deleting him after it does it. I'm trying do this without modding the original files so it will be compatible with other mods but it has me banging my head on the desk. Ugh! Does anyone know how to fix this? Edited by LadyHonor
Link to comment
Share on other sites

the script is identical to the one in those sample scripts with my plot and character in it. the location is standing in front of the chanters board in denerim. I'm pasting this with my cell phone so I'm not certain how it will look but its a really simple script.

 

#include "wrappers_h" #include "plt_lh_activate_belumir"

void main() { //Add Belumir

if (WR_GetPlotFlag(PLT_LH_ACTIVATE_BELUMIR, SET_BELUMIR_ACTIVE) == FALSE)

{

object oTown = GetObjectByTag("den200ar_market");

vector vBelumirLocation = Vector(88.696f,13.7128f,0.0f);

CreateObject(OBJECT_TYPE_CREATURE, R"lhqftr_belumir.utc",Location(oTown, vBelumirLocation, -346.4f));

WR_SetPlotFlag(PLT_LH_ACTIVATE_BELUMIR, SET_BELUMIR_ACTIVE, TRUE);

}

}

Link to comment
Share on other sites

never mind....I found the problem. in the GDA thingie the template says to put location as any. the script fired on load of any location that way. putting the a realist name fixed it. the script now fires only the first time I enter denerim now. although Belumir is a cutie, one of him is enough. lol
Link to comment
Share on other sites

exactly. it wasn't until I added the journal entry and the loaded the game from a save in camp that I realized it wasn't waiting until I was in denerim to fire. I hate when I waste an entire weekend over something so trivial. lol this was supposed to be a simple weekend project but turned into an entire weekend just get his butt to show up. lol its a small quest to get jinxy's Alistair rose pendant enchanted. when Alistair gives it to you it activates a quest to send you to the dalish origins ruins to find an artifact. in return for doing that belumir agrees to enchant it for you and gives you jinxy's rose as a reward. hmmm...now that I think about it I need to add Alistair's mother's amulet to it too!
Link to comment
Share on other sites

  • Recently Browsing   0 members

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