Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   this(or not).string question (https://forums.graalonline.com/forums/showthread.php?t=37812)

Googi 09-12-2002 05:30 AM

this(or not).string question
 
If I replaced this in a this.string with something else (say...that.string), would I be able to have a script only recognize the that.strings?

(P.S. This is for strings set using setstring)

Falcor 09-12-2002 05:48 AM

Re: this(or not).string question
 
Quote:

Originally posted by Googi
If I replaced this in a this.string with something else (say...that.string), would I be able to have a script only recognize the that.strings?

(P.S. This is for strings set using setstring)

no

Goboom 09-12-2002 06:34 AM

Re: Re: this(or not).string question
 
Quote:

Originally posted by Falcor

no


Falcor 09-12-2002 06:41 AM

We don't need reiderations (sp?), once is enough.

Googi 09-12-2002 08:20 AM

***aghagygh, Okay, thanks.

Gah, now I gotta do this thi long way XD

emortylone 09-13-2002 12:52 AM

What do you need to use it for? I’ve used setstring this.#a,#p(0); before for a notification script. And it checks this.#a to see if it has a value, and then it sends a message to all the tokens (after it’s tokenized) so you could do it that way. Or you could make it like:
Setstring this.string#v(this.var),value;
That way it would do it, and you could call it and such. No reason for a that.string anyway =/
---Shifter

Googi 09-13-2002 05:42 AM

That wouldn't work, since it was going to be a list of 100 or so "items"

R0b1n-NPC 09-13-2002 06:14 AM

*cough*
String Array
*cough*

emortylone 09-13-2002 10:46 AM

*rolls* That is another option if it's going to be huge. There isn't a reason though you can't use a string array, or if you're a noobie ;) use setstring this.string#v(this.var),value; instead :P but I don't use string arrays unless I need to keep track of data more and for a larger quantity.
---Shifter

Googi 09-14-2002 04:38 AM

You can't keep string arrays seperate from other string arrays though.

Graal2001_NAT 09-14-2002 04:40 AM

Quote:

Originally posted by emortylone
*rolls*
---Shifter

@_@ *imagines someone rolling around on the floor by the computer*


and googi, what are you talking about =x? its called using different string names?

emortylone 09-14-2002 11:15 AM

I think I'm liking Jagen a bit more each day :D EXACTLY, you CAN keep them different x.X =/
---Shifter

Googi 09-14-2002 08:29 PM

I mean keeping a group of string arrays seperate from every other string array.

Not keeping a single string seperate.

R0b1n-NPC 09-14-2002 08:32 PM

setstring this.stringarray1,googi,stfu,:P;
setstring this.stringarray2,You,can,keep,them,seperate;
setstring this.stringarray3,If,you,cant,then,you,are,dumb,:P ;

Googi 09-14-2002 09:02 PM

Quote:

Originally posted by R0b1n-NPC
setstring this.stringarray1,googi,stfu,:P;
setstring this.stringarray2,You,can,keep,them,seperate;
setstring this.stringarray3,If,you,cant,then,you,are,dumb,:P ;

:-\

That's what I meant by "the long way"


All times are GMT +2. The time now is 03:39 PM.

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