Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 06-20-2001, 02:51 AM
JungleKid JungleKid is offline
Guest
JungleKid's Avatar
Join Date: Apr 2001
Location: Sussex, NJ
Posts: 782
JungleKid is on a distinguished road
Send a message via ICQ to JungleKid Send a message via AIM to JungleKid
Help with scripting

How do I add something on to everything a player says, so say I wanted to put "blah blah" on the end of each message?
Reply With Quote
  #2  
Old 06-20-2001, 03:52 AM
General General is offline
Banned
Join Date: Apr 2001
Location: Station Square
Posts: 984
General is on a distinguished road
Send a message via ICQ to General Send a message via AIM to General Send a message via Yahoo to General
if (!startswith(#c,Blah)) {
setcharprop #c,Blah #c Blah;
}

that should work, I think thats how newmain does it
Reply With Quote
  #3  
Old 06-20-2001, 06:07 PM
grim_squeaker_x grim_squeaker_x is offline
Retired Oldbie
grim_squeaker_x's Avatar
Join Date: Mar 2001
Posts: 3,084
grim_squeaker_x will become famous soon enough
Well that's basically this:
NPC Code:
if (playerchats) setplayerprop #c,#c blah blah;

__________________

Reply With Quote
  #4  
Old 06-20-2001, 10:36 PM
General General is offline
Banned
Join Date: Apr 2001
Location: Station Square
Posts: 984
General is on a distinguished road
Send a message via ICQ to General Send a message via AIM to General Send a message via Yahoo to General
Oh, i thought you said ends, not end
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 09:20 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.