Ok,Im like beginner in this editor so I do not understand what can I do I try but there is some missing info.You give me 1 event,2 action,1 condition and 2 other action.Its make me lost.Can I see a picture or more explanation on all those triggers?
I'll even add a bit more explanation to it. Using "random integer" in the triggers condition is not optimal at all. Once the value is set to a value between 1 and 4, it won't be changed again. Chances are it will even be set to 0 by default, if "random integer" is not valid (I'm not sure, but I think conditions are not able to take "decisions" like that. It just checks values, it won't set them).
So basically, do as Trieva said, and remove the condition which is not relevant anymore. To sum this up:
Set value = random integer between 1 and 4
If value == 1 then apply both effects
Now, each time your character will use its ability (and the process finishes), it will have 25% chances of applying the designated effects.
The trigger in the pic isn't quite correct yet. The Variable - Set carl line should be above the If then else action. You also need to set that variable to a random number between 1 and 4.
EDIT: Doing this will create that 'chance' effect that you need.
Hes setting the random variable correctly at the variable declare section. This is fine. Keep in mind .... random in triggers doesnt seem to be all that random........ you may wanna do ... int = rand 1 though 100 and then check to see if its <= 25 . .... you may see better random results....
Anyone feel like running some statistical analysis on the Galaxy rand()? :)
When I select "random race" in melee, I end up with the Zerg race 75% of the time. I can't tell if their algorithm is the same with custom triggers using random calculations, but I find this kind of self-explanatory...
As far as I can tell though, using a range from 1 to 4 or a range from 1 to 100 gives pretty much the same result. I usually use percentage only for convenience.