• 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.
  • Apologies if you've had troubles connecting to the site, you may need a VPN to access it. Staff are also facing issues connecting, so if it's urgent please message Cat on-site or through Discord directly.
  • Hey Guest, staff applications are open! If you are interested in becoming a forum staff member and/or Discord staff member, please apply through this Google Form before April 2! You can also message Cat with any questions.
Resource icon

Resource Mid battle dialogue for v20+ 3.0

Hypertoxin55

Rookie
Member
Joined
Aug 12, 2024
Posts
1
I am using plugin(v20), and understand how to create a new function. However, how do i assign this function to a specific battle that i want?
 

grogro

Cooltrainer
Member
Joined
Mar 6, 2021
Posts
122
I readed the lost example picture, you should be fine now!
I am using plugin(v20), and understand how to create a new function. However, how do i assign this function to a specific battle that i want?
 

Cross Agento

Novice
Member
Joined
Jun 27, 2021
Posts
33
Error keeps happening where the Trainer won't go away after speaking.
Error Video
[Pokémon Essentials version 21.1]
[v21.1 Hotfixes 1.0.9]

Exception: NoMethodError
Message: undefined method `visible' for nil:NilClass

Backtrace:
[Mid Battle Dialogue] MBD.rb:1368:in `createProcesses'
193:Battle_Scene_BaseAnimation:12:in `initialize'
[Mid Battle Dialogue] MBD.rb:1362:in `initialize'
[Mid Battle Dialogue] MBD.rb:1304:in `new'
[Mid Battle Dialogue] MBD.rb:1304:in `pbHideOpponent'
[Mid Battle Dialogue] data.rb:59:in `block in <module:DialogueModule>'
[Mid Battle Dialogue] MBD.rb:1174:in `display'
[Mid Battle Dialogue] MBD.rb:1028:in `block in pbSendOutBattlers'
[Mid Battle Dialogue] MBD.rb:1027:in `each'
[Mid Battle Dialogue] MBD.rb:1027:in `pbSendOutBattlers'
 

grogro

Cooltrainer
Member
Joined
Mar 6, 2021
Posts
122
Error keeps happening where the Trainer won't go away after speaking.
Error Video
[Pokémon Essentials version 21.1]
[v21.1 Hotfixes 1.0.9]

Exception: NoMethodError
Message: undefined method `visible' for nil:NilClass

Backtrace:
[Mid Battle Dialogue] MBD.rb:1368:in `createProcesses'
193:Battle_Scene_BaseAnimation:12:in `initialize'
[Mid Battle Dialogue] MBD.rb:1362:in `initialize'
[Mid Battle Dialogue] MBD.rb:1304:in `new'
[Mid Battle Dialogue] MBD.rb:1304:in `pbHideOpponent'
[Mid Battle Dialogue] data.rb:59:in `block in <module:DialogueModule>'
[Mid Battle Dialogue] MBD.rb:1174:in `display'
[Mid Battle Dialogue] MBD.rb:1028:in `block in pbSendOutBattlers'
[Mid Battle Dialogue] MBD.rb:1027:in `each'
[Mid Battle Dialogue] MBD.rb:1027:in `pbSendOutBattlers'
Just to be sure, what is the code used for the battle? Its probably caused by old code that was not updated properly, and I need it for the diagnosis
 

Cross Agento

Novice
Member
Joined
Jun 27, 2021
Posts
33
Just to be sure, what is the code used for the battle? Its probably caused by old code that was not updated properly, and I need it for the diagnosis
Code for Character
Ruby:
Expand Collapse Copy
  IntRat= Proc.new{|battle|
      battle.scene.pbShowOpponent(0)
      battle.scene.disappearDatabox
      battle.scene.appearBar
      pbMessage"The Argent Region is home to pretty much any Pokemon in existance!"
      battle.scene.disappearBar
      battle.scene.appearDatabox
      battle.scene.pbHideOpponent(0)
      }
 

grogro

Cooltrainer
Member
Joined
Mar 6, 2021
Posts
122
Code for Character
Ruby:
Expand Collapse Copy
  IntRat= Proc.new{|battle|
      battle.scene.pbShowOpponent(0)
      battle.scene.disappearDatabox
      battle.scene.appearBar
      pbMessage"The Argent Region is home to pretty much any Pokemon in existance!"
      battle.scene.disappearBar
      battle.scene.appearDatabox
      battle.scene.pbHideOpponent(0)
      }
it's pbHideOpponent instead of pbHideOpponent(0). You don't need to specify who disappears as it's erasing the sprite currently on screen
 
Back
Top