Graal Forums  

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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 10-06-2001, 03:44 AM
btedji btedji is offline
bryan986
btedji's Avatar
Join Date: Apr 2001
Location: Force 10
Posts: 1,153
btedji is on a distinguished road
Send a message via ICQ to btedji Send a message via AIM to btedji Send a message via Yahoo to btedji
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
Reply With Quote
  #2  
Old 10-06-2001, 04:50 AM
ZORG1986 ZORG1986 is offline
Registered User
ZORG1986's Avatar
Join Date: Jul 2001
Location: England - Yes thats the small Island in Europe that Ownz you all.
Posts: 783
ZORG1986 is on a distinguished road
Send a message via ICQ to ZORG1986 Send a message via AIM to ZORG1986
Thats nice although its not actually hard to work out just by working commands.rtf
__________________


Zorg (Era Staff) - Contact : [email protected]
Reply With Quote
  #3  
Old 10-06-2001, 05:07 AM
btedji btedji is offline
bryan986
btedji's Avatar
Join Date: Apr 2001
Location: Force 10
Posts: 1,153
btedji is on a distinguished road
Send a message via ICQ to btedji Send a message via AIM to btedji Send a message via Yahoo to btedji
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
Reply With Quote
  #4  
Old 10-06-2001, 05:07 AM
Shard_IceFire Shard_IceFire is offline
Registered User
Shard_IceFire's Avatar
Join Date: Jun 2001
Location: Eastern Harkoonia
Posts: 861
Shard_IceFire is on a distinguished road
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.
__________________

-=Shard IceFire=-
Reply With Quote
  #5  
Old 10-06-2001, 10:11 AM
entravial entravial is offline
Registered User
entravial's Avatar
Join Date: Mar 2001
Posts: 825
entravial is on a distinguished road
Send a message via ICQ to entravial Send a message via AIM to entravial Send a message via Yahoo to entravial
~AlphaFlame~

Perhaps Shadow Dragons had a use after all...

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


If the post says ~AlphaFlame~, that's who's posting. If not, it's Entravial (owner)
Reply With Quote
  #6  
Old 10-06-2001, 10:16 AM
Tyhm Tyhm is offline
Psionic Youth
Tyhm's Avatar
Join Date: Mar 2001
Location: Babord, West Graal Deaths:1009 Kills:1
Posts: 5,635
Tyhm has a spectacular aura about
Re: enough asking about string adding, showing etc

Quote:
Originally posted by btedji

to modify a string:

setstring stringname,#v( strtofloat(#s(stringname))-1);
__________________
"Whatever," said Bean, "I was just glad to get out of the toilet."

"Power does not corrupt. Fear corrupts, perhaps the fear of a loss of power."- John Steinbeck
"I'm only acting retarded, what's your excuse?" queried the Gord.
- My pet, the Levelup Gnome

http://forums.graalonline.com/forums...&postcount=233
Reply With Quote
  #7  
Old 10-06-2001, 06:07 PM
ZORG1986 ZORG1986 is offline
Registered User
ZORG1986's Avatar
Join Date: Jul 2001
Location: England - Yes thats the small Island in Europe that Ownz you all.
Posts: 783
ZORG1986 is on a distinguished road
Send a message via ICQ to ZORG1986 Send a message via AIM to ZORG1986
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....
__________________


Zorg (Era Staff) - Contact : [email protected]
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 10:58 PM.


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