Jump to content

NPC Scripting Help!!


erican_lord

Recommended Posts

OK MySelf Along With A Few Others, Are Working on A Mod Called Elyraidas Islands. (See My Signature) But I Need Some Help With A Few Things. My Main Worry Is NPC Scripting And AI.

 

/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\

 

NPC SCRIPTING:

 

I Need The 3 Kinds Of Guards To Have A Companion Option In Their Topics.

 

Their ID's Are

0APGuardNPC

1APGuardNPC

2APGuardWriter

 

The Guard 0's Are Warriors, The Guard 1's Are Archers, And The Guard Writer (there is only one) is a personal guard.

 

I Want To Script It So When You Talk To Them You Can Select Escort, And Choose Follow, Wait, Or Go To Post.

 

  • Wait Makes Them Wait In The Position They Are At Now
  • Follow Makes Them Follow You Around The Elyraidas islands Worldspace Only
  • And Go To Post Makes Them Go Back To The Castle Back To Thier Origional Post

 

There Are About 4 Archers, 20 Warriors, And 1 Personal Guard. Each Archer And Warrior Will Have Respective Ref ID's for each guard (EX - 0APGuardNPC01, 0APGuardNPC02, 1APGuardNPC01, 1APGuardNPC02, etc.)

 

But The Go To Post I Am Not Worried About I Just need To Know The Scripting I Need To Add the Option Escort, With The Choices Wait And Follow.

 

/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\

 

VOICE ACTOR:

 

MALE #1

 

Yes My Lord? You Require Something?

 

AND

 

Yes You Would Like Me To Escort You?

 

Wait -

Yes Lord, I Will Wait Here

 

Follow -

I Will Follow Your Every Footstep My Lord.

 

MALE #2

Yes My Lord?

 

FEMALE

 

Yes My Lord?

 

/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\

 

More Voices Will be Coming Soon!!

 

/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\

 

NPC AI

 

PM ME FOR INFO

 

/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\

 

If You Can help Me With Any of These Jobs Please Reply, PM Me, Or Email me!!

 

/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\

Link to comment
Share on other sites

Here is a good tutorial: Simple Companion Tutorial

 

What you want to do sounds like it would be more like creating custom AI packages rather than scripting per se. For your purposes, follow would probably be better than escort, and wander would make them go to their posts.

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...