Talk:Making a Re-Patch/@comment-24859478-20140424183837/@comment-24213553-20140505161624

These commands (mov $sel1,$kiki_s1 and mov $sel2,kiki_s2) are used for *selprint1 and *selprint2 subroutines. These two subroutines print 1 or 2 lines of text in the battle window.

Rnd2 is the NScripter command for RNG. The result is integer, the first parameter is variable name, next parameters are lower and upper borders. So, as the example, rnd2 %ransu,3,10 will set %ransu as the random integer value between 3 and 10.

Last question - these two lines will check the number of strings to print. If $sel1=$kiki_s1="" - you don't need to print anything (so skip 3 will go to name "" line). If $sel2=$kiki_s2="" - you must print 1 string, so *selprint1 is used, then again skip 2 move to name "". Else you must print 2 strings, *selprint2 is used.