(1) The doppelgangers spawn properly if I load a save from within the gauntlet, but they won't spawn if I enter the gauntlet area from the mountain top. The gauntlet is not part of an area list as far as I can tell.
(2) The transparency effect won't work. I've never used effects before, so I merely copied the effect used by the URN_SetupDoppelgangers() function in urn_functions_h.
[dascript]
#include "utility_h"
#include "wrappers_h"
#include "urn_constants_h"
#include "gen00pt_party_kc"
void main()
{
object oCullen = GetObjectByTag("kc_cir230cr_cullen");
object oGorim = GetObjectByTag("kc_bdn120cr_gorim");
object oGilmore = GetObjectByTag("kc_bhn100cr_gilmore");
object oCullend = GetObjectByTag("kc_urn230cr_cullen");
object oGorimd = GetObjectByTag("kc_urn230cr_gorim");
object oGilmored = GetObjectByTag("kc_urn230cr_gilmore");
//Doppelganger Cullen's position
vector vCullen = Vector(78.9843f, -6.40222f, 0.000986939f);
location lCullen = Location(GetArea(GetHero()), vCullen, 90.0f);
//Doppelganger Gorim's position
vector vGorim = Vector(78.5242f, -9.47942f, 0.011455f);
location lGorim = Location(GetArea(GetHero()), vGorim, 90.0f);
//Doppelganger Gilmore's position
vector vGilmore = Vector(79.9954f, -5.62986f, 0.000986939f);
location lGilmore = Location(GetArea(GetHero()), vGilmore, 90.0f);
effect eTransparent = Effect(EFFECT_TYPE_ALPHA);
eTransparent = SetEffectEngineFloat(eTransparent, EFFECT_FLOAT_POTENCY, 0.5);
//if (! IsObjectValid(oCullend))
CreateObject(OBJECT_TYPE_CREATURE, R"kc_urn230cr_cullen.utc", lCullen);
ApplyEffectOnObject(EFFECT_DURATION_TYPE_PERMANENT, eTransparent, oCullend);
CreateObject(OBJECT_TYPE_CREATURE, R"kc_urn230cr_gorim.utc", lGorim);
ApplyEffectOnObject(EFFECT_DURATION_TYPE_PERMANENT, eTransparent, oGorimd);
CreateObject(OBJECT_TYPE_CREATURE, R"kc_urn230cr_gilmore.utc", lGilmore);
ApplyEffectOnObject(EFFECT_DURATION_TYPE_PERMANENT, eTransparent, oGilmored);
if(GetFollowerState(oCullen) != FOLLOWER_STATE_ACTIVE)
{
SetObjectActive(oCullend, FALSE);
}
if(GetFollowerState(oGorim) != FOLLOWER_STATE_ACTIVE)
{
SetObjectActive(oGorimd, FALSE);
}
if(GetFollowerState(oGilmore) != FOLLOWER_STATE_ACTIVE)
{
SetObjectActive(oGilmored, FALSE);
}
}
[/dascript]
Modifié par satans_karma, 30 octobre 2010 - 05:01 .





Retour en haut







