#perl is now open for your questions.
Hi all!.Have you got a question,suggestion,or feature request?Come to #perl channel and give your opinion!.All people are welcome,come and ask/help people.
See you there :twisted: . |
Is it possible to add a function that copies what the PC says and then the NPC can quote it back?
For example, Player says "Diet Coke sucks." NPC says, "Diet Coke sucks?" |
u cant quote it,but you can send a message with color.
try the message command with style 0,3,5,etc...,you can add a perl function that calls message command.Use my guide to make it :) |
Actually, it is possible. HOWEVER, I do NOT suggest using this with an NPC you actually intend to use for quests, because it may cause issues with triggering various sections of the quest, if not all of it. Using this to add life to a zone would be a nice touch though. Maybe have some crazy npc that repeats what everyone says.
Code:
sub EVENT_SAY{ |
You make NPC repeat PC text by using a perl script that will txt log what is being said to a NPC, this way later, NPC will be able to have a memory of what you said to him and it will just have to read this log to remember.
|
Well that works too, but you have to be careful with that. Someone could probably abuse it and a log file could get pretty big...
|
All times are GMT -4. The time now is 12:46 PM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.