The PokéCommunity Forums

The PokéCommunity Forums (https://www.pokecommunity.com/index.php)
-   Binary ROM Hacking (https://www.pokecommunity.com/forumdisplay.php?f=284)
-   -   Other Aion hurt himself in confusion... (https://www.pokecommunity.com/showthread.php?t=364071)

Aion February 28th, 2016 3:53 AM

Aion hurt himself in confusion...
 
Okay so I'm still trying to get my Give Pikachu script to work...and no luck... I press A to talk to the guy to initiate the script...and nothing happens.. it just beeps when I press A and thats it... What the hell is happening >:( Heres is the script attached to him



#org 0x886B6CC
'-----------------------------------
#raw 0xFF
lock
faceplayer
checkflag 0x1200
if true jump 0x886B6F1 ' Flag is set
msgbox 0x886B714 ' Hey there!\pYou seem...
compare LASTRESULT 0x1
if == jump 0x886B6F9 ' Equal To
msgbox 0x886B759 ' Oh? That's too bad.\...
release
end

#org 0x886B6F1
'-----------------------------------
msgbox 0x886B809 ' How's that pikachu d...
release
end

#org 0x886B6F9
'-----------------------------------
msgbox 0x886B790 ' Oh! That's GREAT!\pH...
fanfare 0x13E
msgbox 0x886B7F2 ' \v\h01 recieved a PI...
waitfanfare
setflag 0x1200
msgbox 0x886B7AF ' Thanks again! I thin...
release
end


#org 0x886B714
= Hey there!\pYou seem like a nice person!\nWould you like this Pikachu?

#org 0x886B759
= Oh? That's too bad.\pCome back if you change your mind.

#org 0x886B809
= How's that pikachu doing?\nHopefully good.

#org 0x886B790
= Oh! That's GREAT!\pHere you go!

#org 0x886B7F2
= \v\h01 recieved a PIKACHU!

#org 0x886B7AF
= Thanks again! I think it will have\nmore fun with you than with me.

Phantom Phoenix February 28th, 2016 4:09 AM

msgbox 0x886B790 ' Oh! That's GREAT!\pH...
fanfare 0x13E
givepolemon 0x(pokemon species number in hex) 0x(level of pkmn) 0x(item to hold) 0x0 0x0 0x0
msgbox F2 ' \v\h01 recieved a PI...
you haven't used givepokemon command there.So,you will never get a pokemon..

Aion February 28th, 2016 4:19 AM

Oops.. forgot to put that rofl.. thought i did XD

EDIT: Added that in..still nothing

BluRose February 28th, 2016 5:01 AM

Quote:

Originally Posted by Aion (Post 9138924)
Oops.. forgot to put that rofl.. thought i did XD

EDIT: Added that in..still nothing

try adding in a "callstd 0x3" directly after the msgbox command(s)

DizzyEgg February 28th, 2016 1:34 PM

What is that scripting language? Syntax looks terrible, anyway any reason you're using flag 0x1200? It's not a safe flag.

Aion February 28th, 2016 11:30 PM

Quote:

Originally Posted by DizzyEgg (Post 9139719)
What is that scripting language? Syntax looks terrible, anyway any reason you're using flag 0x1200? It's not a safe flag.

It was compiled with PKSV

Phantom Phoenix February 29th, 2016 7:58 AM

Quote:

Originally Posted by Aion (Post 9140461)
It was compiled with PKSV

I am not familiar with PKSV scripting language.But,PKSV has a script generator.So,make sample givepokemon script through script generator and then see how givepokemon is done in PKSV.Then I think you will figure out yourself how it is done

Micael Alighieri March 1st, 2016 6:58 AM

The problem is quite simple actually, I'm not familiarized with PKSV's language, but I think you forgot the callstd commands after every msgbox.


All times are GMT -8. The time now is 2:23 AM.


Like our Facebook Page Follow us on Twitter © 2002 - 2018 The PokéCommunity™, pokecommunity.com.
Pokémon characters and images belong to The Pokémon Company International and Nintendo. This website is in no way affiliated with or endorsed by Nintendo, Creatures, GAMEFREAK, The Pokémon Company or The Pokémon Company International. We just love Pokémon.
All forum styles, their images (unless noted otherwise) and site designs are © 2002 - 2016 The PokéCommunity / PokéCommunity.com.
PokéCommunity™ is a trademark of The PokéCommunity. All rights reserved. Sponsor advertisements do not imply our endorsement of that product or service. User generated content remains the property of its creator.

Acknowledgements
Use of PokéCommunity Assets
vB Optimise by DragonByte Technologies Ltd © 2023.