Author Topic: Weapon Upgrade System Script Request (details inside)  (Read 371 times)

Legacy_Iamgoofball

  • Newbie
  • *
  • Posts: 2
  • Karma: +0/-0
Weapon Upgrade System Script Request (details inside)
« on: November 15, 2011, 01:22:16 am »


               I am in need of a weapon upgrade system, as said in the title.

What I need, exactly, is a script that does this:

Say you have an Iron Sword, and want to improve the weapon with some steel ingots you have. You would go find a workbench/forge/improvement area/etc. You would open it like a chest, and put in the sword and some ingots. It would then upgrade the weapon to a stronger version, or, if you were to put in a blueprint for a different weapon, you could craft a different weapon. After the crafting/upgrading, the ingots, the blueprint, and the old sword would be re-placed with the upgraded one, or the new weapon,.

I would do this myself, but due to to the fact that I couldn't script if my life depended on it, and scripting is too complicated for me to comprehend. I need to ask the community to help me.

Thanks,
Iamgoofball
               
               

               
            

Legacy_Kato -

  • Hero Member
  • *****
  • Posts: 747
  • Karma: +0/-0
Weapon Upgrade System Script Request (details inside)
« Reply #1 on: November 15, 2011, 06:15:04 pm »


               Well a complete upgrade system is quite some coding, but since you mention materials I would begin by setting this first, since materials most often(in my case at least) determine item property availability and/or magnitude. There is a good include file for materials, posted by Axe Murderer in the past. Look in the Omnibus, type material and click on the Rust Monster topic, copy and paste Axe's post, and you're ready to begin implementing materials. Of course, you'll have to define wich material does what etc... but it's nonetheless a good place to start. Then if you have something specific in mind and need help coding it, I'll do my best to help you out if I can.(I'm not yet a coding master like Funky, Lightfoot, Axe, Whizard or ShadoOow etc... but there is still much I can do)

Kato
               
               

               


                     Modifié par Kato_Yang, 15 novembre 2011 - 07:03 .
                     
                  


            

Legacy_Failed.Bard

  • Hero Member
  • *****
  • Posts: 1409
  • Karma: +0/-0
Weapon Upgrade System Script Request (details inside)
« Reply #2 on: November 15, 2011, 11:18:28 pm »


               The system you describe is easy enough to do, especially if you're using a "blueprint" to guide the item creation upgrading since that would considerably cut down on the number of if statements needed.

 Kato_Yang's suggestion of deciding on the properties you want each material to have is a good one, that will need to be known first so the properties can be scripted into it to be added.

 The other thing that would need to be known, is if you want the properties to "stack" when upgrading materials.  Will, for example, a copper weapon upgraded with steel ingots have the properties for both material types still, or just for the steel?
               
               

               
            

Legacy_Lord Sullivan

  • Hero Member
  • *****
  • Posts: 671
  • Karma: +0/-0
Weapon Upgrade System Script Request (details inside)
« Reply #3 on: November 16, 2011, 12:50:08 am »


               I've been on a few servers in the past that used the...

Ambrosia Tradeskill System

And what you want to do sounds like what this one does as I recall.

worth looking into
               
               

               


                     Modifié par Lord Sullivan, 16 novembre 2011 - 12:51 .