#include "events_h"
#include "global_objects_h"
#include "utility_h"
#include "wrappers_h"
Where else should I look to fix these problems?
Modifié par Qutayba, 08 mars 2010 - 04:43 .
Modifié par Qutayba, 08 mars 2010 - 04:43 .
Modifié par wyvern14, 27 février 2010 - 06:02 .
Modifié par Qutayba, 07 mars 2010 - 08:35 .
Modifié par Qutayba, 07 mars 2010 - 10:05 .
Modifié par Magic, 07 mars 2010 - 10:15 .
hireCustomFollower(object oFollower, int nForceclass, string sPlot = "", int nPlotFlag = 0, int nForceSpec = 0, int nALTable = 0, int bInvokePicker = FALSE, int nInitialState = FOLLOWER_STATE_AVAILABLE, string sCurrPlot = "", int nCurrPlotFlag = 0, int nAutolevel = 0, int bFreeSpecPoint = TRUE, int nTargetLevel = 0, int nMinLevel = 0)
void main() {
object oFollower = GetObjectByTag("wh_comp_callum");
//WR_SetPlotFlag(PLT_WH_PARTY_STATUS, CALLUM_JOINED, TRUE);
//UT_HireFollower(oFollower);
//WR_SetFollowerState(oFollower, FOLLOWER_STATE_LOCKEDACTIVE);
WR_SetPlotFlag(PLT_WH_PARTY_STATUS, CALLUM_ACTIVE, TRUE);
hireCustomFollower(oFollower, class_WIZARD, PLT_WH_PARTY_STATUS, CALLUM_JOINED, ABILITY_SPELL_HIDDEN_SHAPESHIFTER, 0, FALSE, FOLLOWER_STATE_LOCKEDACTIVE);
SetPartyPickerGUIStatus(2);
ShowPartyPickerGUI();
}
case EVENT_TYPE_PARTYMEMBER_ADDED:
{
object oFollower = GetEventObject(ev, 0);
SetLocalInt(oFollower, CREATURE_REWARD_FLAGS, 0);
AddCommand(oFollower, CommandJumpToLocation(GetLocation(GetHero())));
SetFollowerState(oFollower, FOLLOWER_STATE_ACTIVE);
if (GetTag(oFollower) == "wh_comp_callum") {
WR_SetPlotFlag(PLT_WH_PARTY_STATUS, CALLUM_ACTIVE, TRUE);
}
void main() {
object oFollower = GetObjectByTag("wh_comp_callum");
object oWp = GetObjectByTag("wh_stand_callum");
location lWp = GetLocation(oWp);
WR_SetPlotFlag(PLT_WH_PARTY_STATUS, CALLUM_ACTIVE, FALSE);
//UT_FireFollower(oFollower, FALSE, FALSE);
WR_SetFollowerState(oFollower, FOLLOWER_STATE_AVAILABLE);
AddCommand(oFollower, CommandMoveToLocation(lWp, FALSE, FALSE));
}
case EVENT_TYPE_PARTYMEMBER_ADDED:
{
object oFollower = GetEventObject(ev, 0);
SetLocalInt(oFollower, CREATURE_REWARD_FLAGS, 0);
AddCommand(oFollower, CommandJumpToLocation(GetLocation(GetHero())));
SetFollowerState(oFollower, FOLLOWER_STATE_ACTIVE);
if (GetTag(oFollower) == "wh_comp_callum") {
WR_SetPlotFlag(PLT_WH_PARTY_STATUS, CALLUM_ACTIVE, TRUE);
}
Modifié par Obadiah, 12 juillet 2011 - 05:01 .
I came to the same conclusion after encountering similar issues recently.Obadiah wrote...
Gonna use the WR_SetFollowerState() function.