EDIT: also what would I have to do to have a VFX placeable spawn as the NPCs teleport? I assume it'd be a similar script?
Modifié par uberdowzen, 10 novembre 2010 - 03:52 .
Modifié par uberdowzen, 10 novembre 2010 - 03:52 .
//get area somehow - this assumes the caller is in the same area
object oArea = GetArea(OBJECT_SELF);
//enter your coordinates from your toolset read
float fX = 10.0;//x coord
float fY = 15.5//y coord
float fZ = 0.0//z coord
vector vVec = Vector(fX, fY, fZ);
float fFacing = 0.0;//I'm assuming you don't care much which way he spawns in facing - this can get tricking as scripted facing is 90 degrees off from toolset facing
//and voila, we have the location, no waypoint needed
location lLoc = Location(oArea, vVec, fFacing);
//of course, you can always just do it with a waypoint:
object oWay = GetObjectByTag("TAGOFWAYPOINT");//I'm not a fan of this function, but it serves for this example
location lLoc2 = GetLocation(oWay);
//From there you just spawn in the creatures, using CreateObject
object oSpawn1 = CreateObject(OBJECT_TYPE_CREATURE, "resref_of_beast", lLoc2);
Modifié par FunkySwerve, 10 novembre 2010 - 04:09 .
Modifié par Mudeye, 12 novembre 2010 - 10:45 .
void main()
{
int nEvent = GetUserDefinedEventNumber();
if (nEvent == 1004)
{
object oPC = GetPCSpeaker();
object oYastiang = OBJECT_SELF;
object oArea;
oArea = GetArea(oYastiang);
string sArea = GetTag(oArea);
if (sArea == "S_raunchyrodent")
{
ActionStartConversation(oPC, "con_yastiang");
}
else if (sArea == "S_forest_lodge")
{
ActionStartConversation(oPC, "con_yastiang2");
}
else if (sArea == "S_sleepydragonpub")
{
ActionStartConversation(oPC, "con_yastiang3");
}
else if (sArea == "S_trneareastroad")
{
ActionStartConversation(oPC, "con_yastiang4");
}
else if (sArea == "S_sunset_1")
{
ActionStartConversation(oPC, "con_yastiang5");
}
}
}
Modifié par Ulo Ironbeard, 03 décembre 2010 - 04:52 .