Aller au contenu

Photo

Weapon Upgrade System Script Request (details inside)


  • Veuillez vous connecter pour répondre
3 réponses à ce sujet

#1
Iamgoofball

Iamgoofball
  • Members
  • 39 messages
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

#2
Kato -

Kato -
  • Members
  • 392 messages
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 .


#3
Failed.Bard

Failed.Bard
  • Members
  • 774 messages
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?

#4
Lord Sullivan

Lord Sullivan
  • Members
  • 560 messages
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 .