Jump to content

Home

Questions about scripting


R2-X2

Recommended Posts

And again questions:

 

I've got some problems with scripting, I've got only some rare lines in a dialog (for example 3 lines) and need to fire 6,7 scripts in the dialog, so question No 1:

 

  • How to combine two scripts?

 

My second question is:

 

  • How to make an "changefaction"-script with using the creature's tag?

 

And the last thing is:

 

  • How to make a creature walk to a location using X,Y,Z and orientation, so the way the creature looks is defined?

 

Well, scripting isn't my thing!:p

Link to comment
Share on other sites

Combine scripts - http://www.lucasforums.com/showthread.php?t=137370

Make NPC Move to Another Location - http://www.lucasforums.com/showthread.php?t=139381 - Just delete this line from that script

AssignCommand (oNPC,ActionDoCommand(DestroyObject(oNPC)));

To make an NPC change factions use this;

void main() {
object oNPC = GetObjectByTag("NPC_TAG", 0);

ChangeToStandardFaction(oNPC, 3);
}

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...