Page 1 of 2
[OSP] [Script] [Crom system] : Equipped Items deterioration
Posted: Tue Oct 28, 2014 10:23 pm
by cromcrom
....
Re: [OSP] [Script] Crom systems : Equipped Items deteriorati
Posted: Tue Oct 28, 2014 10:29 pm
by NutJob
I like the idea, thanks for this post.
Re: [OSP] [Script] [Crom system] : Equipped Items deteriorat
Posted: Tue Oct 28, 2014 10:54 pm
by Eleven Warrior
That is 1 awesome Script CromCrom.
1- Will the Weapons when they hit monster deteriorate to?
2 - When the items can no longer be used can they be put into the Party's Inventory or if they have no space it goes on the floor?
and a Anvil repair system would be awesome eg: You pay Blacksmith gold, silver, copper to fix the item that's broken, or the party could fix it using the Anvil but may need item to repair them EG: wood, leather, iron ore etc.....
Anyway just something t think about, I will be using this script for sure and thxs for this

Re: [OSP] [Script] [Crom system] : Equipped Items deteriorat
Posted: Tue Oct 28, 2014 11:09 pm
by cromcrom
I am glad you guys like it

@ Eleven Warrior:
This is a very basic script.
1/ No. I didn't check that. might be possible tho

2a/ I might check the onEquip stuff, and if the item is detriorated, it falls to the ground when you try to equip it. Lets give it a look

2b/ I have this repair system in TLC for LOG, and plan to add it in TLC2. I use it in combination with my skill system (tinkering, armor crafting weapon crafting, and so on...). The players repair it "for free", but the overall solidity is reduced with each repair. The better the skills, the better the repair. As for requiring crafting components, or a Smith, I am sure it could be done.
Re: [OSP] [Script] [Crom system] : Equipped Items deteriorat
Posted: Tue Oct 28, 2014 11:22 pm
by Eleven Warrior
Hi CromCrom I hope you can do it. I saw your Scripts in TLC and I have to say, to me it was reading another language. I did learn some things from you thank you and used most of you custom assests.
Re: [OSP] [Script] [Crom system] : Equipped Items deteriorat
Posted: Wed Oct 29, 2014 8:02 am
by cromcrom
I tried a "drop when broken" system, but this spawn call
Code: Select all
local itemName = item.go.name
local itemID = item.go.id
champ:removeItemFromSlot(slotnumber)
party.go:spawn(itemName, party.go.level, party.go.x, party.go.y, party.go.facing, party.go.elevation,itemID)
The broken item do spawn on the ground, but it seems to create a new item ID anyways. So it doesn't appear in the table, and the system considers it to be new, and so starts the whole process again.
And I haven't seen any "dropItem" function.
Re: [OSP] [Script] [Crom system] : Equipped Items deteriorat
Posted: Wed Oct 29, 2014 8:51 am
by Mysterious
Maybe you might have to rely on putting the damaged item into the inventory, but if the inventory is full then maybe a hudPrint("you have no room for this damaged shield.") I guess we will have to wait for the references to come out

Re: [OSP] [Script] [Crom system] : Equipped Items deteriorat
Posted: Wed Oct 29, 2014 9:53 am
by sapientCrow
nice addition cromcrom
really looking forward to it in TLC2
thanks
Re: [OSP] [Script] [Crom system] : Equipped Items deteriorat
Posted: Thu Oct 30, 2014 9:42 pm
by Lark
Just guessing here as I've not played with any of this yet, but champ:removeItemFromSlot(slotnumber) doesn't destroy the item, does it? And if it's not destroyed, then wouldn't party.go:spawn(itemName, party.go.level, party.go.x, party.go.y, party.go.facing, party.go.elevation,itemID) create a new item ID? Other things that I've not mucked with enough to know, but can't you set the position of an object through setWorldPosition? Just half-baked ideas. Good luck! -Lark
Re: [OSP] [Script] [Crom system] : Equipped Items deteriorat
Posted: Sun Nov 02, 2014 5:38 am
by cameronC
This is a very useful and exciting system!