Random Numbers and Yanfly Script issue.

Greetings

I have an Problem with Yanflys convert damage script. It converts hp perfectely fine, but convert mp notetags simply doesnt work. At least with Armor, i need to try the others. There are no error messages or something like that, but if i cast a spell and wear an item with mp convert, it does nothing. While hp convert is working fine.

And the other Question: How can i include random Numbers in an Event. Like for example after attack, common event: choose randomly one of three actions and do it? I already heared it is kind of possible to use conditional branches, and that is something i already decided to do long time ago. But isnt there a function in ruby or the maker itself which can simply simulate rolling a dice, and put the result into a variable? I mean it IS about rpgs, Skillchecks and random results are not that unusual.
Oh, im an idiot. Just figured out after working with X variables for months, that you can simply choose to set or add random numbers in the variable control command. I have no Idea how i managed to miss that. So Problem no2 is solved.

Original thread: https://forums.rpgmakerweb.com/threads/random-numbers-and-yanfly-script-issue.115684/