UPDATE #1:
- The followers' integers are in fact being set into the module variables, so the CIR_SetInFade function is working properly (I believe).
- I found another instance where CIR_JumpToFadeFollower function is used (in map_events_h) and changed that to my custom function.
However, I still can't get the map pin to transport me to the proper companion's nightmare area. Does anyone know of any other scripts that would use CIR_JumpToFadeFollower?
UPDATE #2:
I added the script below to my module script, and something different happened. Instead of not going anywhere when I click on one of the companion map pins, now I get to an infinite loading screen (though the screen no longer has the fade map interface). I don't know if that's progess or not. Anyone have any suggestions?
UPDATE #3:
Yay! Progress. The script below will now transport the player to the companion area, but
the companion is missing, the pedestal won't let me exit, and the fade map interface still disappears when I click on the map pin.
I can probably fix the first two issues, but how do I get the interface back to normal?
EDIT: Is there any way to specify which of the three Fade_Follower areas I want? sArea only spits out "Fade_Follower," but there's three of them with that same area tag. Having it set up in that order without the exact tag for the area causes some map problems that are work-around-able but still very annoying. Nevermind - figured it out.
UPDATE #4:
The fade map is now working properly, but I still need two questions answered: (1)
What function makes the area transition loading screen show up after clicking a map pin (or which function in the script below causes it not to show up)? and (2)
Are the CIR_FADE_FOLLOWER_1/2/3 variables used elsewhere in the game for anything?[dascript]
case EVENT_TYPE_BEGIN_TRAVEL:
{
string sSource = GetEventString(ev, 0); //area tag source location
string sTarget = GetEventString(ev, 1); // area tag target location
string sWPOverride = GetEventString(ev, 2); // waypoint tag override
object oTarget = GetEventObject(ev, 1);
string sArea = GetLocalString(GetModule(), WM_STORED_AREA);
string sWP = GetLocalString(GetModule(), WM_STORED_WP);
//object oMap = GetObjectByTag(WM_FAD_TAG);
//GetMapPinState(oMapPin);
if(sArea == "Fade_Follower" && GetLocalInt(GetModule(), CIR_FADE_FOLLOWER_1) == 690032)
{
SetLocalString(GetModule(), "WM_STORED_AREA", CIR_AR_GORIM);
SetLocalString(GetModule(), "WM_STORED_WP", CIR_WP_FADE_GORIM);
}
if(sArea == "Fade_Follower" && GetLocalInt(GetModule(), CIR_FADE_FOLLOWER_1) == 690033)
{
SetLocalString(GetModule(), "WM_STORED_AREA", CIR_AR_GILMORE);
SetLocalString(GetModule(), "WM_STORED_WP", CIR_WP_FADE_GILMORE);
}
if(sArea == "Fade_Follower" && GetLocalInt(GetModule(), CIR_FADE_FOLLOWER_2) == 690032)
{
SetLocalString(GetModule(), "WM_STORED_AREA", CIR_AR_GORIM);
SetLocalString(GetModule(), "WM_STORED_WP", CIR_WP_FADE_GORIM);
}
if(sArea == "Fade_Follower" && GetLocalInt(GetModule(), CIR_FADE_FOLLOWER_2) == 690033)
{
SetLocalString(GetModule(), "WM_STORED_AREA", CIR_AR_GILMORE);
SetLocalString(GetModule(), "WM_STORED_WP", CIR_WP_FADE_GILMORE);
}
if(sArea == "Fade_Follower" && GetLocalInt(GetModule(), CIR_FADE_FOLLOWER_3) == 690032)
{
SetLocalString(GetModule(), "WM_STORED_AREA", CIR_AR_GORIM);
SetLocalString(GetModule(), "WM_STORED_WP", CIR_WP_FADE_GORIM);
}
if(sArea == "Fade_Follower" && GetLocalInt(GetModule(), CIR_FADE_FOLLOWER_3) == 690033)
{
SetLocalString(GetModule(), "WM_STORED_AREA", CIR_AR_GILMORE);
SetLocalString(GetModule(), "WM_STORED_WP", CIR_WP_FADE_GILMORE);
}
PrintToLog("********************************" + GetLocalString(GetModule(), WM_STORED_AREA) + "***************************************");
PrintToLog("********************************" + GetLocalString(GetModule(), WM_STORED_WP) + "***************************************");
WorldMapStartTravelling();
break;
}
[/dascript]
Modifié par satans_karma, 02 novembre 2010 - 12:23 .