Chacha Dinosaur

Adamant and adaptive dinosaur.

Age 24
Male
Seen March 4th, 2018
Posted September 8th, 2017
454 posts
5.9 Years
Some updated effects for the old moves:

1. Knock off:

This emulates the gen 6 buff for Knock Off. Using pawell and kurapika's Acrobatics' effect and reading the JPAN's incredibly useful Battle Script Thread, I managed to create this. The problem is that to emulate knock off's 1.5 increase when the foe is holding an item, the damage multiplier set to 3 and set to 2 for normal damage. To compensate for this you have to set its base power to 32 or 33 (i.e 65/2 to emulate Gen VI damage nearly) or 'the actual intended base power that you want to keep in you game' divided by 2. Because I am unable to manipulate damage increase in fractions using battle scripts.
Anyways, here is the code.
#dynamic 0x(YourOffset)
#freespacebyte 0xFF

#org @start
jumpifbyte 0x0 0x02023D6C 0x0 @slot1
jumpifbyte 0x0 0x02023D6C 0x1 @slot2
jumpifbyte 0x0 0x02023D6C 0x2 @slot3
jumpifbyte 0x0 0x02023D6C 0x3 @slot4
goto @doubledamage

#org @slot1
jumpifhalfword 0x1 0x02023C12 0x0 @tripledamage
goto @doubledamage

#org @slot2
jumpifhalfword 0x1 0x02023C6A 0x0 @tripledamage
goto @doubledamage

#org @slot3
jumpifhalfword 0x1 0x02023CC2 0x0 @tripledamage
goto @doubledamage

#org @slot4
jumpifhalfword 0x1 0x02023D1A 0x0 @tripledamage
goto @doubledamage

#org @tripledamage
setbyte damagemultiplier 0x3
goto 0x81D8263

#org @doubledamage
setbyte damagemultiplier 0x2
goto 0x81D6900
So it works effectively but the problem is that it displays the half of actual intended power.

2. Blizzard (infinite accuracy in hail and chance to freeze opponent)
#dynamic 0x(YourOffset)
#freespacebyte 0xFF

#org @blizzard
setbyte 0x2023E85 0x4
jumpifhalfword 0x0 weather 0x80 @notmiss
goto 0x81D6900

#org @notmiss
attackcanceler
attackstring
ppreduce
calculatedamage
attackanimation
waitanimation
missmessage
cmd5c 0x0
waitstate
graphicalhpupdate 0x0
datahpupdate 0x0
critmessage
waitmessage 0x40
resultmessage
waitmessage 0x40
seteffectwithchancetarget
faintpokemon 0x0 0x0 0x0
setbyte 0x2023FD8 0x0
cmd49 0x0 0x0
end
3. Charge (set charge and raise user's sp. def by one stafe)
#dynamic 0x(YourOffset)
#freespacebyte 0xFF

#org @charge
attackcanceler
attackstring
ppreduce
setcharge
attackanimation
waitanimation
printstring 0xA5
waitmessage 0x40
jumpifstat 0x1 0x0 0x5 0xC 0x81D694E
setbyte 0x2023FDE 0x15
statbuffchange 0x1 true 0x81D694E
jumpifbyte 0x0 0x2023E87 0x2 0x81D694E
playstatchangeanimation 0x1 0x30 0x0
printfromtable 0x83FE57C
waitmessage 0x40
goto 0x81D694E
New Effect:
Hex (inflict double damage to a status-ed foe)
#dynamic 0x(YourOffset)
#freespacebyte 0xFF

#org @hex
jumpifstatus 0x0 0x10 @doubledamage 
jumpifstatus 0x0 0x8 @doubledamage
jumpifstatus 0x0 0x80 @doubledamage
jumpifstatus 0x0 0x40 @doubledamage
jumpifstatus 0x0 0x7 @doubledamage
goto 0x81D6900

#org @doubledamage
setbyte damagemultiplier 0x2
goto 0x81D6900