Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   #c? (https://forums.graalonline.com/forums/showthread.php?t=42739)

SSRobgeta 02-13-2003 11:54 PM

#c?
 
Is there a way to Save your current text as a string BUT not get overwriten when you talk? I'm having a scripting problem. Any suggestions?

SSJ4_Vegetto 02-14-2003 12:39 AM

I may be a "not so good scripter", but if u use a this.variable in ur string and every time it changes it adds 1 to the this.variable or something. If you know what i mean?
Like the string can be
#athis.(something)
or u can use a client.string and add 1 each time or something.... just a suggestion, sorry if it doesn't help ne...

~Omini

SSRobgeta 02-14-2003 12:53 AM

Quote:

Originally posted by SSJ4_Vegetto
I may be a "not so good scripter", but if u use a this.variable in ur string and every time it changes it adds 1 to the this.variable or something. If you know what i mean?
Like the string can be
#athis.(something)
or u can use a client.string and add 1 each time or something.... just a suggestion, sorry if it doesn't help ne...

~Omini

I dunno if that'd work, but I have it under control now so thanks.

Ningnong 02-14-2003 06:30 PM

You could use an npc, when created a varible is equal to zero. Then use:

NPC Code:

if (playerchats && this.varible == 0){
//rest of script here (recording of players chat text etc)
}



once the player has said something, set the var to one. Therefore
the message isn't over written. Simple.

PrinceDark 02-15-2003 01:31 AM

Hehe. Kai must've been deleting some posts again. lol.
Sorry about that other one I did for the guy the other day.

Rob there's a couple ways you can go about that. You can use startswith and set the string using #T(#e(startindex,length,string))

There's other ways you can do it as well.


All times are GMT +2. The time now is 12:46 PM.

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