Jump to content

(Custom move) How would I specify a Pokemon to transform into?


Ponzaam

Recommended Posts

Hi there,

 

Working on a move that (temporarily) unevolves a pokemon mid-battle, and I'm having a bit of trouble pointing to the pre-evolved form in my scripts.

 

Currently I'm basing the script off of the move Transform and I believe I understand what all the scripts that power Transform do. The key command to change the actual sprite appears to be @battle.scene.pbChangePokemon.

 

The problem is that for Transform, "opponent.pokemon" is specified as the transformation target, and I'm not really sure what notation I'd need to use to call out a specific pokemon instead.

 

In my case I'm making the initial test version of the move for Delphox, so my best guess was replacing "opponent.pokemon" with "$cache.pkmn[:BRAIXEN]" but that throws a NoMethodError (pictured below).

 

Does anybody know what the proper notation might be to explicitly refer to a particular pokemon for a @battle.scene.pbChangePokemon command?

 

Thanks!

NoMethodError.png

Edited by Ponzaam
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...