Essentials Script Z-Move Add On

Started by AmethystRain June 1st, 2017 2:17 AM
  • 19357 views
  • 55 replies

AmethystRain

pixie-powered judgment!

Female
Seen 2 Weeks Ago
Posted January 26th, 2020
251 posts
8.6 Years
hello again!

a while ago we finished a z-move system and promised an add-on for Essentials. After a fair bit of testing, it's finally ready! You may use this add-on in your projects assuming credit is given per the included readme. Instructions and graphics can also be found in the download.

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

http://rebornevo.com/downloads/ZMoveAddOn.zip

This has been tested with Essentials 16.2. Please enjoy!
i'm a lover before a fighter, but a killer before a kisser
also i made reborn or something

Damien.aspiring.fandev

Chapter 16 A New Dawn { ||:^❩ )

Age 21
Male
[Mystery Zone] *epic pizzicato arpeggio*
Seen March 2nd, 2020
Posted December 31st, 2018
960 posts
3.6 Years
Magnificent! ^^

I am but a tearful clown. Though I smile, I cry inside.
-Clown Lee. Jubilife TV station(Diamond&Pearl)/various pokémon centers through Sinnoh(Platinum)
Want some gen5 apricorn balls?
Seen September 7th, 2017
Posted June 1st, 2017
1 posts
3.6 Years
I had two questions: you make reference to new moves in the scripts but moves like aurora veil havent been added to this script, do you have any plans for that?
second question: there is a part in the script i fail to understand:

"getForm"=>proc{|pokemon|
next 1 if isConst?(pokemon.item,PBItems,:FISTPLATE) || isConst?(pokemon.item,PBItems,:FIGHTINIUMZ2)
next 2 if isConst?(pokemon.item,PBItems,:SKYPLATE) || isConst?(pokemon.item,PBItems,:FLYINIUMZ2)
next 3 if isConst?(pokemon.item,PBItems,:TOXICPLATE) || isConst?(pokemon.item,PBItems,:POISONIUMZ2)
next 4 if isConst?(pokemon.item,PBItems,:EARTHPLATE) || isConst?(pokemon.item,PBItems,:GROUNDIUMZ2)
next 5 if isConst?(pokemon.item,PBItems,:STONEPLATE) || isConst?(pokemon.item,PBItems,:ROCKIUMZ2)
next 6 if isConst?(pokemon.item,PBItems,:INSECTPLATE) || isConst?(pokemon.item,PBItems,:BUGINIUMZ2)
next 7 if isConst?(pokemon.item,PBItems,:SPOOKYPLATE) || isConst?(pokemon.item,PBItems,:GHOSTIUMZ2)
next 8 if isConst?(pokemon.item,PBItems,:IRONPLATE) || isConst?(pokemon.item,PBItems,:STEELIUMZ2)
next 10 if isConst?(pokemon.item,PBItems,:FLAMEPLATE) || isConst?(pokemon.item,PBItems,:FIRIUMZ2)
next 11 if isConst?(pokemon.item,PBItems,:SPLASHPLATE) || isConst?(pokemon.item,PBItems,:WATERIUMZ2)
next 12 if isConst?(pokemon.item,PBItems,:MEADOWPLATE) || isConst?(pokemon.item,PBItems,:GRASSIUMZ2)
next 13 if isConst?(pokemon.item,PBItems,:ZAPPLATE) || isConst?(pokemon.item,PBItems,:ELECTRIUMZ2)
next 14 if isConst?(pokemon.item,PBItems,:MINDPLATE) || isConst?(pokemon.item,PBItems,:PSYCHIUMZ2)
next 15 if isConst?(pokemon.item,PBItems,:ICICLEPLATE) || isConst?(pokemon.item,PBItems,:ICIUMZ2)
next 16 if isConst?(pokemon.item,PBItems,:DRACOPLATE) || isConst?(pokemon.item,PBItems,:DRAGONNIUMZ2)
next 17 if isConst?(pokemon.item,PBItems,:DREADPLATE) || isConst?(pokemon.item,PBItems,:DARKINIUMZ2)
next 18 if isConst?(pokemon.item,PBItems,:PIXIEPLATE) || isConst?(pokemon.item,PBItems,:FAIRIUMZ2)
next 0
}
})

why skip next 9?

Marin

Age 18
Male
Seen 1 Week Ago
Posted 4 Weeks Ago
959 posts
4 Years
I had two questions: you make reference to new moves in the scripts but moves like aurora veil havent been added to this script, do you have any plans for that?
second question: there is a part in the script i fail to understand:

"getForm"=>proc{|pokemon|
next 1 if isConst?(pokemon.item,PBItems,:FISTPLATE) || isConst?(pokemon.item,PBItems,:FIGHTINIUMZ2)
next 2 if isConst?(pokemon.item,PBItems,:SKYPLATE) || isConst?(pokemon.item,PBItems,:FLYINIUMZ2)
next 3 if isConst?(pokemon.item,PBItems,:TOXICPLATE) || isConst?(pokemon.item,PBItems,:POISONIUMZ2)
next 4 if isConst?(pokemon.item,PBItems,:EARTHPLATE) || isConst?(pokemon.item,PBItems,:GROUNDIUMZ2)
next 5 if isConst?(pokemon.item,PBItems,:STONEPLATE) || isConst?(pokemon.item,PBItems,:ROCKIUMZ2)
next 6 if isConst?(pokemon.item,PBItems,:INSECTPLATE) || isConst?(pokemon.item,PBItems,:BUGINIUMZ2)
next 7 if isConst?(pokemon.item,PBItems,:SPOOKYPLATE) || isConst?(pokemon.item,PBItems,:GHOSTIUMZ2)
next 8 if isConst?(pokemon.item,PBItems,:IRONPLATE) || isConst?(pokemon.item,PBItems,:STEELIUMZ2)
next 10 if isConst?(pokemon.item,PBItems,:FLAMEPLATE) || isConst?(pokemon.item,PBItems,:FIRIUMZ2)
next 11 if isConst?(pokemon.item,PBItems,:SPLASHPLATE) || isConst?(pokemon.item,PBItems,:WATERIUMZ2)
next 12 if isConst?(pokemon.item,PBItems,:MEADOWPLATE) || isConst?(pokemon.item,PBItems,:GRASSIUMZ2)
next 13 if isConst?(pokemon.item,PBItems,:ZAPPLATE) || isConst?(pokemon.item,PBItems,:ELECTRIUMZ2)
next 14 if isConst?(pokemon.item,PBItems,:MINDPLATE) || isConst?(pokemon.item,PBItems,:PSYCHIUMZ2)
next 15 if isConst?(pokemon.item,PBItems,:ICICLEPLATE) || isConst?(pokemon.item,PBItems,:ICIUMZ2)
next 16 if isConst?(pokemon.item,PBItems,:DRACOPLATE) || isConst?(pokemon.item,PBItems,:DRAGONNIUMZ2)
next 17 if isConst?(pokemon.item,PBItems,:DREADPLATE) || isConst?(pokemon.item,PBItems,:DARKINIUMZ2)
next 18 if isConst?(pokemon.item,PBItems,:PIXIEPLATE) || isConst?(pokemon.item,PBItems,:FAIRIUMZ2)
next 0
}
})

why skip next 9?
Type 9 is the ??? Type. It's not typically used.

AmethystRain

pixie-powered judgment!

Female
Seen 2 Weeks Ago
Posted January 26th, 2020
251 posts
8.6 Years
I had two questions: you make reference to new moves in the scripts but moves like aurora veil havent been added to this script, do you have any plans for that?
second question: there is a part in the script i fail to understand:

"getForm"=>proc{|pokemon|
next 1 if isConst?(pokemon.item,PBItems,:FISTPLATE) || isConst?(pokemon.item,PBItems,:FIGHTINIUMZ2)
next 2 if isConst?(pokemon.item,PBItems,:SKYPLATE) || isConst?(pokemon.item,PBItems,:FLYINIUMZ2)
next 3 if isConst?(pokemon.item,PBItems,:TOXICPLATE) || isConst?(pokemon.item,PBItems,:POISONIUMZ2)
next 4 if isConst?(pokemon.item,PBItems,:EARTHPLATE) || isConst?(pokemon.item,PBItems,:GROUNDIUMZ2)
next 5 if isConst?(pokemon.item,PBItems,:STONEPLATE) || isConst?(pokemon.item,PBItems,:ROCKIUMZ2)
next 6 if isConst?(pokemon.item,PBItems,:INSECTPLATE) || isConst?(pokemon.item,PBItems,:BUGINIUMZ2)
next 7 if isConst?(pokemon.item,PBItems,:SPOOKYPLATE) || isConst?(pokemon.item,PBItems,:GHOSTIUMZ2)
next 8 if isConst?(pokemon.item,PBItems,:IRONPLATE) || isConst?(pokemon.item,PBItems,:STEELIUMZ2)
next 10 if isConst?(pokemon.item,PBItems,:FLAMEPLATE) || isConst?(pokemon.item,PBItems,:FIRIUMZ2)
next 11 if isConst?(pokemon.item,PBItems,:SPLASHPLATE) || isConst?(pokemon.item,PBItems,:WATERIUMZ2)
next 12 if isConst?(pokemon.item,PBItems,:MEADOWPLATE) || isConst?(pokemon.item,PBItems,:GRASSIUMZ2)
next 13 if isConst?(pokemon.item,PBItems,:ZAPPLATE) || isConst?(pokemon.item,PBItems,:ELECTRIUMZ2)
next 14 if isConst?(pokemon.item,PBItems,:MINDPLATE) || isConst?(pokemon.item,PBItems,:PSYCHIUMZ2)
next 15 if isConst?(pokemon.item,PBItems,:ICICLEPLATE) || isConst?(pokemon.item,PBItems,:ICIUMZ2)
next 16 if isConst?(pokemon.item,PBItems,:DRACOPLATE) || isConst?(pokemon.item,PBItems,:DRAGONNIUMZ2)
next 17 if isConst?(pokemon.item,PBItems,:DREADPLATE) || isConst?(pokemon.item,PBItems,:DARKINIUMZ2)
next 18 if isConst?(pokemon.item,PBItems,:PIXIEPLATE) || isConst?(pokemon.item,PBItems,:FAIRIUMZ2)
next 0
}
})

why skip next 9?
Yepyep M3rein is right-- but this will depend on your given types.txt

As for the new moves, this is not a Gen 7 Add-on. We lament that we didn't have the foresight to include our generic Gen 7 move/ability/etc scripts in a separate add-on but it's a bit late to for that, so this focuses strictly on Z-Moves with the necessary calls in place.
i'm a lover before a fighter, but a killer before a kisser
also i made reborn or something

Luka S.J.

Jealous Croatian

Age 27
Male
Croatia
Seen 1 Day Ago
Posted 3 Weeks Ago
1,210 posts
11.9 Years
Ok so I have everything in the game and working, but now, how do I activate Z-moves? Because I have the necessary requirements but nothing happens. I have the Zring and the Z-crystal attached and I get no prompt to use a Z-Move.
EBS is not compatible with this Z-Move script if you're using it. Idk when it'll be done, but it'll be done eventually.

tutoriando

Manoel Afonso

Male
Porto Alegre, Brasil
Seen October 20th, 2020
Posted April 25th, 2018
16 posts
3.3 Years
It's very cool!! But work in 15 version?
My game fanpage: http://fb.com/PKMDimensions

Pokémon Dimensions is a fan game that proposes to bring several different dimensions in a single game. Explore Pokémon World, win the challenges of Digimon World, discover a wonderful story with Monster Rancher, and many other universes!
Male
Australia
Seen 3 Weeks Ago
Posted September 10th, 2020
44 posts
4.2 Years
ok soo ive looked at porting this over to v17.2 looks 2 complicated for me

has anyone else had any luck?
I've gotten mine to work for v17.2 but in order to do so you need to manually copy and paste the Z-move scripts from here into you're v17.2. Takes a while but if you look at the errors it'll tell you what you still need to copy and paste in if that makes sense.
Male
Australia
Seen 3 Weeks Ago
Posted September 10th, 2020
44 posts
4.2 Years
Because people have been asking me here is the Z-move code for 17.2. I apologise if I'm not allowed to post this.

Disclaimer:
I have no involvement in making any of the scripts or with the people who made it. I did this to help those who may have trouble transferring the Z-move script to 17.2. Please credit the people who made these scripts.

p.claydon

Female
Seen September 24th, 2020
Posted September 9th, 2020
396 posts
9.9 Years
ok so this does indeed work however the zmove icon is not showing during battle any particular reason for this?

EDIT

Ok so sortted the file battlezmove needs to be renamed to z move and placed in the pictures/battle folder

now just gotta add megas
Still learning how to sprite but if you want to look at my progress then here you go
http://pclaydon.deviantart.com/gallery/

MillaLya

Non-binary
Seen 10 Hours Ago
Posted July 21st, 2020
11 posts
2.8 Years
Because people have been asking me here is the Z-move code for 17.2. I apologise if I'm not allowed to post this.

Disclaimer:
I have no involvement in making any of the scripts or with the people who made it. I did this to help those who may have trouble transferring the Z-move script to 17.2. Please credit the people who made these scripts.
I was using your v17.2 version of scripts and when I went debugging there's an error message when I use the Z-Will'o'Wisp:
Spoiler:
[Pokémon Essentials version 17.2]
Exception: NoMethodError
Message: undefined method `name=' for #<PokeBattle_Move_00A:0xdb1e128>
PokeBattle_ZMoves:72:in `initialize'
PokeBattle_Battle:1803:in `new'
PokeBattle_Battle:1803:in `pbUseZMove'
PokeBattle_Battler:3914:in `pbProcessTurn'
PokeBattle_Battle:2922:in `pbAttackPhase'
PokeBattle_Battle:2919:in `each'
PokeBattle_Battle:2919:in `pbAttackPhase'
PokeBattle_Battle:2907:in `times'
PokeBattle_Battle:2907:in `pbAttackPhase'
PokeBattle_Battle:2599:in `pbStartBattleCore'

I tried debugging it myself and realized that PokeBattle_Move_00A stands for the standard burn effect instead of a legal move. However, I have no idea why the script would try to return the name of it.
Anyone could help?
(The script went perfectly for damaging moves.)

--Update--
Ok it works to change all
zchoice[2].name = @name
into
@name = zchoice[2].name
and all
@oldmove.name = @oldname
into
@oldname = @oldmove.name
Male
Australia
Seen 3 Weeks Ago
Posted September 10th, 2020
44 posts
4.2 Years
I've gone and fixed the problems with Z-Button not appearing. Sorry but I've been busy with Getting into uni and actually doing uni. Anyway here is the scripts and once again I had no hand in developing this, I only made it compatible with 17.2. Please give credit to the original creators.
Seen 1 Week Ago
Posted August 18th, 2020
35 posts
4.6 Years
I've gone and fixed the problems with Z-Button not appearing. Sorry but I've been busy with Getting into uni and actually doing uni. Anyway here is the scripts and once again I had no hand in developing this, I only made it compatible with 17.2. Please give credit to the original creators.
Hello,
I added your script file to pure PKMN Essentials 17.2 and If I want use Z move in second battle makes this error.
Spoiler:
Exception: NoMethodError
Message: undefined method `fullname' for nil:NilClass
PokeBattle_Battle:1854:in `pbUseZMove'
PokeBattle_Battler:3905:in `pbProcessTurn'
PokeBattle_Battle:2984:in `pbAttackPhase'
PokeBattle_Battle:2981:in `each'
PokeBattle_Battle:2981:in `pbAttackPhase'
PokeBattle_Battle:2969:in `times'
PokeBattle_Battle:2969:in `pbAttackPhase'
PokeBattle_Battle:2661:in `pbStartBattleCore'
PokeBattle_Battle:2660:in `logonerr'
PokeBattle_Battle:2660:in `pbStartBattleCore'

WolfPP

Discord: Wolf#1235

Male
Brazil
Seen 5 Hours Ago
Posted 3 Weeks Ago
1,242 posts
2.3 Years
Hello,
I added your script file to pure PKMN Essentials 17.2 and If I want use Z move in second battle makes this error.
Spoiler:
Exception: NoMethodError
Message: undefined method `fullname' for nil:NilClass
PokeBattle_Battle:1854:in `pbUseZMove'
PokeBattle_Battler:3905:in `pbProcessTurn'
PokeBattle_Battle:2984:in `pbAttackPhase'
PokeBattle_Battle:2981:in `each'
PokeBattle_Battle:2981:in `pbAttackPhase'
PokeBattle_Battle:2969:in `times'
PokeBattle_Battle:2969:in `pbAttackPhase'
PokeBattle_Battle:2661:in `pbStartBattleCore'
PokeBattle_Battle:2660:in `logonerr'
PokeBattle_Battle:2660:in `pbStartBattleCore'
Do ya add or replace?

I replace and all works fine.