Advertisement
Lunos

Pokeruby | Force an Egg to Hatch

Jun 17th, 2019
369
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.58 KB | None | 0 0
  1. ForcedHatch::
  2.     faceplayer
  3.     special SelectMonForNPCTrade
  4.     waitstate
  5.     compare VAR_SPECIAL_4, 255
  6.     goto_if_eq ForcedHatchEnd
  7.     specialvar RESULT, ScriptGetPartyMonSpecies
  8.     compare RESULT, SPECIES_EGG
  9.     goto_if_ne CantForceHatch
  10.     special EggHatch
  11.     waitstate
  12.     goto ForcedHatchEnd
  13. ForcedHatchEnd:
  14.     lock
  15.     msgbox ForceHatch_Text_End, 4
  16.     release
  17.     end
  18. CantForceHatch:
  19.     lock
  20.     msgbox ForceHatch_Text_NotAnEgg
  21.     release
  22.     end
  23.  
  24. ForceHatch_Text_End:
  25.     .string "Come back anytime.$"
  26.  
  27. ForceHatch_Text_NotAnEgg:
  28.     .string "I'm sorry, but that's not an EGG.$"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement