The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Fan Games > Binary ROM Hacking
Reload this Page Script Script is randomly giving me masterballs

Notices
For all updates, view the main page.

Binary ROM Hacking Need a helping hand or just want to talk about binary ROM hacks? Get comments and answers to any ROM Hacking-related problems, questions or thoughts you have here.

Ad Content
Reply
 
Thread Tools
  #1   Link to this post, but load the entire thread.  
Old May 13th, 2018 (11:03 AM).
AnthonJohn AnthonJohn is offline
 
Join Date: Apr 2016
Gender: Male
Posts: 6
I'm trying to write a script for cubone to join my party after marowak has been defeated. The flag for her being defeated isnt set yet when ive tested so far, because the code seems to be acting REALLY weird.
This is the line of code i have:
Code:
#dynamic 0x259D36

#org @start
lock
fadeout 0x5
faceplayer
cry 0x68 0x0
waitcry
checkflag 0x2FF
if 0x1 goto @marowakisdead
msgbox @sadmarowak 0x1
release
fadein 0x1
end

#org @marowakisdead
cry 0x69 0x0
waitcry
msgbox @marowakisdead1 0x1
cry 0x69 0x0
waitcry
cry 0x68 0x0
waitcry
givepokemon 0x68 0x5 0x0 0x0 0x0 0x0
fadescreen 0x1
msgbox @marowakisdead2 0x1 '"Pl/h1Dase t/h17ke /h19/h2Bre /h24f..."
hidesprite LASTTALKED
fadescreen 0x0
release
fadein 0x1
end

#org @sadmarowak
= This cubone sits in a puddle of\ntears..\lThe tears are flowing out\lof a large skull over his head.\lWhat happened...?

#org @marowakisdead1
= You hear the cry of a Marowak but\ncan't figure out where it came\lfrom.\pThe tears stop flowing from\nCubone's mask..\pCubone looks up at you..\p Is his mother here now?\pCubone hugs your leg and begins\ncrying again.

#org @marowakisdead2
= Pl/h1Dase t/h17ke /h19/h2Bre /h24f hh/h21m
does anyone know why this is returning "player has received Master ball!" but it will also say "player has received ????????????" I'm totally stumped.
Reply With Quote
  #2   Link to this post, but load the entire thread.  
Old May 13th, 2018 (2:30 PM).
DrFuji's Avatar
DrFuji DrFuji is offline
Heiki Hecchara‌‌
 
Join Date: Sep 2009
Location: Aussie
Age: 30
Gender: Male
Nature: Jolly
Posts: 1,693
Its because of your msgbox types being set to 0x1. Change them to either 0x2 or 0x6 and you should get the correct messages.
__________________
Reply With Quote
  #3   Link to this post, but load the entire thread.  
Old May 15th, 2018 (3:51 PM).
BirdstarCat13 BirdstarCat13 is offline
 
Join Date: Nov 2017
Gender: Male
Posts: 476
I found that instead of using 0x0 or 0x1 in the msgbox line, use MSG_SIGN and it will work fine.
Reply With Quote
Reply

Quick Reply

Join the conversation!

Create an account to post a reply in this thread, participate in other discussions, and more!

Create a PokéCommunity Account
Ad Content

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 9:17 AM.