few questions about NPC and their speech

Trying to make a script in TUS 48e and need an answer or two? Ask here. Please don't request scripts be made here.

Moderators: Dezonus, Moderator

few questions about NPC and their speech

Postby Pendule on Fri Dec 10, 2004 1:39 am

Hi!

I've tried the ON=@SEENEWPLAYER event as it is written on the tutorial from this forum and the one from Quickening's site, none of them have worked. I tried the werewolf script by barkley (by Theol Admin Dark) and still, no event. I've tried it by creating the NPC with my AD and logging with a player account and entering its screen.

I've also noticed that on some tutorials they use TEVENT instead of TEVENTS. Does it matters?

If you have any idea of what could be my problem, I would enjoy your advices :) thx
Pendule
n00b
n00b
 
Posts: 3
Joined: Thu Dec 09, 2004 11:40 pm

Postby Pendule on Sun Dec 12, 2004 11:08 pm

Does anyone knows how to set the [SPEECH] section in SPHERETables.scp?

I only have
Code: Select all
[SPEECH]
// Assign names to the speech blocks and files.


and I couldn't find any information on that.
Pendule
n00b
n00b
 
Posts: 3
Joined: Thu Dec 09, 2004 11:40 pm

Postby Broadband on Tue Dec 14, 2004 7:27 am

Make a file in your speech directory that fits the purpose. For example this file is vendor.scp

Code: Select all
ON=@SeeNewPlayer
   if ( <DISTANCE> > 5 )   // too far away ?
          return 1   // do nothing for now
   ENDIF
   FACE
   SAY Equipment for sale
   SAY I have some of the best deals in the area
   RETURN 0


Then you need to add the new speech to your tables.scp file. Here is mine for example. Note that vendor shows up in that list

Code: Select all
[EVENTS]
eacceptitem
erefuseitem
escavenger
einternalspace
evilguards
orderguards
killed
monster
guards
packanimal
resist
eNecro
eUndeadRage
eSummoned
townshopkeep
santa


Then you add the event to the npc. Here is my vendor. Notice the line that says TEVENTS=vendor

Code: Select all
[4001]
NAME=#HUMANMALE the Vendor
ID=MALE
COLOR=all_skin_colors
HIREDAYWAGE=100
NEED=gold
EVENTS=internalspace
STR=500
DEX=90
INT=66-80
FENCING=15.0-38.0
PARRYING=45.0-68.0
SWORDSMANSHIP=15.0-38.0
WRESTLING=15.0-38.0
MACEFIGHTING=15.0-38.0
MAGICRESISTANCE=45.0-68.0
TACTICS=45.0-68.0
NPC=brain_vendor
FLAGS=010000241
FOOD=40
CAN=0
TEVENTS=vendor
SPEECH=534
SPEECH=acceptitem
SPEECH=convbye
SPEECH=convinit
SPEECH=greetings
SPEECH=internalspace
SPEECH=needresponse
SPEECH=needs
SPEECH=refuseitem
SPEECH=rehello
FOODTYPE=NONE
ITEM=06405
ATTR=04
ITEM=male_hair
COLOR=all_hair_colors
ITEM=facial_hair
COLOR=match_hair
ITEM=plain_shirt
COLOR=all_colors
ITEM=plain_pants
COLOR=all_colors
ITEM=random_shoes
COLOR=neutral_colors
ITEM=random_coin_purse
CATEGORY=Civilized
SUBSECTION=Tradesman
DESCRIPTION=Player Vendor Male
Broadband
Happy poster
Happy poster
 
Posts: 22
Joined: Mon Aug 16, 2004 8:23 am

Postby Pendule on Thu Dec 16, 2004 2:42 am

It turns out my speech folder was in scripts\... I reside in shame.
Thanks for the help, still very helpful.
Pendule
n00b
n00b
 
Posts: 3
Joined: Thu Dec 09, 2004 11:40 pm


Return to TUS48e/Sphere51a help

Who is online

Users browsing this forum: No registered users and 0 guests

cron