Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting > New Scripting Engine (GS2)
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 01-08-2006, 01:01 PM
jake13jake jake13jake is offline
Former Classic Staff
jake13jake's Avatar
Join Date: Dec 2002
Location: Northwest Vermont
Posts: 1,452
jake13jake will become famous soon enough
say2 functionality

How would you do
#u, #d, #l, #r, or #i() for say2() in gs2 is what I'm wondering.
Reply With Quote
  #2  
Old 01-09-2006, 06:00 AM
ApothiX ApothiX is offline
Okiesmokie
Join Date: May 2004
Posts: 1,447
ApothiX is on a distinguished road
Quote:
Originally Posted by jake13jake
How would you do
#u, #d, #l, #r, or #i() for say2() in gs2 is what I'm wondering.
I don't think any of those change whether you're doing it in gscript1 or gscript2. I could be wrong though :x
__________________


[06:24:19] * Parts: Skyld (i=silent@unaffiliated/skyld) ("Perhaps Okiesmokie did not realise that I like the boys. ")
Reply With Quote
  #3  
Old 01-09-2006, 06:44 AM
jake13jake jake13jake is offline
Former Classic Staff
jake13jake's Avatar
Join Date: Dec 2002
Location: Northwest Vermont
Posts: 1,452
jake13jake will become famous soon enough
Well, they're not in the wiki at all, and I had trouble getting #i to work. Also, is there any way to to turn off a say2?
Reply With Quote
  #4  
Old 01-09-2006, 09:27 AM
Rick Rick is offline
PipBoy Extraordinaire!
Rick's Avatar
Join Date: Jul 2004
Location: Long Beach, California.
Posts: 831
Rick is on a distinguished road
say2("#u #d #l #r #i(image.png)") should work fine.
Reply With Quote
  #5  
Old 01-10-2006, 02:49 AM
jake13jake jake13jake is offline
Former Classic Staff
jake13jake's Avatar
Join Date: Dec 2002
Location: Northwest Vermont
Posts: 1,452
jake13jake will become famous soon enough
Quote:
Originally Posted by Rick
say2("#u #d #l #r #i(image.png)") should work fine.
well in that case, should I do
say2("#i(" @ npcs[i].image @ ") Item:" SPC npcs[i].itemname NL "Price:" SPC npcs[i].price);
Because that looks a bit uglyish/hacking
Reply With Quote
  #6  
Old 01-10-2006, 03:14 AM
Yen Yen is offline
Banned
Yen's Avatar
Join Date: Oct 2005
Location: Nova Scotia, Canada
Posts: 1,085
Yen is an unknown quantity at this point
Send a message via AIM to Yen Send a message via MSN to Yen
Quote:
Originally Posted by jake13jake
well in that case, should I do
say2("#i(" @ npcs[i].image @ ") Item:" SPC npcs[i].itemname NL "Price:" SPC npcs[i].price);
Because that looks a bit uglyish/hacking

... Are you afraid of people hacking a say2?
Just think of the power they could gain over the server!
Reply With Quote
  #7  
Old 01-10-2006, 03:54 AM
napo_p2p napo_p2p is offline
oh snaps
napo_p2p's Avatar
Join Date: Sep 2003
Location: Pismo Beach, California
Posts: 2,118
napo_p2p has a spectacular aura aboutnapo_p2p has a spectacular aura about
Send a message via AIM to napo_p2p Send a message via MSN to napo_p2p
Quote:
Originally Posted by Yen
... Are you afraid of people hacking a say2?
Just think of the power they could gain over the server!
I think he means to say that the say2 code he posted looks like it has been "shaped as if by crude or ruthless strokes" (AKA hacked).
__________________
Scito hoc super omnia.
Haec vita est tua una sola.
Dum vita superest, utere maxime quoque puncto, momento, et hora quae habes.
Tempus neminem non manet.
Noli manere tempus.
Carpe Diem

Seize the Day.
Reply With Quote
  #8  
Old 01-10-2006, 06:46 AM
jake13jake jake13jake is offline
Former Classic Staff
jake13jake's Avatar
Join Date: Dec 2002
Location: Northwest Vermont
Posts: 1,452
jake13jake will become famous soon enough
Quote:
Originally Posted by napo_p2p
I think he means to say that the say2 code he posted looks like it has been "shaped as if by crude or ruthless strokes" (AKA hacked).
Yea, and some of us are still trying to figure out why Stefan made signs serverside. I heard something about their being able to display certain variables. Still, makes it so say doesn't work clientside which creates a lot of work for me when converting old levels.
Reply With Quote
  #9  
Old 01-20-2006, 04:46 PM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
The #i message code is for signs only, there are two versions:
#i(filename) - displays an image
#i(filename,x,y,width,height) - displays part of an image (like setimgpart)

On clientside you can use say2, but it is recommended to use say and say2 on serverside only. It means less data that needs to be sent to the client, you can use all serverside variables, you can use the translation system (currently on Kingdoms, but sometime soon also on Era), and the 'lag' between touching the npc and receiving the sign text is really low, especially in new scripting engine.
I don't see any problem with the say command, just use it on serverside.
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 12:18 AM.


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