Jump to content

% chance on enchantment doesnt work (getrandompercent)


ghosu

Recommended Posts

Hi

 

I just added this effect to my enchantment but it activates with every hit...the % modification works on the others but since i have no clue 'bout scripting (YES i will learn it after the release of this weapon ^^) i can't find the problem.

 

http://666kb.com/i/c16qhf1kn8f5l7dl8.png

 

Without modification it works on each hit, when i add something like getrandompercent <=20 (to the effect OR the echantment options) it doesn't work any more.

 

Any ideas?

 

greetings

Edited by ghosu
Link to comment
Share on other sites

You have to put it in the conditions box for the effect itself.

 

 

 

http://i280.photobucket.com/albums/kk173/huMAnity_dues/ghosuhelp.png

 

Like in that picture

 

I also notice that your hammer is hella more powerful then mine lol ;D

Edited by imperistan
Link to comment
Share on other sites

Well i set up the % for the knockback directly in the enchantment window and it works but not with this one...if i remember right i already tried to place it in the effect itself and it didn't work as well :(

 

EDIT: Tried it once again, doesnt work.

Edited by ghosu
Link to comment
Share on other sites

Could it possibly be because you're trying to use what looks like an actual spell (as opposed to an actual enchantment effect)?

 

Looks like you're using the effect that goes along with that master frost spell. You could try changing the effect archtype to dual value modifier so that it works like a normal frost effect, and then that should let the random% work while still maintaining whatever that effect does. (I presume it creates a frost explostion of some sort? AOE and all that?)

 

You could also try removing the RitualSpellEffect keyword, as that may also be impeding the random% from working.

 

I would suggest making a copy of that effect and sticking to that copy before doing anything else though. Using vanilla stuff directly like that will likely cause more problems then it will solve. Thats what I did with my version of it, I duplicated the knockback effect so that if I changed anything about it it wouldn't disrupt normal functionality.

Edited by imperistan
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...