Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   enough asking about string adding, showing etc (https://forums.graalonline.com/forums/showthread.php?t=13900)

btedji 10-06-2001 03:44 AM

enough asking about string adding, showing etc
 
heres a short tutorial

----------------------

to say amount in a string:

say2 There is #s(stringname) in this string

---------------------------------

to modify a string:

setstring stringname,strtofloat(#s(stringname))-1;

you can use add, multiply, divide etc

------------------------
to get num value of string

strtofloat(#s(stringname))

-----------------------------

please add stuff to this thread so people will stop asking how to do this kind of thing, i noticed a lot of this recently

ZORG1986 10-06-2001 04:50 AM

Thats nice although its not actually hard to work out just by working commands.rtf

btedji 10-06-2001 05:07 AM

Quote:

Originally posted by ZORG1986
Thats nice although its not actually hard to work out just by working commands.rtf
not many people look at that, they just come running to the forums

Shard_IceFire 10-06-2001 05:07 AM

Congratulations btedji! You can use strings, now what are you going to do?
lol yes I know I know, it's a tutorial for n00bs..don't worry I understand.

entravial 10-06-2001 10:11 AM

~AlphaFlame~

Perhaps Shadow Dragons had a use after all...

Anyway... uh... yeah...

Tyhm 10-06-2001 10:16 AM

Re: enough asking about string adding, showing etc
 
Quote:

Originally posted by btedji

to modify a string:

setstring stringname,#v( strtofloat(#s(stringname))-1);


ZORG1986 10-06-2001 06:07 PM

Quote:

Originally posted by entravial
~AlphaFlame~

Perhaps Shadow Dragons had a use after all...

Anyway... uh... yeah...

Yes but who needs shadow dragons when you have by website i think we have like 40+ NPCs now that you can learn from

http://zorgonline.cjb.net/

Although Kaimetsu is evil and wont let us post any of his stuff, because he thinks people will steal it even though he posted it on the forums....


All times are GMT +2. The time now is 07:05 PM.

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