
09-18-2001, 04:47 AM
|
|
Psionic Youth
|
 |
Join Date: Mar 2001
Location: Babord, West Graal Deaths:1009 Kills:1
Posts: 5,635
|
|
#v in weaponnames and *Weapons
|
weaponname string;
When run in a weapon script, it keeps the Server's version of the weapon name the same, and for all the scripts it's still the same, but the player sees the name differently.
For example:
toweapons *Bomb Bag;
if(isweapon&&this.init<1){
this.init=1;
weaponname Bomb Bag #v(strtofloat(#s(bombbags)));
}
The game thinks it's *Bomb Bag, the NPCs and RC consider it *Bomb Bag, but the player sees it as Bomb Bag 12
You could take it a step further, and:
weaponname string,color;
to allow levelmakers to custom-color their weapons. Then it'd be
weaponname Bomb Bag #v(strtofloat(#s(bombbags))),darkblue;
This would be really handy for when you want to have, say, a key that can be a different color for a different dungeon, or a spell that can be charged different ways for different elements!
Or tools that get redder as they overheat!
Who's with me?
-=-Also: Could we get setimgpart allowed on toweapons? I tried to make a weapon that uses a head as it's image, but try though I might, it would not stay cropped...-=- |
__________________
"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
|
Last edited by Tyhm; 09-18-2001 at 04:50 AM..
|
|
|