Jump to content

Home

script to change npcs shape (morphing)


Darth333

Recommended Posts

I thought some people might be interested in this script for their mods. The script changes the npc (or Pc) shape (morphing) during conversations. Added some visual effects too. :)

 

/*
   Turns whoever you want into a gizka
*/

void main() 
{
ActionPauseConversation();
object oNPC;
oNPC = OBJECT_SELF;
effect eDisg = EffectDisguise(DISGUISE_TYPE_C_GIZKA);
ApplyEffectToObject(DURATION_TYPE_PERMANENT,eDisg,oNPC); 
effect eBeam = EffectBeam(2038, OBJECT_SELF, BODY_NODE_HEAD); 
effect eMorph=EffectVisualEffect(1046);
ApplyEffectToObject(DURATION_TYPE_TEMPORARY, eBeam, oNPC, 5.0);
DelayCommand(0.02, ApplyEffectToObject(DURATION_TYPE_TEMPORARY, eMorph, oNPC, 5.5));
ActionResumeConversation();
}

 

Just change the disguise as you wish. You can turn an NPC into (almost) whatever you want, even an iriaz. Just look at nwscript to find about 300 possibilities under DISGUISE_TYPE_. You can also use DURATION_TYPE_PERMANENT instead of temporary.

I'll try to make a force power out of this.:D

Link to comment
Share on other sites

Originally posted by pascalneder009

dumb question but i never tried this, where do i have to paste this script?

 

Paste the script into your notepad and give it a .nss extension.

Then you have to compile the script. Use HazardX script compiler/decompiler available here: http://www.megamods.de/_data/parts/dl.php?file=37

 

Finally, you can attach it to a dlg file.

Link to comment
Share on other sites

Further to some requests, here is a sample mod of how to use the script:

http://mars.walagata.com/w/darth333/duncmorph.rar

 

The script is attached to entry no. 4 of the dialog of the Republic officer who greets you on Manaan. Consequently, the script will only fire if you go to Manaan for the first time. (You can warp there if you want "manm26ad" ) The script also spawns Deadeye Duncan past the second set of doors at the same time. SOurce included.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...