Resource icon

Resource Z-Move Add On 1.0

Amethyst

Rookie
Member
Posts
8
#1
Amethyst submitted a new resource:

Z-Move Add On - This script includes instructions, graphics and code to add Z-Moves to any Essentials project!

Hello!

This is a scriptset to add Z-Moves to an Essentials project. Instructions and graphics are included with the download. It is free to use in your projects provided credit is given.

This has been tested with Essentials 16.2.

All of this is possible thanks to Reborn scripter Marcello's hard work; I'm just posting it here for him.

Please enjoy!
Read more about this resource...
 

WolfPP

Discord Wolf#1235
Member
Posts
84
#7
To sad :/

How can we adapt to EBS?

EDIT:
Guys, i try to add Z-move in EBS and im almost there!

So, the "issue" are here:
Code:
      if Input.trigger?(Input::C) || (defined?($mouse) && cw.mouseOver? && $mouse.leftClick?)  # Confirm choice
        if cw.index < 4
          @ret=cw.index
          @battle.pbRegisterMegaEvolution(index) if mega
          @battle.pbRegisterZMove(index) if zmove
          pbSEPlay("SE_Select2")
          @lastmove[index]=@ret
          @idleTimer=-1
          @inCMx=false
          break
        else
          @lastmove[index]=cw.index
          pbPlayCancelSE()
          @ret=-1
          break
        end
      elsif Input.trigger?(Input::A) || (defined?($mouse) && cw.overZMove? && cw.overMega? && $mouse.leftClick?) # Use Mega Evolution
        if @battle.pbCanMegaEvolve?(index)
          if mega
            mega = false
          else
            mega = true
          end
          cw.megaButtonTrigger
          pbSEPlay("SE_Select3")
        end
        if @battle.pbCanZMove?(index) # Use Z-Move
          if zmove
            zmove = false
          else
            zmove = true
          end
          cw.zButtonTrigger
          pbSEPlay("SE_Select3")
        end

When i press z-move and use spirit shuckle, will use Z-move Sinister Arrow Raid.Ok!

But, when i press z-move and use Quick Attack (example), will use Z-move Sinister Arrow Raid too, cuz i just copy and paste like Mega Evo.

Now, lets compare to 'original' script Z-Move add On:

Code:
      if Input.trigger?(Input::C)   # Confirm choice
        ret=cw.index
#
        if cw.zButton==2
          if battler.pbCompatibleZMoveFromIndex?(ret)
            pbPlayDecisionSE() 
            @lastmove[index]=ret
            return ret
          else
            @battle.pbDisplay(_INTL("{1} is not compatible with {2}!",PBMoves.getName(battler.moves[ret]),PBItems.getName(battler.item)))   
            @lastmove[index]=cw.index        
            return -1
          end
        else
          pbPlayDecisionSE() 
          @lastmove[index]=ret
          return ret
        end  
      elsif Input.trigger?(Input::A)   # Use Mega Evolution
        #if @battle.pbCanMegaEvolve?(index)
        if @battle.pbCanMegaEvolve?(index) && !pbIsZCrystal?(battler.item)
          @battle.pbRegisterMegaEvolution(index)
          cw.megaButton=2
          pbPlayDecisionSE
        end
#
        if @battle.pbCanZMove?(index)  # Use Z Move
          @battle.pbRegisterZMove(index)
          cw.zButton=2
          pbPlayDecisionSE()
        end   
#

Look here:
Code:
        if cw.zButton==2
          if battler.pbCompatibleZMoveFromIndex?(ret)
            pbPlayDecisionSE() 
            @lastmove[index]=ret
            return ret
          else
            @battle.pbDisplay(_INTL("{1} is not compatible with {2}!",PBMoves.getName(battler.moves[ret]),PBItems.getName(battler.item)))  
            @lastmove[index]=cw.index        
            return -1
          end
We need to add 'if battler.pbCompatibleZMoveFromIndex?(ret)' to haver 'else @battle.pbDisplay(_INTL("{1} is not compatible with {2}!",PBMoves.getName(battler.moves[ret]),PBItems.getName(battler.item)))' to EBS buttons.

Now... How can i add? lol
 
Last edited:
Top