Graal Forums  

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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 05-01-2011, 06:35 PM
Astram Astram is offline
Era iPhone PR
Astram's Avatar
Join Date: Aug 2010
Posts: 324
Astram can only hope to improve
Send a message via AIM to Astram
Creating Weapons Help

Hi, I was trying to create a GUI that lets you create a weapon. Is there a way to create a weapon that does certain things through a script?
For Example:
I want a GUI that makes a weapon, and it contains what you chose in the GUI.

Its not easy to explain but, if you understand. Please help me
__________________
-Toad
The worlds biggest Toad fan...
Era iPhone FTW!


Reply With Quote
  #2  
Old 05-01-2011, 06:48 PM
Emera Emera is offline
Delterian Hybrid
Emera's Avatar
Join Date: Mar 2011
Location: Newcastle Upon-Tyne
Posts: 1,704
Emera is a jewel in the roughEmera is a jewel in the rough
Like different attributes?
__________________
Reply With Quote
  #3  
Old 05-01-2011, 07:00 PM
Astram Astram is offline
Era iPhone PR
Astram's Avatar
Join Date: Aug 2010
Posts: 324
Astram can only hope to improve
Send a message via AIM to Astram
Quote:
Originally Posted by Emera View Post
Like different attributes?
huh?
__________________
-Toad
The worlds biggest Toad fan...
Era iPhone FTW!


Reply With Quote
  #4  
Old 05-01-2011, 07:22 PM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Pretty sure it's not possible to add weapons via script without editing files directly, which you should avoid if at all possible.

If you're trying to do this for staff use, just have it generate the code and have a staff member upload it.

If you're tryign to do this for player use, you're doing it wrong.
__________________
Reply With Quote
  #5  
Old 05-01-2011, 07:26 PM
Cubical Cubical is offline
Banned
Join Date: Feb 2007
Posts: 1,348
Cubical has a brilliant futureCubical has a brilliant futureCubical has a brilliant futureCubical has a brilliant futureCubical has a brilliant futureCubical has a brilliant futureCubical has a brilliant future
i think he's trying to do something similar to an archetype editor.
Reply With Quote
  #6  
Old 05-01-2011, 07:41 PM
Astram Astram is offline
Era iPhone PR
Astram's Avatar
Join Date: Aug 2010
Posts: 324
Astram can only hope to improve
Send a message via AIM to Astram
archetype editor?
__________________
-Toad
The worlds biggest Toad fan...
Era iPhone FTW!


Reply With Quote
  #7  
Old 05-01-2011, 08:19 PM
Emera Emera is offline
Delterian Hybrid
Emera's Avatar
Join Date: Mar 2011
Location: Newcastle Upon-Tyne
Posts: 1,704
Emera is a jewel in the roughEmera is a jewel in the rough
If he did this i would love to see it in action.
__________________
Reply With Quote
  #8  
Old 05-01-2011, 08:44 PM
Devil_Lord2 Devil_Lord2 is offline
David K?
Devil_Lord2's Avatar
Join Date: Apr 2011
Location: PA, MD.
Posts: 643
Devil_Lord2 can only hope to improve
It would be interesting to see a "choose your power" type thing, be able to have w/e skillpoints and choose the damage, speed, and gani of a weapon out of various weapons as you would do on MMORPG type games.. that sounds like something able to do ..

But I don't know if that is what you mean.. at all lol
__________________

Digital Media Artist - David K? </3 (UnLoved)
www.davidkrout.com
www.twitch.com/DavidKkz



Reply With Quote
  #9  
Old 05-01-2011, 10:23 PM
Astram Astram is offline
Era iPhone PR
Astram's Avatar
Join Date: Aug 2010
Posts: 324
Astram can only hope to improve
Send a message via AIM to Astram
Quote:
Originally Posted by Devil_Lord2 View Post
It would be interesting to see a "choose your power" type thing, be able to have w/e skillpoints and choose the damage, speed, and gani of a weapon out of various weapons as you would do on MMORPG type games.. that sounds like something able to do ..

But I don't know if that is what you mean.. at all lol
That made absolutely no sense at all to this thread
__________________
-Toad
The worlds biggest Toad fan...
Era iPhone FTW!


Reply With Quote
  #10  
Old 05-02-2011, 10:18 AM
Emera Emera is offline
Delterian Hybrid
Emera's Avatar
Join Date: Mar 2011
Location: Newcastle Upon-Tyne
Posts: 1,704
Emera is a jewel in the roughEmera is a jewel in the rough
Astram, take your time and explain slowly.
__________________
Reply With Quote
  #11  
Old 05-02-2011, 10:24 AM
Tricxta Tricxta is offline
The Muffin Man
Tricxta's Avatar
Join Date: Oct 2010
Location: Australia
Posts: 563
Tricxta is just really niceTricxta is just really nice
An option you could have is all the posibilities scripted into the the actual weapon script and only sections are chosen through an array generated by your gui, at least... thats how I would do it since I only code in gs1 since gs2 is too poorly documented for my liking.
Reply With Quote
  #12  
Old 05-02-2011, 03:23 PM
fowlplay4 fowlplay4 is offline
team canada
fowlplay4's Avatar
Join Date: Jul 2004
Location: Canada
Posts: 5,200
fowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond repute
This thread is basically a request for an item system.

Basic Item System:

1. Create a DB to hold the item information.
2. Use clientr.flags to store the item information on the player for quick client-side read access.
3. Also use clientr.flags to store the item, it's identifier, and the quantity.

You can use the clientr.flags to display the items in an inventory and throughout other GUIs.

You could also make a GUI for adding items to the DB.

Unfortunately I believe this is beyond your skill level, and a problem that should be broken in to chunks and addressed-per-issue. I may (other experienced scripters are welcome as well) post a basic system with expandability in mind, since this is a pretty common system people like to implement.

I would recommend searching the NPC Scripting forums for 'Item System' and 'MUDLib' and reading the problems and solutions of the past.
__________________
Quote:
Reply With Quote
  #13  
Old 05-02-2011, 06:57 PM
Emera Emera is offline
Delterian Hybrid
Emera's Avatar
Join Date: Mar 2011
Location: Newcastle Upon-Tyne
Posts: 1,704
Emera is a jewel in the roughEmera is a jewel in the rough
I don't think thats what he means but ok
__________________
Reply With Quote
  #14  
Old 05-03-2011, 10:03 PM
Astram Astram is offline
Era iPhone PR
Astram's Avatar
Join Date: Aug 2010
Posts: 324
Astram can only hope to improve
Send a message via AIM to Astram
I want to create a weapon containing a script. You know how in a script you can create a level? Yes, well I want to know if you can create a weapon like that
__________________
-Toad
The worlds biggest Toad fan...
Era iPhone FTW!


Reply With Quote
  #15  
Old 05-03-2011, 10:15 PM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Quote:
Originally Posted by Astram View Post
I want to create a weapon containing a script. You know how in a script you can create a level? Yes, well I want to know if you can create a weapon like that
You can, but don't.
__________________
Reply With Quote
  #16  
Old 05-05-2011, 10:32 PM
Astram Astram is offline
Era iPhone PR
Astram's Avatar
Join Date: Aug 2010
Posts: 324
Astram can only hope to improve
Send a message via AIM to Astram
Quote:
Originally Posted by cbk1994 View Post
You can, but don't.
why not...
__________________
-Toad
The worlds biggest Toad fan...
Era iPhone FTW!


Reply With Quote
  #17  
Old 05-05-2011, 11:23 PM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Quote:
Originally Posted by Astram View Post
why not...
Scripts shouldn't be created by other scripts on-the-fly. Not only can it cause problems when you update the text files directly, but it's just a mess. If you want to create custom items, make an item system capable of it.
__________________
Reply With Quote
Reply


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 07:06 PM.


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