Home Creators Posts Import Register Favorites Logout

Content

turns out that type thing dealioso that i posted about yesterdoso was revolved in a quick jump over a lazy dog. so that's nice. i figured it would take a couple more days than that. uh. but that doesn't mean there aren't still 110 function codes that will need to be put into the scripts. so smash my shell and call me a shuckle.

for today, here's the logic flow for function code 046 which i've listed in the title to deceive you into thinking is for the move psychic, when really, it's for the move psychic, but also a bunch of stuff like flash cannon energy ball and whatever else lowers special defense by one stage except it doesnt matter at all because that effect only procs when your opponent is stalling out your vaporeon that there's no way they could kill the next turn otherwise and then it forces you to switch out despite her being a perfect princess wall

wait i guess that's all right since i'm on the AI's side here
uh.
distraction!

046- Psychic

  • if this pokemon has no special attacks, or opponent's sp.def cannot be lowered, or opponent's sp.def is already raised above 0 stages, or opponent's sp.def is already -6
  • --if this move does not do damage
  • ----score = 0
  • else
  • --miniscore = 100
  • ----if the opponent has a recovery move
  • ------minscore * 1.3
  • ----if there's a sweeper in the team that is not this pokemon
  • ------miniscore * 1.1
  • ----if the player has only one pokemon left or if the current pokemon cannot switch (due to shadow tag, mean look, etc)
  • ------miniscore * 1.4
  • ----if the oppoising pokemon is burned or poisoned
  • ------miniscore * 1.2
  • ----if the opponent pokemon has lowered stages already 
  • ------minimini = 5 * number of stages lowered (should be negative)
  • ------minimini + 100 
  • ------minimini / 100
  • ------miniscore * minimini
  • ----if this is the last pokemon on our own team
  • -------miniscore * 0.5
  • ----if the opponent has unaware, competitive, defiant, or contrary 
  • -------miniscore * 0.1
  • ----if this pokemon has a status
  • -------miniscore * 0.7
  • ----if we're in the mirror field
  • -------and this move is flash cannon or luster purge
  • ---------and this pokemon has lowered accuracy
  • ---------or the opponent has raised evasion or brightpowder or lax incense or an activated sand veil or snow cloak
  • ---------or the opponent is in a semi-invulnerable state and is slower than this pokemon
  • ---------and neither pokemon has no guard
  • -----------miniscore * 2
  • ----if this is a damaging move
  • -------miniscore - 100
  • -------miniscore*(effect chance /100) 
  • -------if this pokemon has serenene grace
  • ---------miniscore * 2
  • -------miniscore + 100
  • ----miniscore / 100
  • ----score * miniscore

Comments

No comments found for this post.