Please need help cubemain.txt

Post here about all aspects of D2 mod making whether it's information, problems or whatever. Please specify whether your post is relating to Classic D2 or the Expansion.

Moderator: Nizari

Post Reply
sebles
Posts: 6
Joined: Tue Aug 11, 2020 1:14 am
Korea South

Please need help cubemain.txt

Post by sebles » Tue Aug 11, 2020 1:47 am

Hi, im new to modding and been trying to add a new cube recipe to make something similar to Orb of Corruption of Path of Diablo that makes an item have additional property like faster cast rate or max damage etc and also with another message “Corrupted” in red at the top of properties to make the cubed item not to be cubed more than once. I made a new property in Properties.txt and added a line in ItemStatCost.txt for it as well.

The proplem is I now see the cubbed item work with the message “Corrupted” but it still can be recubed so it can have like infinite properties by cubing.

I did try something with Op, Param and Value to make it work like Op 18 Param corrupted Value 0
Mod1 corrupted Mod1 chance 100 Mod1 min 1
Mod1 max 1 (Mod2 for a property ).

Did i do something wrong with Op, Param and Value? I typed “corrupted” into Param collum as a property.

User avatar
Cypress
Posts: 96
Joined: Fri Dec 01, 2017 2:08 am

Re: Please need help cubemain.txt

Post by Cypress » Tue Aug 11, 2020 12:47 pm

You should reference the itemstatcost.txt ID column, not the Stat column.

sebles
Posts: 6
Joined: Tue Aug 11, 2020 1:14 am
Korea South

Re: Please need help cubemain.txt

Post by sebles » Tue Aug 11, 2020 1:09 pm

Cypress wrote:
Tue Aug 11, 2020 12:47 pm
You should reference the itemstatcost.txt ID column, not the Stat column.
Cypress wrote:
Tue Aug 11, 2020 12:47 pm
You should reference the itemstatcost.txt ID column, not the Stat column.
Thank you so much, you pointed out what exactly i wondered

Devangell
Posts: 23
Joined: Thu Jul 30, 2020 10:06 am

Re: Please need help cubemain.txt

Post by Devangell » Tue Aug 11, 2020 2:11 pm

Hi

I also added cube recipes like this.
Here's an example:

Bodypart + weap 1 100 17 367 4 2 weap,any hrt useitem dmg-fire 5 8 vit-h 1 1

As Cypress already mentioned, you should put the ID instead of name/ description from itemstatcost.txt.
So in my example OP is set to 17, PARAM to 367 and VALUE to 4.
367 is the ID of the stat (in itemstatcost.txt) to make my property called vit-h, which you can see at the end of the line in the example. I entered a 1 for that property and a 4 in the VALUE column.
So whenever you cube this recipe, the fifth time it won't work anymore because your item has reached vit-h +4 and because of the 4 i put in the VALUE column, it won't exceed that number.

I hope this will help you a little further.

Grtz

User avatar
Leauqis
Posts: 5
Joined: Thu Jul 16, 2020 3:20 pm

Re: Please need help cubemain.txt

Post by Leauqis » Sat Aug 15, 2020 11:43 am

Add the key "Moditemiscorrupted" at the end of your string.tbl
put this "\red;Corrupted" inside "Moditemiscorrupted" you can change the color and names to your liking
after enough testing you should change value 1 to 0 it is in descval column, itemstatcost.txt, item_iscorrupted row

edit: of course you can change the given stats and cube inputs to match what you want
also you may want to remove socket chance (easy enough i think)
took me a good time to make this so dont mind to post some of the bug here if you encounter :twisted:
Attachments
ooc.zip
(2.29 KiB) Downloaded 7 times

sebles
Posts: 6
Joined: Tue Aug 11, 2020 1:14 am
Korea South

Re: Please need help cubemain.txt

Post by sebles » Sat Aug 15, 2020 12:38 pm

Thank you so much guys! i really appreciate it

Post Reply

Return to “General Mod Making”