Jump to content

Home

A few scripts


Mindtwistah

Recommended Posts

Can someone post these scripts?:

 

A script that makes an NPC vanish, not move to a location and vanish.

 

A script that makes someone shot lightining on another ( For a dialog )

 

A script that makes someone die ( For a dialog )

 

A script that makes someone walk to another NPC during a dialog

Link to comment
Share on other sites

Can someone post these scripts?:

 

Something like these might work. Change the tags inside the GetObjectByTag() calls to the tags of the NPCs you want to be affected.

 

A script that makes an NPC vanish, not move to a location and vanish.

 

void main() {
   DestroyObject(GetObjectByTag("TagOfSomeone"));
}

 

A script that makes someone shot lightining on another ( For a dialog )

 

void main() {
   object oCaster = GetObjectByTag("TagOfSomeone");
   object oVictim = GetObjectByTag("TagOfVictim");

   ActionPauseConversation();
   AssignCommand(oCaster, ClearAllActions());
   AssignCommand(oCaster, ActionUseTalentOnObject( TalentSpell(FORCE_POWER_LIGHTNING), oVictim));
   ActionResumeConversation();
}

 

A script that makes someone die ( For a dialog )

 

void main() {
   object oDeadmeat = GetObjectByTag("TagOfSomeone");
   ApplyEffectToObject(DURATION_TYPE_INSTANT, EffectDeath(), oDeadmeat);
}

 

A script that makes someone walk to another NPC during a dialog

 

void main() {
   object oSomeone = GetObjectByTag("TagOfSomeone");
   object oAnother = GetObjectByTag("TagOfAnother");

   ActionPauseConversation();
   AssignCommand(oSomeone, ClearAllActions());
   AssignCommand(oSomeone, ActionForceMoveToObject(oAnother));
   ActionResumeConversation();
}

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...