so i'm trying to make a script that i can use in multiple areas to help players that run solo on my server. basically a helper script is to use where your supposed to have 2-3 players in your group and need to stand on a switch or something. so here's what i got... done on lilac souls thingy.. any help would be appreciated.
here's the first script:
//Put this script OnEnter
void main()
{
object oPC = GetEnteringObject();
if (!GetIsPC(oPC)) return;
//-----------Need to check for party size here (if 1, if 2, or more------------------------------------------------------
if ((GetLevelByClass(CLASS_TYPE_BARBARIAN, oPC)>0)||
(GetLevelByClass(CLASS_TYPE_FIGHTER, oPC)>0)||
(GetLevelByClass(CLASS_TYPE_MONK, oPC)>0)||
(GetLevelByClass(CLASS_TYPE_ROGUE, oPC)>0))
{
//-----------this is supposed to be 1 or 2 rocks or whatever is needed (preferably interchangeable)-----------
oTarget = GetWaypointByTag("WP_helper_rock_1");
lTarget = GetLocation(oTarget);
oSpawn = CreateObject(OBJECT_TYPE_PLACEABLE, "plot_helper_rock", lTarget);
oTarget = oSpawn;
nInt = GetObjectType(oTarget);
//----------------VFX isn't nessisary--------------------------------------------------------------------------------------------
if (nInt != OBJECT_TYPE_WAYPOINT) DelayCommand(0.5, ApplyEffectToObject(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_FNF_SCREEN_SHAKE), oTarget));
else DelayCommand(0.5, ApplyEffectAtLocation(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_FNF_SCREEN_SHAKE), GetLocation(oTarget)));
//------------------------------------------------------------------------------------------------------------------------------------
if ((GetLevelByClass(CLASS_TYPE_BARD, oPC)>0)||
(GetLevelByClass(CLASS_TYPE_CLERIC, oPC)>0)||
(GetLevelByClass(CLASS_TYPE_PALADIN, oPC)>0)||
//------------i'm thinking there should be a check here to see if only 1 summon can be called------------------------
//------------and accommodate as needed.----------------------------------------------------------------------------------
(GetLevelByClass(CLASS_TYPE_DRUID, oPC)>0)||
(GetLevelByClass(CLASS_TYPE_RANGER, oPC)>0)||
(GetLevelByClass(CLASS_TYPE_SORCERER, oPC)>0)||
(GetLevelByClass(CLASS_TYPE_WIZARD, oPC)>0))
{
ActionStartConversation(oPC, "q_azner_in");
//--------------------i have the convesation made----------------------------------------------------------------------------------
}
}
}
here's the secon script:
void main()
{
object oPC = GetPCSpeaker();
}
yeah... i have no idea how to make summons move to set locations from a script.
thanks in advance.