Jump to content

my script, it doesnt work, please help


Recommended Posts

So finally time to work on it and after reading what you said about hit events, and my current lack of wanting to explore states, I looked intoother ways to get the same result. I now have it attached to an enchantment but I still cant get it to work. when I compile it there are no errors reported but when I test, sigh... nothing
Scriptname HitChanceTest extends MagicEffect
{Hit chance enchant}
int Property HitChance Auto
Event OnEffectStart(Actor AkTarget, Actor akCaster)
akCaster(int HitChance = Utility.RandomInt (1,20))
if HitChance <= 10
Debug.Notification("Miss!")
elseif HitChance >= 11
Debug.Notification("Hit!")
endif
EndEvent
Link to comment
Share on other sites

  • Recently Browsing   0 members

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