Jump to content

Issues spawning Follower in Redcliffe Castle (Climax)


Recommended Posts

Hey there!

 

Long story short, I'm returning to a mod I started to make over a year ago. I'm currently having issues with the camp spawning script for Redcliffe Castle, I have Eamon's Estate and the other 3 Camps working perfectly. I've tried multiple scripts that I know work for the other areas etc so I dont think it's a script issue. I'm assuming it is an issue with the PRCSCR.gda file I am using. If I manually run the script, it works fine, obviously I dont want to manually run it by using the console.

 

The area list name I'm using in the PRCSCR.gda file is "cli300ar_redcliffe_castle" - The only thing I can think of is this is not correct?

 

I've even tried using scripts that work via GetArea such as

 

else if (GetTag(oArea) == "cli300ar_redcliffe_castle")

{
AddCommand(oFollower, cMoveFollowerRed);
WR_SetPlotFlag(PLT_GEN00PT_PARTY_SC, SAIRELLE_IN_PARTY, FALSE, FALSE);
WR_SetPlotFlag(PLT_GEN00PT_PARTY_SC, SAIRELLE_IN_CAMP, FALSE, FALSE);
}
Which works perfectly for the other camps, just NOT this one.
I have also tried this script;
#include "utility_h"
#include "wrappers_h"
#include "party_h"
#include "camp_functions_h"
#include "plt_gen00pt_party_sc"
void main()
{
object oFollower = GetObjectByTag("sc_sairelle");
vector vRed = Vector(2.56, -14.84, 0.0);
location lRed = Location(GetArea(GetHero()), vRed, -130.38);
command cMoveFollower = CommandJumpToLocation(lRed);
if(GetFollowerState(oFollower) != FOLLOWER_STATE_ACTIVE)
{
SetFollowerState(oFollower, FOLLOWER_STATE_AVAILABLE);
AddCommand(oFollower, cMoveFollower);
WR_SetObjectActive(oFollower, TRUE);
WR_SetPlotFlag(PLT_GEN00PT_PARTY_SC, SAIRELLE_IN_PARTY, FALSE, FALSE);
WR_SetPlotFlag(PLT_GEN00PT_PARTY_SC, SAIRELLE_IN_CAMP, TRUE, FALSE);
}
else
{
SetFollowerState(oFollower, FOLLOWER_STATE_AVAILABLE);
AddCommand(oFollower, cMoveFollower);
WR_SetObjectActive(oFollower, TRUE);
WR_SetPlotFlag(PLT_GEN00PT_PARTY_SC, SAIRELLE_IN_PARTY, FALSE, FALSE);
WR_SetPlotFlag(PLT_GEN00PT_PARTY_SC, SAIRELLE_IN_CAMP, TRUE, FALSE);
}
}
This works perfectly when manually run via the console. So I'm clearly having issues triggering the script to run...
Any help would be greatly appreciated as I have refused to move onto the next stage before I can complete this one xD
Edited by Montenstein
Link to comment
Share on other sites

UPDATE!!! FIXED!

 

I have fixed it!

 

So due to cli300ar_redcliffe_castle being part of an area list, PRCSCR.gda is unable to work correctly.

 

By changing "cli300ar_redcliffe_castle" to "cli03al_redcliffe_castle" (The Area List) in the PRCSCR.gda file, it works perfectly.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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