Random oSkill from any class
Moderator: Nizari
-
- Posts: 4
- Joined: Mon Feb 05, 2018 3:54 pm
Random oSkill from any class
So I'm trying to create a very rare craft that would output an item that has +1 to a random oSkill from any class, the problem is there's a 65 line interruption between the classic character skills and the expansion character skills, where classic monster skills sit. Is there any way to avoid this gap?
Re: Random oSkill from any class
only issue you will have (if you rearrengate the skills) is that some skills is hardcoded to its skillID, like hurricane for example. Othervise im afraid it require ce to solve it.
-
- Posts: 4
- Joined: Mon Feb 05, 2018 3:54 pm
Re: Random oSkill from any class
Ah, damn. Well is there any way to create a property that could pick oskills from the 2 separate portion of skills.txt? I guess if there's no way I'm just going to have to make a craft for each classes oskills, but I was really trying to make it completely random.
Anyway I appreciate the heads up. By chance, is there a list of skills that are hardcoded to their id?
Edit: So I just had an idea. I'm not the best at editing properties, even my random oskill is just a copy-paste of the random class skill, renamed to oskill-rand and changed to item_nonclassskill instead of item_singleskill (Note: I saw on the forums someone copied the function from randclassskill, which works, except you can't set the level of the oskill in individual cases like you can when you use func 12 instead of func 36.)
That being said, is there a way to make 7 properties that each choose between the oskills of just ONE class, then make an 8th property that will choose between those 7 properties?
I think this would be the ideal solution, but I have not nearly enough knowledge of properties to know if this can be a thing.
Anyway I appreciate the heads up. By chance, is there a list of skills that are hardcoded to their id?
Edit: So I just had an idea. I'm not the best at editing properties, even my random oskill is just a copy-paste of the random class skill, renamed to oskill-rand and changed to item_nonclassskill instead of item_singleskill (Note: I saw on the forums someone copied the function from randclassskill, which works, except you can't set the level of the oskill in individual cases like you can when you use func 12 instead of func 36.)
That being said, is there a way to make 7 properties that each choose between the oskills of just ONE class, then make an 8th property that will choose between those 7 properties?
I think this would be the ideal solution, but I have not nearly enough knowledge of properties to know if this can be a thing.
-
- Posts: 67
- Joined: Tue Sep 04, 2012 4:13 am
Re: Random oSkill from any class
Hi,
I just found this topic with google...
I want to add an oskill to my new Zod runes.
for weapons, it should choose one of those skills by chance: Pole Arm Mastery, Throwing Mastery, Spear Mastery
and for armor/shield, i want to have one random aura
how can i achieve this with no CE?
should I put 30 different zod runes with all the possible combinations? or is there a better way?
I just found this topic with google...
I want to add an oskill to my new Zod runes.
for weapons, it should choose one of those skills by chance: Pole Arm Mastery, Throwing Mastery, Spear Mastery
and for armor/shield, i want to have one random aura
how can i achieve this with no CE?
should I put 30 different zod runes with all the possible combinations? or is there a better way?
Re: Random oSkill from any class
Look at the property used for Ormus' Robes in vanilla D2 - it will work the same way. However, all of the possible skills need to have consecutive skill IDs and the actual skill wíll be randomly chosen when the rune is socketed. Creating different Zod Runes would solve this issue, but you would also have to create multiple versions of every runeword with this rune.
Best you could probably do is creating a jewel clone with the zod rune item code. Make this item spawn as unique everytime, and then create 30 different unique versions of this item. This way you can use the same item code for every rune word and also in cube recipes, and the actual stats will be rolled when the item drops instead of when it gets socketed.
Also remember that only one aura per item will work.
Best you could probably do is creating a jewel clone with the zod rune item code. Make this item spawn as unique everytime, and then create 30 different unique versions of this item. This way you can use the same item code for every rune word and also in cube recipes, and the actual stats will be rolled when the item drops instead of when it gets socketed.
Also remember that only one aura per item will work.
-
- Posts: 67
- Joined: Tue Sep 04, 2012 4:13 am
Re: Random oSkill from any class
Thanks a lot!gcc wrote: ↑Sun Mar 04, 2018 5:22 pme, but you would also have to create multiple versions of every runeword with this rune.
Best you could probably do is creating a jewel clone with the zod rune item code. Make this item spawn as unique everytime, and then create 30 different unique versions of this item. This way you can use the same item code for every rune word and also in cube recipes, and the actual stats will be rolled when the item drops instead of when it gets socketed.
Also remember that only one aura per item will work.
Ormus is just giving normal skills points (sorc only)
I want this stuff for every char...
the jewel suggestions sounds good!
i did not think that this would work. But if you say so, I trust ya
Re: Random oSkill from any class
You can use jewels in runewords (using code "jew"), so yes, you can use any socketable in a runeword. Just make sure that the player knows that he should not socket more than 1 Zod in the same armor item and that he should not socket Zod rune into an armor item granting an aura.
There is a random oskill in some older Median XL versions, which means that there is a way to do that.
There is a random oskill in some older Median XL versions, which means that there is a way to do that.
-
- Posts: 67
- Joined: Tue Sep 04, 2012 4:13 am
Re: Random oSkill from any class
Could I make the unique jewel look like a Rune, when it drops?
I think it''s all too complicated... I just put Vigor/Conv/Fana for Helm/Weapon/Shield. no randomness now
I think it''s all too complicated... I just put Vigor/Conv/Fana for Helm/Weapon/Shield. no randomness now
Re: Random oSkill from any class
1. remove zod rune from gems.txt
2. create unique versions of zod rune in uniqueitems.txt
3. in misc.txt change zod rune itype to "sock", unique to 1, compactsave to 0 and skipname to 1
2. create unique versions of zod rune in uniqueitems.txt
3. in misc.txt change zod rune itype to "sock", unique to 1, compactsave to 0 and skipname to 1