• Do not use Discord to host any images you post, these links expire quickly! You can learn how to add images to your posts here.

21.1 - Help creating Ability that will ignore user's selected move, and instead select one of the user's moves at random

Tsoukinator

Novice
Member
Joined
Mar 12, 2024
Posts
30
As per the title, I am after creating an ability (called PANICMODE) which when the user is under 1/3 HP, it will trigger, causing the user to use one of their any 4 moves, but at 1.5x power.

My idea has led me to customise the method pbProcessTurn, though I'm not able to get this working.

Does anyone have any ideas to how this can be implemented?
 

Swdfm

Game Developer
Member
Joined
Sep 3, 2018
Posts
30
Yes!
A better place to start is probably straight after pbObedienceCheck in the Battler_UseMoveSuccessChecks page
This is because there is a chance that a Pokemon will use a random move if they disobey you
In fact, the code for it is found in pbDisobey
For the extra damage, you can basically just copy Blaze's ability effect thing and modify it slightly
Hope this helps
Swdfm
 
Back
Top