The RPG Maker Resource Kit

RMRK RPG Maker Creation => XP => XP Scripts Database => Topic started by: Mr_Wiggles on May 15, 2010, 06:18:29 PM

Title: XP - Weapon Condition
Post by: Mr_Wiggles on May 15, 2010, 06:18:29 PM
Weapon Condition
Version: 1.4
Author: Mr Wiggles
Date: May 17, 2010

Version History



Planned Future Versions


Description

You know in fall out and oblivion where the more you use your weapon the more it gets damaged, soon you are un-able to use it at all with out repairing it or getting a new one.  This script does just that.

Features


Screenshots
Spoiler for:
Equip Window:
(https://rmrk.net/proxy.php?request=http%3A%2F%2Fscreensnapr.com%2Fu%2F61prhk.png&hash=0c202b028dd8ea1a2c57c1f3b57bb6bca840df51)

Item Window:
(https://rmrk.net/proxy.php?request=http%3A%2F%2Fscreensnapr.com%2Fu%2Fr0axlj.png&hash=7a4b99d36fe7d795a68cc5703b303f9939721cf7)

Shop Window:
(https://rmrk.net/proxy.php?request=http%3A%2F%2Fscreensnapr.com%2Fu%2Fybj5ss.png&hash=d2687569a66feb1aca9f9b81a05b49579611c748)

Battle Window:
(https://rmrk.net/proxy.php?request=http%3A%2F%2Fscreensnapr.com%2Fu%2Ftaghhd.png&hash=6b732e59a9007a4fabf67800d5899c722b5d138d)

Repair shop:
(https://rmrk.net/proxy.php?request=http%3A%2F%2Fscreensnapr.com%2Fu%2Fpql09e.png&hash=6aa94e5c67f7b05c5e04ff74833a4da6c8c6cf49)
(https://rmrk.net/proxy.php?request=http%3A%2F%2Fscreensnapr.com%2Fu%2Fscxnta.png&hash=79a20762cd071698d5731ee6cb22d6e89c3a4ea4)

Instructions

Just paste above main, bellow all the default scripts, change some stuff in the script header and follow its instructions.

Script


Its in the demo.

Support


Post your questions / comments here.

Known Compatibility Issues

This script rewrites quite a few chunks of the Equip, Item, Battle, Shop Scenes so chances are that any script you have that changes those will not work.

Demo


Demo v1.4 (http://www.mediafire.com/?iwjyjittek3)

Author's Notes


You are free to take this script and edit it in any way you see fit, HOWEVER I still need to be credited as the original author some where.

Restrictions
Don't post this on any other forums with out my permission.
Title: Re: XP - Weapon Condition
Post by: cozziekuns on May 15, 2010, 06:21:46 PM
Awesome. Reminds me of Fire Emblem's Durability System. But I don't understand why you titled it "Weapon Condition".
Title: Re: XP - Weapon Condition
Post by: Mr_Wiggles on May 15, 2010, 06:22:36 PM
Well eh, right now that's all it does, I might change it, and its weapon condition state.

I couldn't think of a good name.. :P
Title: Re: XP - Weapon Condition
Post by: modern algebra on May 15, 2010, 06:24:15 PM
Looks good Wiggles! Durability scripts are hard to write though, since items aren't by default saved as individual instances. I haven't looked at the code or anything, but at the very least I congratulate the effort and the scenes you wrote look pretty, so nice work!
Title: Re: XP - Weapon Condition
Post by: Mr_Wiggles on May 15, 2010, 06:29:23 PM
When you said that they weren't saved, i quickly checked to make sure that when you save / load your weapons are still there, they are. :D

Thanks modern.
Title: Re: XP - Weapon Condition
Post by: game_guy on May 17, 2010, 02:57:44 PM
Can you make each individual weapon have its own health? I have 2 bronze swords but with the same health. Though one should be new and the other should be damaged.
Title: Re: XP - Weapon Condition
Post by: Mr_Wiggles on May 18, 2010, 05:20:27 PM
They do already, when a weapon is added into the inventory it makes a random condition of 70 - 90 points. Its also more likely to get a 70 then any other number.  So this is why they have the same condition cause they do at the moment. when you start to use one its condition will lower and it wont be grouped with the other sword unless their conditions match again.
Title: Re: XP - Weapon Condition
Post by: apoclaydon on May 22, 2010, 09:42:07 AM
The download link doesnt seem to work
Title: Re: XP - Weapon Condition
Post by: Mr_Wiggles on May 22, 2010, 04:48:11 PM
[fixed download link, updated script]
Title: Re: XP - Weapon Condition
Post by: bubu on May 22, 2010, 05:37:40 PM
I like it ! *gives Mr_Wiggles a cookie*
Title: Re: XP - Weapon Condition
Post by: Mr_Wiggles on May 22, 2010, 06:11:37 PM
*takes cookie*

any suggestions to add in the update? (other then add armor conditions)
Title: Re: XP - Weapon Condition
Post by: CountVlad on May 26, 2010, 11:55:34 PM
This looks like an awesome script!
Out of interest, in theory should it work with battle scripts like BlizzABS (I mean the weapon degrading)?
Title: Re: XP - Weapon Condition
Post by: Mr_Wiggles on May 27, 2010, 03:03:25 AM
yea, when i get the time im gonna make a version for XAS, i could also look into making one for blizz. (when i find the time that is)

it fairly easy to set up once you see how i have it configured, if you know scripting you could make it work. the weapon will be damaged when its used (just search in Blizz where the action key is and plug in the lower condition method i have in the script there)  or you could wait till i find the time to do this.
Title: Re: XP - Weapon Condition
Post by: CountVlad on May 27, 2010, 07:21:02 PM
Thanks for the reply. I think I'll wait until you can do it, seeing as I'm not that confident with scripting yet.