View Single Post
  #4  
Old 10-04-2006, 09:31 PM
Chompy Chompy is offline
¯\(º_o)/¯
Chompy's Avatar
Join Date: Sep 2006
Location: Norway
Posts: 2,815
Chompy is just really niceChompy is just really niceChompy is just really nice
Send a message via MSN to Chompy
would be nice if you could add attr's and strings to an weapon like you can with a dbnpc, like making a sword named "Swords/Test" in the weapon list
and in weapons list you could right click and it pops up a menu with like
"Edit Weapon/Gui Flags" and "Edit Weapon/Gui Script"
and double left click would default open the script

and a new button could appear like server flags but,
like an guitreeviewctrl like:

-Weapons
-Swords/Test
-weapon.name=Test Sword
-weapon.description=A mighty test sword.
-more weapons etc...

and you could like load the current weapon. strings in the current weapon/gui script, like in Swords/Test you could do like

temp.info = {weapon.name, weapon.description}; and it returned
temp.info = {"Test Sword", "A mighty test sword."};

^-- clientside, if the weapon. string doesn't exist,
it gives a error message in the rc window

Serverside you can do like
temp.stuff = findweapon("Swords/Test").loadVar(description); would return:
temp.stuff = "A mighty test sword." because it would look for weapon.description, and you can load the current weapon. strings of the current weapon serverside to, etc..

I just wrote this, I thought this would be a good idea or something,
I am thinking that I am writing this in the wrong thread/forum part
but I don't know if this is a good idea or not..
__________________
Reply With Quote