![]() |
Scripts and strings
How do you store a string?? So like say I want to save how many times they chopped a piece of wood. I use the random script and if the number is greater than lets say 50 then they chopped the wood right and it adds one log to a string. Then if they go into a shop and say sell wood, it looks at the string and buys that many logs from them? Does anyone have any ideas?? I will pay anything for this (within reason)
|
Re: Scripts and strings
-Posted by Jadis
Quote:
|
NPC Code:is how you set a string andsetstring <stringname>,<vaule of the string (number or ASCII crap)>; NPC Code:is how you call the string for its true value and#s(<stringname>) NPC Code:is how you use a strings numerical value (probably what you would be using it for).strtofloat(#s(<stringname>)) |
hmmm,
could u do a basic one that has a random system between Iron, Gold, and platinum(and of course non found)... If you could do this so it stores the amount of that type of mineral so that i could sell it buy saying sell then the item name... I will do almost anything to learn this so i can use it for other types of situations also.. Thanks -Lord Helmut (Owner of Babylon) -Friends with NooseKnot(my idol) and Head LAT/Admin |
| All times are GMT +2. The time now is 01:17 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.