View Full Version : Questions about scripting

04-30-2009, 10:45 AM
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

04-30-2009, 11:10 AM
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);

05-02-2009, 02:52 AM
Thank you! I was wondering there were so many scripts but no one to move NPCs.