Magic Affix: x% Chance To Cast Level y "skill" On Striking

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

RedolentGalaxy9
Posts: 1
Joined: Tue Dec 01, 2020 9:54 am
Sweden

Magic Affix: x% Chance To Cast Level y "skill" On Striking

Post by RedolentGalaxy9 » Wed Dec 23, 2020 10:40 am

I'm trying to add an affix to magic items (in MagicPrefix.txt or MagicSuffix.txt) that gives:

x% Chance To Cast Level y "skill" On Striking

where x and y are some numbers and "skill" is some skill. In the text files this will be on the form:

mod1code = hit-skill
mod1param = "skill"
mod1min = x
mod1max = y

Now the problem is that this always gives the same chance (x) and skill-level (y). Does anyone here know a way to modify this such that x and y can vary between x_min, x_max and y_min, y_max respectively?

For example, I would like the affix:

(1-10)% Chance to Cast level (1-15) Teeth On Striking

I'm grateful for your answers.

I haven't found this question when looking at the forums, hence I create a new post about it.

Razorgan
Posts: 1
Joined: Wed Mar 31, 2021 8:44 pm
Argentina

Re: Magic Affix: x% Chance To Cast Level y "skill" On Striking

Post by Razorgan » Thu Apr 01, 2021 2:32 am

i think that you can't variate both(% of cast and level skill)
if you can create new rows for 5,10 and 15 %(each one) and then you can variate the levels of skills, that maybe works what you want
isn't a real random generated but its close

Return to “General Mod Making”