What if I add a follower and put it in the active party, and remove the Jaden. Then makes another character the party leader (i.e. what happens in the Redcliffe Fade part). The latter I know it's possible to do, but I can't find the way to do it -- I have looked page up and page down after the thread where someone got answers about setting the party leader.
Will this work, given the party is fixed and the partypicker is disable troughout? And will the set leader be returned when GetHero() is called, as well as be the PLAYER in the dialogues?
EDIT: Tried something myself, this is a spawn script. "..._ext_h" is just a rename of the long script in the advanced follower tutorial. Problem is, I can't get the Jaden to dissappear and nothing happens when I hit the levelup-button (+ beside portrait).
#include "log_h"
#include "utility_h"
#include "wrappers_h"
#include "events_h"
#include "hirefollower_ext_h"
void main()
{
event ev = GetCurrentEvent();
int nEventType = GetEventType(ev);
string sDebug;
object oPC = GetHero();
object oParty = GetParty(oPC);
int nEventHandled = FALSE;
switch(nEventType)
{
case EVENT_TYPE_SPAWN:
{
object oHero = GetHero();
object oFollower = GetObjectByTag("gis_pl_1");
hireCustomFollower(oFollower, class_WIZARD, "", 0, 0, 49310, TRUE, FOLLOWER_STATE_ACTIVE, "", 0, 0, FALSE, 3, 0);
SetPartyLeader(oFollower);
SetFollowerState(oPC, FOLLOWER_STATE_UNAVAILABLE);
break;
}
}
HandleEvent(ev, RESOURCE_SCRIPT_CREATURE_CORE);
}
Modifié par Gisle Aune, 09 mai 2011 - 06:51 .





Retour en haut







