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 Script (?) (https://www.pokecommunity.com/showthread.php?t=360310)

tobelios December 25th, 2015 8:41 AM

Script (?)
 
Hi. I have created the following script:
Spoiler:


#dyn 0x740000
#org @start
lock
faceplayer
setvar 0x4011 0x1
setflag 0x200
applymovement PLAYER @m1
pauseevent 0x0
msgbox @1
callstd MSG_NORMAL
closemsg
msgbox @2
callstd MSG_NORMAL
closemsg
applymovement PLAYER @m2
applymovement 0x5 @m3
pauseevent 0x0
applymovement PLAYER @m4
pauseevent 0x0
message @3
callstd MSG_NORMAL
closemsg
cry LUGIA 0x2
message @4
callstd MSG_NORMAL
closemsg
cry ALAKAZAM 0x2
disappear 0x1
disappear 0x2
disappear 0x3
disappear 0x4
cry LUGIA 0x2
message @5
callstd MSG_NORMAL
closemsg
applymovement 0x5 @m5
pauseevent 0x0
message @6
callstd MSG_NORMAL
closemsg
applymovement 0x5 @m6
pauseevent 0x0
applymovement 0x6 @m7
applymovement 0x7 @m8
applymovement 0x8 @m9
pauseevent 0x0
applymovement 0x9 @m10
applymovement 0x10 @m11
applymovement 0x11 @m12
pauseevent 0x0
message @7
callstd MSG_NORMAL
closemsg
applymovement PLAYER @m13
pauseevent 0x0
message @8
callstd MSG_NORMAL
closemsg
cry LUGIA 0x2
message @9
callstd MSG_NORMAL
closemsg
cry LUGIA 0x2
fadescreen FADEOUT_BLACK
disappear 0x5
disappear 0x6
disappear 0x7
disappear 0x8
disappear 0x9
disappear 0x10
disappear 0x11
disappear 0x0
fadescreen FADEIN_BLACK
message @10
callstd MSG_NORMAL
closemsg
message @11
callstd MSG_NORMAL
closemsg
cry LUGIA 0x2
message @12
callstd MSG_NORMAL
closemsg
release
end

#org @m1
M walk_up end

#org @1
= ?:As I always say,Team Rocket always\nwin! hahahahahahaha

#org @2
= ?:Now, lets continue to our plan!\p?:Elite of Evil,I have proven\pthat Team Rocket worths\n to be your partner!\p?:Here's the \v\h01!

#org @m2
M look_left walk_left look_up walk_up walk_up end

#org @m3
M look_left end

#org @m4
M look_right look_up walk_up end

#org @3
= EoE1:Now let's take what\nwe came here for.\pEoE1:And I don't mean you,\n\v\h01!\pI mean...\pEoE2:Somethings is not right!

#org @4
= EoE2:We have to leave NOW!\pEoE:Yes, you are right!\nEoE2:Alakazam, use TELEPORT!

#org @5
= \v\h01:What...\nWhat was that sound?

#org @m5
M walk_up walk_Up look_down end

#org @6
= ?:We have to leave now!\p?:Follow me!

#org @m6
M look_up walk_up end

#org @m7
M look_up walk_up walk_up end

#org @m8
M look_up walk_up walk_up end

#Org @m9
M look_up walk_up walk_up end

#org @m10
M walk_left look_up walk_up walk_up end

#Org @m11
M walk_left look_up walk_up walk_up end

#org @m12
M walk_left look_up walk_up walk_up end

#org @7
= \v\h01:(I should also leave right now!)

#org @m13
M walk_up walk_up end

#org @8
= ?:Is that L....?

#org @9
= \v\h01:What kind of Pokemon is that?

#org @10
= AAAAAAAAAA

#org @11
= \v\h01:Where...\nWhere is everyone?

#org @12
= \v\h01:I should find an exit\nright now!



but I have a small problem, the person events number 10 and 11 doesn't do anything in both the applymovement and the disappear command. Is there any problem in the script or somewhere else? Everything else works fine in the script.

esperance December 25th, 2015 9:23 AM

Well 10 and 11 are 0xA and 0xB in hexadecimal. Is that what you meant to put there?

tobelios December 25th, 2015 9:44 AM

Quote:

Originally Posted by Hopeless Masquerade (Post 9049525)
Well 10 and 11 are 0xA and 0xB in hexadecimal. Is that what you meant to put there?

I didn't mean how they are in hexadecimal. I mean in the line of the script that that does
"applymovement 0x9 @m10
applymovement 0x10 @m11"

and the line that does
"disappear 0x10
disappear 0x11"
doesn't do anything in the game, but the other lines, like this one:
"applymovement 0x8 @m9"
or
"disappear 0x9"
work.
When I compile the script, it doesn't say any error, but in the game, the lines with the person events 10 and 11 is like they have no script. Everything else works, the other person events work fine expect this two person events.
P.S. In-game, after I complete the event, this two persons are still there, but if I go upper on the map and then go down, they aren't there.
P.S.2 The script and the person events are in a new bank of Advance Map 1.92. (If it matters.)
P.S.3 This script happens after the player spawns in a new game. He spawns in this new bank and later, in another script he warps to the first island (My game will be with islands.), that the game "actually" begins. The player spawns in this new bank and later in the first island because this is something like a vision of the future (My game would have time-travelling and parallel universes.).

C me December 25th, 2015 10:26 AM

The problem seems to be what HM said.

Since you are using 0x it means the following number is hex, the game thinks you mean person number 16 when you say person number 10. If you really do mean person 16 then sorry.

If you want it to work listen to ^^ or use disappear 10 and XSE will know you mean decimal 10.

tobelios December 26th, 2015 7:48 AM

Quote:

Originally Posted by C me (Post 9049599)
The problem seems to be what HM said.

Since you are using 0x it means the following number is hex, the game thinks you mean person number 16 when you say person number 10. If you really do mean person 16 then sorry.

If you want it to work listen to ^^ or use disappear 10 and XSE will know you mean decimal 10.

Now I understand, when I first read the answer of HM I didn't understand what he meant, but know, when I read it again with you answer too, I understood it. I will try it and I will tell the results. Thanks for the help :) .

tobelios December 27th, 2015 8:29 AM

It did work with the 0xA. Thanks for the help!!!!!!!!!!!!!!!!


All times are GMT -8. The time now is 2:26 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.