Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Future Improvements (https://forums.graalonline.com/forums/forumdisplay.php?f=10)
-   -   changecaps in strings (https://forums.graalonline.com/forums/showthread.php?t=33938)

Warcaptain 07-21-2002 11:24 AM

changecaps in strings
 
i think we need a script comandlike..

NPC Code:

#C[var,string]


var can be:

1=all lower
2=all caps
3=first letters of tokens capital

string is:
the string you want to get caps of
so you can do..


setstring client.#C[1,Bombs],1;

would set the string client.bombs to 1
it would be good for pandora weapon system.
so I hope it is added..

Kaimetsu 07-21-2002 05:15 PM

Why is it needed?

Warcaptain 07-21-2002 05:20 PM

Quote:

Originally posted by Kaimetsu
Why is it needed?
in this case... the quantity of a certain item

ie: weaponname: Bomb

instead of having stringname: clientr.Bomb

its clientr.#C[1,Bomb]

but in the scripts its not like we can type it in

its automatic like.. #s(clientr.#s(client.Sweapon));

or something along those lines

Falcor 07-22-2002 01:08 AM

again, why is this needed?
Graal scripting isn't all that picky. I can see it could be useful for just plain organization though.


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

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