Community

The PokéCommunity

We are still working on a better slogan!

Visit Index



Go Back   The PokéCommunity Forums > ROM Hacking > ROM Hacking Hub
Notices

ROM Hacking Hub General discussions about ROM Hacking and Emulation. Not sure where to start? This is the place for you.
Posting links to ROMs is illegal and is not tolerated anywhere on the forum.
New threads in this forum are to be approved by a moderator before they are displayed.

Closed Thread
Click here to go to the first staff post in this thread.  
Thread Tools
  #2376    
Old October 11th, 2009, 05:59 PM
panthers4091
Beginning Trainer
 
Join Date: Oct 2009
Gender: Male
Game: Fire Red
Type: walk onto script
Editor: XSE
Script:
Spoiler:

#dynamic 0x71B1C4

#org @start
checkflag 0x900
if 0x1 goto @done
setflag 0x900
applymovement 0xFF @move1
pause 0x30
msgbox @talk1 0x6
applymovement 0x0 @move2
waitmovement 0x0
msgbox @talk2 0x6
applymovement 0x0 @move3
applymovement 0xFF @move4
waitmovement 0x0
hidesprite 0x5
warp 0x4 0x0 0x2 0x0 0x0
release
end

#org @done
release
end

#org @move1
#raw 0x62
#raw 0xFE

#org @move2
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x12
#raw 0x11
#raw 0x02
#raw 0xFE

#org @move3
#raw 0x10
#raw 0x13
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x13
#raw 0x13
#raw 0x10
#raw 0x60
#raw 0xFE

#org @move4
#raw 0x13
#raw 0x10
#raw 0x13
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x13
#raw 0x13
#raw 0x10
#raw 0x60
#raw 0xFE

#org @talk1
= blah

#org @talk2
= blah

Ok so what happens in this is an npc goes towards the player, says something, then they walk off the map.
It works except:
I set a flag and such so the script couldn't be run more than once, but it still is.
Also, the hidesprite doesn't work (using people ID), I come back to the map and they are still there.
How can I fix those two problems?

Also in same rom, here is a level script:
Spoiler:

'---------------
#org 0x71ADA4
#raw 0x2
#raw pointer 0x871ADAA
#raw 0x0

'---------------
#org 0x71ADAA
#raw word 0x7000
#raw word 0x0
#raw pointer 0x871B088
#raw word 0x0

'---------------
#org 0x71B088
applymovement 0x0 0x871B0A9
applymovement MOVE_PLAYER 0x871B0B7
waitmovement 0x0
setvar 0x7000 0x1
hidesprite 0x5
warp 0x3 0x0 0x1 0x0 0x0
setfarbyte 0x13 0x10101010
setbyte2 0x10 0x13
setfarbyte 0x10 0x10FFFE60
setfarbyte 0x13 0x10101010
setbyte2 0x10 0x13
setfarbyte 0x10 0x4FFE60
nop

'-----------
' Movements
'-----------
#org 0x71B0A9
#raw 0x13 'Step Right (Normal)
#raw 0x13 'Step Right (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x13 'Step Right (Normal)
#raw 0x13 'Step Right (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x60 'Hide
#raw 0xFE 'End of Movements

#org 0x71B0B7
#raw 0x10 'Step Down (Normal)
#raw 0x13 'Step Right (Normal)
#raw 0x13 'Step Right (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x13 'Step Right (Normal)
#raw 0x13 'Step Right (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x60 'Hide
#raw 0xFE 'End of Movements

For this one, you enter the map and continue to follow someone out of another door.
The problem again is the hide sprite not working.
Also IDK about those setbytes and such, they just appear and I have to delete them every time to compile correctly.
  #2377    
Old October 12th, 2009, 10:24 AM
Larvitar170's Avatar
Larvitar170
Noobie hacker
 
Join Date: Jul 2009
Location: Kentucky.
Gender: Male
Nature: Modest
Fire Red
Xse
Give pokemon
Spoiler:
#dynamic 0x727C2C

#org @Start
checkflag 0x828
if 0x1 goto @done
msgbox @1 0x5
Compare LASTRESULT 0x1
if 0x1 goto @take
showpokepic 0xB3 0xA 0x3
msgbox @2 0x6
release
end

#org @take
givepokemon 0xB3 0x5 0x0 0x0 0x0 0x0
fanfare 0x13E
msgbox @3 0x4
waitfanfare
closeonkeypress
setflag 0x828
msgbox @4 0x5
compare LASTRESULT 0x1
if 0x1 gosub @name
hidesprite 0x800F
msgbox @5 0x6
release
end

#org @name
countpokemon
subvar 0x800D 0x1
copyvar 0x8004 0x800D
fadescreen 0x1
special 0x166
waitstate
return


#org @done
msgbox @6 0x6
release
end


#org @1
= Would you like the Electric Pokemon\nMareep?

#org @2
= That's fine.\pTake your time.

#org @3
= [black_fr]You received a Mareep!

#org @4
= [black_fr]Would you like to give a\nnickname to Mareep?

#org @5
= Take great care of\nMareep.

#org @6
= I already gave you a Pokemon.


Ok. It gives me the pokemon, which is great. My issue is in the nickname, where it goes to an unknown pokemon, and the hidesprite, and the show pokemon picture. The hidesprite works, then comes back as soon as you move. The pokemon Picture never comes up.
Current project: Pokemon Mud Brown (Working Title, will be changed.)
No link because I haven't made a page for it yet.
Team: Myself as mapper, scripter, and spriter.Brandinokthx as spriter.

  #2378    
Old October 12th, 2009, 11:49 AM
Lyzo's Avatar
Lyzo
On vacation
 
Join Date: Mar 2007
Location: The Netherlands
Age: 19
Gender: Male
Nature: Bold
Send a message via Windows Live Messenger to Lyzo
Quote:
Originally Posted by Larvitar170 View Post
Fire Red
Xse
Give pokemon
Spoiler:
#dynamic 0x727C2C

#org @Start
checkflag 0x828
if 0x1 goto @done
msgbox @1 0x5
Compare LASTRESULT 0x1
if 0x1 goto @take
showpokepic 0xB3 0xA 0x3
msgbox @2 0x6
release
end

#org @take
givepokemon 0xB3 0x5 0x0 0x0 0x0 0x0
fanfare 0x13E
msgbox @3 0x4
waitfanfare
closeonkeypress
setflag 0x828
msgbox @4 0x5
compare LASTRESULT 0x1
if 0x1 gosub @name
hidesprite 0x800F
msgbox @5 0x6
release
end

#org @name
countpokemon
subvar 0x800D 0x1
copyvar 0x8004 0x800D
fadescreen 0x1
special 0x166
waitstate
return


#org @done
msgbox @6 0x6
release
end


#org @1
= Would you like the Electric Pokemon\nMareep?

#org @2
= That's fine.\pTake your time.

#org @3
= [black_fr]You received a Mareep!

#org @4
= [black_fr]Would you like to give a\nnickname to Mareep?

#org @5
= Take great care of\nMareep.

#org @6
= I already gave you a Pokemon.


Ok. It gives me the pokemon, which is great. My issue is in the nickname, where it goes to an unknown pokemon, and the hidesprite, and the show pokemon picture. The hidesprite works, then comes back as soon as you move. The pokemon Picture never comes up.
Code:
#dynamic 0x727C2C

#org @Start
checkflag 0x828
if 0x1 goto @done
msgbox @1 0x5
showpokepic 0xB3 0xA 0x3
Compare LASTRESULT 0x1
if 0x1 goto @take
msgbox @2 0x6
release
end

#org @take
givepokemon 0xB3 0x5 0x0 0x0 0x0 0x0
fanfare 0x13E
hidepokepic
msgbox @3 0x4
waitfanfare
closeonkeypress
setflag 0x828
msgbox @4 0x5
compare LASTRESULT 0x1
if 0x1 gosub @name
hidesprite 0x800F
msgbox @5 0x6
release
end

#org @name
countpokemon
subvar 0x800D 0x1
copyvar 0x8004 0x800D
fadescreen 0x1
special 0x166
waitstate
return


#org @done
msgbox @6 0x6
release
end


#org @1
= Would you like the Electric Pokemon\nMareep?

#org @2
= That's fine.\pTake your time.

#org @3
= [black_fr]You received a Mareep!

#org @4
= [black_fr]Would you like to give a\nnickname to Mareep?

#org @5
= Take great care of\nMareep.

#org @6
= I already gave you a Pokemon.
Ok, your Show Pokemon Picture problem has been highlighted and corrected, as for the reason that the overworld may reappear is mabye because the Person ID doesn't have a set flag on it yet? Just change the Person ID to 828 and it will be fixed.
I have no idea why the naming isn't working...

Quote:
Originally Posted by panthers4091 View Post
Game: Fire Red
Type: walk onto script
Editor: XSE
Script:
Spoiler:

#dynamic 0x71B1C4

#org @start
checkflag 0x900
if 0x1 goto @done
setflag 0x900
applymovement 0xFF @move1
pause 0x30
msgbox @talk1 0x6
applymovement 0x0 @move2
waitmovement 0x0
msgbox @talk2 0x6
applymovement 0x0 @move3
applymovement 0xFF @move4
waitmovement 0x0
hidesprite 0x5
warp 0x4 0x0 0x2 0x0 0x0
release
end

#org @done
release
end

#org @move1
#raw 0x62
#raw 0xFE

#org @move2
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x12
#raw 0x11
#raw 0x02
#raw 0xFE

#org @move3
#raw 0x10
#raw 0x13
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x13
#raw 0x13
#raw 0x10
#raw 0x60
#raw 0xFE

#org @move4
#raw 0x13
#raw 0x10
#raw 0x13
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x13
#raw 0x13
#raw 0x10
#raw 0x60
#raw 0xFE

#org @talk1
= blah

#org @talk2
= blah

Ok so what happens in this is an npc goes towards the player, says something, then they walk off the map.
It works except:
I set a flag and such so the script couldn't be run more than once, but it still is.
Also, the hidesprite doesn't work (using people ID), I come back to the map and they are still there.
How can I fix those two problems?

Also in same rom, here is a level script:
Spoiler:

'---------------
#org 0x71ADA4
#raw 0x2
#raw pointer 0x871ADAA
#raw 0x0

'---------------
#org 0x71ADAA
#raw word 0x7000
#raw word 0x0
#raw pointer 0x871B088
#raw word 0x0

'---------------
#org 0x71B088
applymovement 0x0 0x871B0A9
applymovement MOVE_PLAYER 0x871B0B7
waitmovement 0x0
setvar 0x7000 0x1
hidesprite 0x5
warp 0x3 0x0 0x1 0x0 0x0
setfarbyte 0x13 0x10101010
setbyte2 0x10 0x13
setfarbyte 0x10 0x10FFFE60
setfarbyte 0x13 0x10101010
setbyte2 0x10 0x13
setfarbyte 0x10 0x4FFE60
nop

'-----------
' Movements
'-----------
#org 0x71B0A9
#raw 0x13 'Step Right (Normal)
#raw 0x13 'Step Right (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x13 'Step Right (Normal)
#raw 0x13 'Step Right (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x60 'Hide
#raw 0xFE 'End of Movements

#org 0x71B0B7
#raw 0x10 'Step Down (Normal)
#raw 0x13 'Step Right (Normal)
#raw 0x13 'Step Right (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x13 'Step Right (Normal)
#raw 0x13 'Step Right (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x60 'Hide
#raw 0xFE 'End of Movements

For this one, you enter the map and continue to follow someone out of another door.
The problem again is the hide sprite not working.
Also IDK about those setbytes and such, they just appear and I have to delete them every time to compile correctly.
As for you... I'm not excactly sure how you're using the Level Script. But make sure you did it correctly and go through this tutorial(bottom part about level scripts, there are 2 parts).
I already see that you're missing a "setvar".


Thank you The Blueprint !!!

Last edited by Lyzo; October 12th, 2009 at 11:55 AM.
  #2379    
Old October 12th, 2009, 12:11 PM
panthers4091
Beginning Trainer
 
Join Date: Oct 2009
Gender: Male
I did include a setvar:
setvar 0x7000 0x1

And I followed a different tutorial but one that had all of the same steps.

The first script is not a level script, just a script event that you walk over.
  #2380    
Old October 12th, 2009, 04:04 PM
bloodrose
Beginning Trainer
 
Join Date: Feb 2009
hi, sorry if im requesting help right off the bat, but this script won't work for me.
the problem is when i enter the map, everything is black.
Game: Ruby
Type: Talking Script
Editor: XSE
Script:
Spoiler:
#dynamic 0x2220AE
#org @start
lock
faceplayer
msgbox @1 0x5
compare 0x800D 0x1
if 0x1 goto @check
msgbox @2 0x6
release
end
#org @check
checkitem 0x10A 0x1
compare 0x800D 0x1
if 0x1 goto @got
msgbox @6 0x6
release
end
#org @got
msgbox @4 0x6
closeonkeypress
showmoney 0x00 0x00 0x00
givemoney 0xDAC0 0x0
removeitem 0xD 0x1
msgbox @3 0x6
release
end
#org @1
= Do you have any STOCK TICKET's?
#org @2
= Oh.\nCome back when you do.
#org @3
= There! I Have Cashed the TICKET,\nto $56,000.
#org @4
= ...................................\n...................................
#org @6
= Uhh,\nI'm Sorry but you don't seem to\lhave any STOCKS..
---
Pokemon Empyreal Sun
[5.3%]

Last edited by bloodrose; October 12th, 2009 at 04:06 PM. Reason: forgot something
  #2381    
Old October 12th, 2009, 10:44 PM
Destiny's Avatar
Destiny
All the lights in the sky...
 
Join Date: Apr 2009
Location: UK
Gender: Male
Nature: Lonely
Help, I Have NO Expirience In Scripting But I Wanna Insert A Script, But A-Map Is Asking Me For All These Offsets And I Dunno What To Do
Sorry For Being A Meganoob
Please Help
White 2 FC- 4556-8077-2137
3DS FC: 4854-6421-4741
Be sure to add me and let me know so I can add you back!
  #2382    
Old October 13th, 2009, 05:46 AM
Larvitar170's Avatar
Larvitar170
Noobie hacker
 
Join Date: Jul 2009
Location: Kentucky.
Gender: Male
Nature: Modest
Quote:
Originally Posted by Get Out Of My Bath,Poliwag View Post
Help, I Have NO Expirience In Scripting But I Wanna Insert A Script, But A-Map Is Asking Me For All These Offsets And I Dunno What To Do
Sorry For Being A Meganoob
Please Help
Go here. http://www.pokecommunity.com/showthread.php?t=164276
Current project: Pokemon Mud Brown (Working Title, will be changed.)
No link because I haven't made a page for it yet.
Team: Myself as mapper, scripter, and spriter.Brandinokthx as spriter.

  #2383    
Old October 14th, 2009, 08:24 AM
RainDogg54's Avatar
RainDogg54
Crown of Love
 
Join Date: Oct 2009
Location: arkansas
Gender: Male
Nature: Calm
I just recently started scripting so forgive me if I'm doing this completely wrong.

I'm trying to make a script that won't let the player walk pass a certain point until he gets a Pokemon.
It's just supposed to make the player move 1 space left and display a message saying you can't go into the tall grass without a Pokemon.
Code:
#org $script
lock
message $warning
$warning 1 = I shouldn't go into the tall grass without a POKEMON..
boxset 6
applymovement 0xFF $move
$move 1 ; #binary 0x02 0xFE
pausemove 0x0000
release
end
But it this script just crashes my game and I don't know why.
Can someone tell me what I'm doing wrong and help me out? Thanks in advance
Hacks I support:
Spoiler:




Currently working on my first hack:Pokemon Blue Islands

PokePet:
Spoiler:
Dylan's PokePet

A level 43 Corsola!


  #2384    
Old October 14th, 2009, 11:49 AM
romancandle
 
Join Date: Oct 2009
Gender: Male
Nature: Adamant
Code:
#org $script
lock
message $warning
$warning 1 = I shouldn't go into the tall grass without a POKEMON..
boxset 6
applymovement 0xFF $move
$move 1 ; #binary 0x02 0xFE
pausemove 0x0000
release
end
What program are you using? I use XSE, and if you don't any my help doesn't work, sorry.

First off, things like $warning and $move should be moved down under the original script (put in #org $warning and then the message, and #org $move and then the action.)

2. Moving. After #org $move, use #raw instead of #binary. The 0x02 and 0xFE work

3. Instead of pausemovement, use waitmovement.

4. If you want to wait to make them get a pokemon, you need to check the givepokemon script for a setflag code. If you're directly replacing the Oak stops you script, you'll have to dig around (or ask another question) for the flag number.

That should cover it.

Now, my question: Whats the variable or flag for Oak giving you a pokemon? If no flag or variable, how (in directions, not code) would I change it so a script like above would click off when Oak hands you a pokemon?
  #2385    
Old October 14th, 2009, 12:41 PM
RainDogg54's Avatar
RainDogg54
Crown of Love
 
Join Date: Oct 2009
Location: arkansas
Gender: Male
Nature: Calm
Quote:
Originally Posted by romancandle View Post
Code:
#org $script
lock
message $warning
$warning 1 = I shouldn't go into the tall grass without a POKEMON..
boxset 6
applymovement 0xFF $move
$move 1 ; #binary 0x02 0xFE
pausemove 0x0000
release
end
What program are you using? I use XSE, and if you don't any my help doesn't work, sorry.
I use poketscript not XSE but i don't think it matters.
Quote:
First off, things like $warning and $move should be moved down under the original script (put in #org $warning and then the message, and #org $move and then the action.)
Ok so do you mean I should put this?
Code:
#org $warning
message $warning
$warning 1 = I shouldn't go into the tall grass without a POKEMON..
and then do the same with $move?

Sorry I'm very new at this I'm still learning.

And I'm going to add the checkflag after I get this part of the script working
Hacks I support:
Spoiler:




Currently working on my first hack:Pokemon Blue Islands

PokePet:
Spoiler:
Dylan's PokePet

A level 43 Corsola!


  #2386    
Old October 14th, 2009, 12:43 PM
cooley's Avatar
cooley
///Keepin' it simple
 
Join Date: Feb 2007
Location: United States
Age: 19
Gender: Male
Nature: Impish
Send a message via Windows Live Messenger to cooley Send a message via Skype™ to cooley
Quote:
Originally Posted by romancandle View Post
[code]
Now, my question: Whats the variable or flag for Oak giving you a pokemon? If no flag or variable, how (in directions, not code) would I change it so a script like above would click off when Oak hands you a pokemon?
The Flag is 0x828. That activates the Pokémon menu when you are given a Pokémon. So you would use it like this:

givepokemon PKMN_CHARMANDER 0x5 ITEM_ORANBERRY
setflag 0x828
//
fanfare 0x13E
//msgbox @received_poke 0x4
//waitfanfare
release
end


The "//" indicate optional, but optimal commands for a givepokemon script.

And the easiest way to check off whether Prof. Oak gives you a Pokémon is to use Setflag, or if you're advanced, setvar. But setflag is easier to understand.. So you pick a flag (eg. 1000) and use it: "setflag 0x1000".

Now, just doing that is just... useless Lol. You'd have to check it with checkflag;

checkflag 0x1000
if 0x1(true) goto @gave_poke


Simple enough, right?

Quote:
Originally Posted by RainDogg54 View Post
I use poketscript not XSE but i don't think it matters.
Ok so do you mean I should put this?
Code:
#org $warning
message $warning
$warning 1 = I shouldn't go into the tall grass without a POKEMON..
and then do the same with $move?

Sorry I'm very new at this I'm still learning.

And I'm going to add the checkflag after I get this part of the script working
Using XSE over Pokescript does matter.. It's the amount of help you'll get as a beginner, and the ease of using one as a beginner. But you're choice is your choice. Right click, compile in Notepad < XSE compiling on spot with one click of a button

Code:
#org $warning
 $warning 1 = I shouldn't go into the tall grass without a POKEMON..
This would be right. But I'll allow romancandle to help you more, because I don't know pokescript that well. :\

  #2387    
Old October 14th, 2009, 02:53 PM
panthers4091
Beginning Trainer
 
Join Date: Oct 2009
Gender: Male
Do certain flags not work? I tried using the numbers 7 and 900 among others in the person ID field, and the person did not disappear after a setflag line (yes I had a hidesprite working).
Then, ONLY changing the flag and ID to others (20, 28, 29, 2A), it worked perfectly.
  #2388    
Old October 14th, 2009, 02:58 PM
cooley's Avatar
cooley
///Keepin' it simple
 
Join Date: Feb 2007
Location: United States
Age: 19
Gender: Male
Nature: Impish
Send a message via Windows Live Messenger to cooley Send a message via Skype™ to cooley
Quote:
Originally Posted by panthers4091 View Post
Do certain flags not work? I tried using the numbers 7 and 900 among others in the person ID field, and the person did not disappear after a setflag line (yes I had a hidesprite working).
Then, ONLY changing the flag and ID to others (20, 28, 29, 2A), it worked perfectly.
That's exactly how it is. Some of the flags, are used by the game already.
Check you're XSE guide to see which ones are in use, meaning anyone not listed, is available to you. And there are many..

  #2389    
Old October 14th, 2009, 02:59 PM
NarutoActor's Avatar
NarutoActor
The rocks cry out to me
Community Supporter
 
Join Date: Jan 2009
Location: Brooklyn/Marlboro
Age: 20
Gender: Female
Nature: Bashful
Send a message via AIM to NarutoActor Send a message via Windows Live Messenger to NarutoActor
this is not a script help this is a simple question
check pksv flag list maby it was already set
~There are those people who understand hex, F the rest
  #2390    
Old October 14th, 2009, 03:36 PM
romancandle
 
Join Date: Oct 2009
Gender: Male
Nature: Adamant
Quote:
Originally Posted by RainDogg54 View Post
I use poketscript not XSE but i don't think it matters.
Ok so do you mean I should put this?
Code:
#org $warning
message $warning
$warning 1 = I shouldn't go into the tall grass without a POKEMON..
and then do the same with $move?

Sorry I'm very new at this I'm still learning.

And I'm going to add the checkflag after I get this part of the script working
As Cooley kindly pointed out:
Code:
#org $warning
$warning 1 = I shouldn't go into the tall grass with a POKEMON..
This is the correct way to do messages. The 2nd $warning (left of the 1) is not necessary, but it won't hurt (from my experience). You'll need to expand the first #org though. Like this:
Spoiler:

#org $start
lock
message $warning 0x6
release
end

#org $warning
1 = I shouldn't go into the tall grass with a POKEMON..

The 0x6 makes it a normal textbox message.

Move Script:
Spoiler:

The move script will look like:
Code:
#org $move
#raw 0x02 0xFE
or
Code:
#org $move
#raw 0x02
#raw 0xFE
Both are correct, and if you use the first style, when you compile the script to the ROM, at least in XSE, it'll automatically convert it to the 2nd style.


Let us know if you need help with the flag part too
  #2391    
Old October 16th, 2009, 09:21 AM
trebornosliw's Avatar
trebornosliw
Learning
 
Join Date: Jul 2009
Age: 22
Gender: Male
Nature: Adamant
Well, it's been awhile since I posted here...
Alright, this is a very, very basic XSE roadblock script. The only problem I have is that the applymovement doesn't work, so there's really no point to the script. I've already set the unknown and var number to the correct values (0003 and 4050), so I'm not sure what the problem is.
Script:
Spoiler:

#dynamic 0x800000
#org @noleave
checkflag 0x1001
if 0x1 goto @done
msgbox @notyet 0x6
applymovement 0xFF @stepaway
releaseall
end
#org @done
end
#org @notyet
= ...better see Gardevoir first...
#org @stepaway
#raw 0x10
#raw 0xFE
Credit for my avatar goes to the Lego company.
  #2392    
Old October 16th, 2009, 12:12 PM
Satoshi Ookami's Avatar
Satoshi Ookami
Memento Mori
Community Supporter
 
Join Date: Jul 2008
Location: Abyss of Time, Great Seal
Age: 22
Gender: Male
Nature: Calm
Ya don't have waitmovement 0x0 after applymovement.
ROM hacking FAQ - Read before asking how to play a hack. | Previous Sign 2 | Previous Sign

Anime List | PSN Trophy List
  #2393    
Old October 16th, 2009, 01:11 PM
cooley's Avatar
cooley
///Keepin' it simple
 
Join Date: Feb 2007
Location: United States
Age: 19
Gender: Male
Nature: Impish
Send a message via Windows Live Messenger to cooley Send a message via Skype™ to cooley
Spoiler:

#dynamic 0x800000

#org @noleave
checkflag 0x1001
if 0x1 goto @done
msgbox @notyet 0x6
closeonkeypress
pause 0x3
applymovement 0xFF @stepaway
waitmovement 0x0
setflag 0x1001
releaseall
end

#org @done
release
end

#org @notyet
= ...Better see Gardevoir first...

#org @stepaway
#raw 0x10
#raw 0xFE

Well I kind of fixed your script, with some advice from Ash493. So try it now.

  #2394    
Old October 16th, 2009, 04:53 PM
trebornosliw's Avatar
trebornosliw
Learning
 
Join Date: Jul 2009
Age: 22
Gender: Male
Nature: Adamant
Okay, I'll try it that way. Thanks!
EDIT: LOL, Cooley, you know better! The script worked alright, but you added setflag! It's a roadblock, so I don't want to setflag with this script. Bad Cooley!
Seriously though, thanks. This was enlightening.
Credit for my avatar goes to the Lego company.

Last edited by trebornosliw; October 17th, 2009 at 04:29 AM.
  #2395    
Old October 17th, 2009, 08:26 AM
Spherical Ice's Avatar
Spherical Ice
Community Supporter
 
Join Date: Nov 2007
Location: UK
Send a message via Skype™ to Spherical Ice
Script Type: Trainerbattle, Applymovement, Msgbox
Script Editor: eXtreme Script Editor [XSE]
Script Problem: After the battle, the game freezes.
Script:
Spoiler:
#dynamic 0x800000

#org @start
checkflag 0x8E8
if 0x1 goto @end
msgbox @1 0x6
applymovement 0xFF @player1
waitmovement 0x0
applymovement 0x0 @rival1
applymovement 0xFF @player2
waitmovement 0x0
msgbox @2 0x6
applymovement 0x0 @rival2
waitmovement 0x0
trainerbattle 0x0 0x146 0x0 @before @after
msgbox @3 0x6
applymovement 0x0 @rival3
waitmovement 0x0
hidesprite 0x0
setflag 0x200
setflag 0x8E8
release
end

#org @end
release
end

#org @1
= removed

#org @2
= removed

#org @before
= removed

#org @after
= removed

#org @3
= removed

#org @player1
#raw 0x62
#raw 0xFE

#org @player2
#raw 0x03
#raw 0xFE

#org @rival1
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x02
#raw 0xFE

#org @rival2
#raw 0x27
#raw 0xFE

#org @rival3
#raw 0x0
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0xFE

Comments: I removed the text because... I don't really know why, as I'm going to release screenshots with them in anyway. But, meh, it shortens the scripts length, so who cares?
  #2396    
Old October 17th, 2009, 09:48 AM
Samike360's Avatar
Samike360
Lover of May
 
Join Date: Mar 2009
Location: ATL
Gender:
Nature: Bold
Quote:
Originally Posted by Spherical Ice View Post
Script Type: Trainerbattle, Applymovement, Msgbox
Script Editor: eXtreme Script Editor [XSE]
Script Problem: After the battle, the game freezes.
Script:
Spoiler:
#dynamic 0x800000

#org @start
checkflag 0x8E8
if 0x1 goto @end
msgbox @1 0x6
applymovement 0xFF @player1
waitmovement 0x0
applymovement 0x0 @rival1
applymovement 0xFF @player2
waitmovement 0x0
msgbox @2 0x6
applymovement 0x0 @rival2
waitmovement 0x0
trainerbattle 0x1 0x146 0x0 @before @after @later

#org @later

msgbox @3 0x6
applymovement 0x0 @rival3
waitmovement 0x0
hidesprite 0x0
setflag 0x200
setflag 0x8E8
release
end

#org @end
release
end

#org @1
= removed

#org @2
= removed

#org @before
= removed

#org @after
= removed

#org @3
= removed

#org @player1
#raw 0x62
#raw 0xFE

#org @player2
#raw 0x03
#raw 0xFE

#org @rival1
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x02
#raw 0xFE

#org @rival2
#raw 0x27
#raw 0xFE

#org @rival3
#raw 0x0
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0xFE

Comments: I removed the text because... I don't really know why, as I'm going to release screenshots with them in anyway. But, meh, it shortens the scripts length, so who cares?
For these kind of trainerbattles, with the script continueing after the battle, I always use trainerbattle 0x1 instead of 0x0, and I think that's your problem. Try the changes made in bold that I added to the above script and see if that helps.





Please warm my eggs...I'll be sure to return the favor

From now one, if you haven't contacted me yet....I will not accept hacks unless they are at least in progressing hacks. So if you want my help, get some screenshots first.
  #2397    
Old October 17th, 2009, 11:04 AM
bigtukker
 
Join Date: Mar 2009
Gender:
Game: Fire Red
Type: Trigger
Editor: Pokescript
Script:
Spoiler:
#org $script
lock
checkflag 0x828
if 0x01 goto $flag
applymovement 12 $move
$move 1 ; #binary 0x62 0x18 0x18 0x18 0x18 0xFE
pausemove 0x0000
message $talk
$talk 1 = Hello there.\nI heard from my collegue\lProfessor Oak, that you are\nbeginning your journey.\pI've got some help from\nProf. Oak, Prof. Birch and Prof. Elm\lto get these starters for you.\pSo choose wisely.
msgbox 6
release
end

#org $flag
end

Screenshots and/or Videos: Can't give you pics yet because of 15 post lock
  #2398    
Old October 17th, 2009, 11:15 AM
Spherical Ice's Avatar
Spherical Ice
Community Supporter
 
Join Date: Nov 2007
Location: UK
Send a message via Skype™ to Spherical Ice
And the problem is..?

I suggest using XSE, as more people understand it = more people can help you with it.
  #2399    
Old October 17th, 2009, 11:19 AM
bigtukker
 
Join Date: Mar 2009
Gender:
I made a script tile after oaks door
When I go through that door, nothing happens and when i step up and down, the game freezes...

I made a XSE script too:

'---------------
#org 0x80145B
checkflag 0x828
if 0x1 goto 0x8801480
applymovement 0x9 0x8801481
msgbox 0x8801487 MSG_NORMAL '"Hello there.\nI heard from my coll..."
release
end

'---------------
#org 0x801480
end


'---------
' Strings
'---------
#org 0x801487
= Hello there.\nI heard from my collegue\lProfessor Oak, that you are\nbeginning your journey.\pI've got some help from\nProf. Oak, Prof. Birch and Prof. Elm\lto get these starters for you.\pSo choose wisely.


'-----------
' Movements
'-----------
#org 0x801481
#raw 0x62 'Exclamation Mark (!)
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0xFE 'End of Movements

Last edited by bigtukker; October 17th, 2009 at 11:41 AM.
  #2400    
Old October 17th, 2009, 12:11 PM
Spherical Ice's Avatar
Spherical Ice
Community Supporter
 
Join Date: Nov 2007
Location: UK
Send a message via Skype™ to Spherical Ice
On the script tile set the first Unknown to (I think) 003 and the Var Number (1st one) 4050. Should work.
Closed Thread
Quick Reply

Sponsored Links
Thread Tools

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
Minimum Characters Per Post: 25



All times are UTC -8. The time now is 04:36 AM.

About Us
© 2002 - 2014 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.

Copyright
All forum styles, their images (unless noted otherwise) and site designs are © 2002 - 2014 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. Header artwork by Jordanice of deviantART.

Social Media
If you would like to stay up-to-date with us on the go, when we're down, or other such things, follow us on social media sites--most notibly Twitter, Facebook, and Google Plus--by clicking on the links provided.

Design presented by Peitharchia. Special thanks to Hiroshi Sotomura and Ausaudriel.