What's new

Tech Issues Is there any possible way to make the AI use H moves a lot?


genderneutralnoun

New member
Joined
May 29, 2020
Messages
1
Reputation score
0
Title. I want to play as the victim character and have the AI aggressor try to do H moves on me a lot. Doesn't have to be balanced. Sorry if I'm doing this wrong, I don't think I've posted on this site before.
 

Mizulugu

Well-known member
Joined
May 27, 2021
Messages
3,626
Reputation score
11,285
There's many possible ways to make an AI use any H moves against yourself, but it depends how often you want it to happen, and from how distance you want this certain character to perform the move.

Here's a very basic randomization that will trigger if a character is near you. (For Ai btw)
NOTE: If you want the character to perform it right away remove:
"& Random%100 = 1"
Code:
;Random moment when enemy is near you
[State -1, Ai]
Type = ChangeState
TriggerAll = RoundState = 2 ;Move can only be done at the battling phrase
Triggerall = Statetype != A ;You must not be attacking to perform the move
Triggerall = Ctrl ;You must have full control of your character to perform the move
Trigger1 = AiLevel >= 1 & Random%100 = 1 ;You must be an AI to perform it
Trigger1 = p2bodydist X = [0,60] ;You need to be near an enemy
Value = ;H move number goes here
No comment version:
Code:
[State -1, RandomGrab_Ai]
Type = ChangeState
TriggerAll = RoundState = 2
Triggerall = Statetype != A
Triggerall = Ctrl
Trigger1 = AiLevel >= 1 & Random%100 = 1
Trigger1 = p2bodydist X = [0,60]
Value =
 
Top