cubmain craft or runeword random class prop

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

User avatar
DreamSavior
Posts: 33
Joined: Tue Jan 24, 2012 11:02 pm

cubmain craft or runeword random class prop

Post by DreamSavior » Mon Jul 17, 2017 2:07 am

hey guys i have a little problem with cubemain
I want recipe that keeps the blue item bonus and adds 1 random class or in rune word +1 random class ...but I dont know the code for random class
any ideas? thanks in advance

User avatar
HarvestWombs
Senior Moderator
Arch-Angel
Posts: 1019
Joined: Wed May 25, 2011 11:50 pm
United States of America

Re: cubmain craft or runeword random class prop

Post by HarvestWombs » Mon Jul 17, 2017 3:09 am

Check your properties.txt.
If using 1.10 (which i doubt) you'll need to add it.
Theres a topic somewhere (use search).
Official Phrozen Keep Discord
Common Modding tools: link
My Resource Packs: link

User avatar
DreamSavior
Posts: 33
Joined: Tue Jan 24, 2012 11:02 pm

Re: cubmain craft or runeword random class prop

Post by DreamSavior » Mon Jul 17, 2017 7:45 pm

Black_Eternity" wrote:Check your properties.txt.
If using 1.10 (which i doubt) you'll need to add it.
Theres a topic somewhere (use search).

Okay I found the prop I needed but i can't understand how it works ... example on torch param randclasskills min 0 max 6 which in the case means 3 random class skills . What I need to type to make it have 1 or 2 random class ?

diabloel
Posts: 4
Joined: Sun Sep 13, 2015 2:21 pm

Re: cubmain craft or runeword random class prop

Post by diabloel » Tue Jul 18, 2017 1:22 am

Open propeties.txt and delete 3 from val1 column

User avatar
DreamSavior
Posts: 33
Joined: Tue Jan 24, 2012 11:02 pm

Re: cubmain craft or runeword random class prop

Post by DreamSavior » Fri Jul 21, 2017 5:07 pm

Okay thanks for the help now I'm trying to make a recipe with output random rune from 22-31 . Any suggestions?

User avatar
HarvestWombs
Senior Moderator
Arch-Angel
Posts: 1019
Joined: Wed May 25, 2011 11:50 pm
United States of America

Re: cubmain craft or runeword random class prop

Post by HarvestWombs » Sat Jul 22, 2017 4:08 am

I think the easiest way to accomplish this would be:

create new item and give it an automagic with a new stat set from 1-9
In cubemain.txt use the cube op column to check for stat on item.
In this case we will use Op 15

you will need 9 recipes for each value:
cube op (15) val (1) Input1 (new item item) Input2(regent) Output(rune22)
cube op (15) val (2) Input1 (new item item) Input2(regent) Output(rune23)

so on and so forth....

I'm doing this off the top of my head so there may be a few mistakes, but this is the general purpose.
Official Phrozen Keep Discord
Common Modding tools: link
My Resource Packs: link

User avatar
SpiKe.
Forum Tech Support
Champion of the Light
Posts: 280
Joined: Thu Jul 28, 2011 5:25 pm
Location: Germany
Germany

Re: cubmain craft or runeword random class prop

Post by SpiKe. » Sat Jul 22, 2017 10:05 am

BlackEternity's Method work but is mostly useful when u creating a item which should spawn more then one itemtype.

If you want to have a item to always output a highrune you could go into misc.txt, change the itype2 of all highrunes to something like "hrun" and in cubemain.txt make the output to the new itype2 "hrun".
In ItemTypes.txt copy the row "Runes" and rename it to "High Runes", change the code to "hrun" and you should be done.

User avatar
HarvestWombs
Senior Moderator
Arch-Angel
Posts: 1019
Joined: Wed May 25, 2011 11:50 pm
United States of America

Re: cubmain craft or runeword random class prop

Post by HarvestWombs » Sun Jul 23, 2017 5:08 am

J'P" wrote:BlackEternity's Method work but is mostly useful when u creating a item which should spawn more then one itemtype.

If you want to have a item to always output a highrune you could go into misc.txt, change the itype2 of all highrunes to something like "hrun" and in cubemain.txt make the output to the new itype2 "hrun".
In ItemTypes.txt copy the row "Runes" and rename it to "High Runes", change the code to "hrun" and you should be done.
Dont know why that never occurred to me, but is a much better viable option. Added to list of things to know. :P
Official Phrozen Keep Discord
Common Modding tools: link
My Resource Packs: link

User avatar
SpiKe.
Forum Tech Support
Champion of the Light
Posts: 280
Joined: Thu Jul 28, 2011 5:25 pm
Location: Germany
Germany

Re: cubmain craft or runeword random class prop

Post by SpiKe. » Sun Jul 23, 2017 9:00 am

Yeah, its unlikely. Just digured it out when i tried your method for a random output.
Instead of making a line for every rune i said:
"random stat > 0" = hrun
"random stat > 10" = mrun
"random stat > 20" = PGM
"random stat > 40" = ....

this made my recipe in like 10 lines instead of 100...

User avatar
DreamSavior
Posts: 33
Joined: Tue Jan 24, 2012 11:02 pm

Re: cubmain craft or runeword random class prop

Post by DreamSavior » Sat Jul 29, 2017 8:22 pm

I haven't tried yet currently I'm trying to do uniq jewel 1 random skill class only (1 ice blast sors only) any I ideas how to do it . Craft recipe will be good too.
Regards.

User avatar
SpiKe.
Forum Tech Support
Champion of the Light
Posts: 280
Joined: Thu Jul 28, 2011 5:25 pm
Location: Germany
Germany

Re: cubmain craft or runeword random class prop

Post by SpiKe. » Sat Jul 29, 2017 9:09 pm

Create a Unique Jewel and give it 1 propertie:

Prop = skill-rand
par = 1 (or amount of skills you want to grant)
min = lowest ID (from Skills.txt)
max =highest ID (from Skills.txt)

For Amazon it would be min = 6, max = 35.
For Sorceress it would be min = 36, max = 65 and so on.
This method only works if you have the skills in line and didn't moved them around in skills.txt.

Return to “General Mod Making”