Changing skillsystem proc chance

Currently theorycrafting new skills for a new project, I had the idea of adjusting skill system proc skills to be affected by a enemies stats. Similar to how crit is reduced by luck. Would this be possible to do, and if so, how?

Well you would edit the code. For example, in astra:

ldrb r0, [r4, #0x15] @speed stat as activation rate
mov r1, r4 @skill user
blh d100Result
cmp r0, #1
bne End

It loads the unit’s speed into r0 and uses that as the proc chance. You’d just add a line adding or subtracting whatever stat of the opponent’s you’d want to use, before the rolling 100 call.

Thanks, I figured, couldn’t test it because I didn’t have access to my computer.