ES_PRC8/_module/nss/fireportal.nss
Jaysyn904 08e84b4e71 Initial upload
Initial upload.
2023-11-14 12:09:02 -05:00

71 lines
2.3 KiB
Plaintext

void main()
{
// Move individual to new location
// location lNewLocation = GetLocation(GetObjectByTag("DrakeWP"));
object oTarget;
location lNewLocation;
string sNewLocation;
location lTarget;
object oTarget2;
location lTarget2;
if (GetTag(OBJECT_SELF)=="Flameportal1") {
sNewLocation="FlameExit1";
}
if (GetTag(OBJECT_SELF)=="Flameportal2") {
sNewLocation="FlameExit2";
}
if (GetTag(OBJECT_SELF)=="Flameportal3") {
sNewLocation="FlameExit3";
}
if (GetTag(OBJECT_SELF)=="Flameportal4") {
sNewLocation="FlameExit4";
}
if (GetTag(OBJECT_SELF)=="Flameportal5") {
sNewLocation="FlameExit5";
}
if (GetTag(OBJECT_SELF)=="Flameportal6") {
sNewLocation="FlameExit6";
}
if (GetTag(OBJECT_SELF)=="Flameportal7") {
sNewLocation="FlameExit7";
}
if (sNewLocation=="") {
sNewLocation="GehennaEnter";
}
lNewLocation = GetLocation(GetObjectByTag(sNewLocation));
//Since the script is called from a conversation
//determine who is moved by calling the GetPCSpeaker function
oTarget = GetLastUsedBy();
if (GetIsObjectValid(oTarget) == TRUE){
lTarget = GetLocation(oTarget);
AssignCommand(oTarget,ActionJumpToLocation(lNewLocation));
AssignCommand(oTarget, ApplyEffectAtLocation ( DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_FNF_SUMMON_GATE), lTarget));
// oTarget2 = GetObjectByTag(sNewLocation);
// lTarget2 = GetLocation(oTarget2);
// ApplyEffectAtLocation ( DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_FNF_SUMMON_GATE), lTarget2);
// ApplyEffectAtLocation (DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_FNF_SUMMON_GATE), lNewLocation);
ApplyEffectToObject( DURATION_TYPE_INSTANT, EffectDamage(d10(2), DAMAGE_TYPE_FIRE), oTarget);
}
else if (GetIsObjectValid(oTarget) == FALSE) {
SpeakString("Problem here");
}
}
//void FXWand_AppearEvil()
//{
// location lTarget = GetLocation( oDM);
//
// AssignCommand( oDM, ApplyEffectAtLocation ( DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_FNF_SUMMON_GATE), lTarget));
//}