• Our software update is now concluded. You will need to reset your password to log in. In order to do this, you will have to click "Log in" in the top right corner and then "Forgot your password?".
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

Script Help Thread (DO NOT REQUEST SCRIPTS)

Status
Not open for further replies.
5
Posts
14
Years
  • Seen Mar 17, 2010
Hello, I want to do in his battle hack 3 on 3, in principle code is already there and battle 3 on 3 it works, but there is one problem the experience gained in the battle Pokemon is not preserved, help solve this problem

Code:
special 0x27
special 0x29
fadescreen 0x1
special 0xF8
trainerbattle 0x1 0x5 0x0 0x8500697 0x8500352 0x890042F
end

'---------------
#org 0x90042F
special 0x28
releaseall
end
 

HackMew

Mewtwo Strikes Back
1,314
Posts
17
Years
  • Seen Oct 26, 2011
Hello, I want to do in his battle hack 3 on 3, in principle code is already there and battle 3 on 3 it works, but there is one problem the experience gained in the battle Pokemon is not preserved, help solve this problem

Code:
special 0x27
special 0x29
fadescreen 0x1
special 0xF8
trainerbattle 0x1 0x5 0x0 0x8500697 0x8500352 0x890042F
end

'---------------
#org 0x90042F
special 0x28
releaseall
end

Why didn't you read the rules? You didn't specify the game you're using. Either way could you elaborate your problem?
 
5
Posts
14
Years
  • Seen Mar 17, 2010
Why didn't you read the rules?You didn't specify the game you're using. Either way could you elaborate your problem?

Sorry,I bad speak English, but the problem in the Special 0x27, saved the party and saved the experience and does not add to the experience gained in the battle ((
Game: FireRed(U)
Editor: eXtreme Script Editor 1.1
my full code
Code:
'--------------- 
#org 0xMAIN
checkflag 0x822 
if 0x0 call 0x8Battle 
msgbox 0x8191163 MSG_KEEPOPEN '"There are all kinds of TRAINERS in..." 
release 
end 

'--------------- 
#org 0xBattle
special 0x27
special 0x29 
fadescreen 0x1 
special 0xF8 
trainerbattle 0x1 0x5 0x0 0x8500697 0x8500352 0x890042F
return 

'--------------- 
#org 0x90042F
special 0x28 
setflag 0x822 
end
 
Last edited:

trebornosliw

Learning
516
Posts
14
Years
  • Age 31
  • Seen Jul 22, 2012
In your level script, I think you forgot waitmovement 0x0 under the applymovement command, since it's not working.
Oh, I see what you mean. But would that prevent it from even starting?
...
I should probably test it and see, I guess :P Thanks!
Two other questions:
1. How to use Unown text in a script? Or is it even possible?
2. Is there any way to insert a timed button press, like when fishing, so that the player must press a certain button within a certain amount of time, or the script returns to a different string? This should at least be possible for A button, any chance it could work for B, L, or R?

And Ichigo, that is ridiculously cool. I didn't know 3 on 3 battles were even possible to begin with O_O
 

HackMew

Mewtwo Strikes Back
1,314
Posts
17
Years
  • Seen Oct 26, 2011
Sorry,I bad speak English, but the problem in the Special 0x27, saved the party and saved the experience and does not add to the experience gained in the battle ((
Game: FireRed(U)
Editor: eXtreme Script Editor 1.1
my full code
Code:
'--------------- 
#org 0xMAIN
checkflag 0x822 
if 0x0 call 0x8Battle 
msgbox 0x8191163 MSG_KEEPOPEN '"There are all kinds of TRAINERS in..." 
release 
end 

'--------------- 
#org 0xBattle
special 0x27
special 0x29 
fadescreen 0x1 
special 0xF8 
trainerbattle 0x1 0x5 0x0 0x8500697 0x8500352 0x890042F
return 

'--------------- 
#org 0x90042F
special 0x28 
setflag 0x822 
end

That happens because of the way those specials are designed. Basically, the Pokémon team is saved and later restored as it was. This means any experience gains etc. are gone. The only way round that would be using ASM.


Oh, I see what you mean. But would that prevent it from even starting?
...
I should probably test it and see, I guess :P Thanks!
Two other questions:
1. How to use Unown text in a script? Or is it even possible?
2. Is there any way to insert a timed button press, like when fishing, so that the player must press a certain button within a certain amount of time, or the script returns to a different string? This should at least be possible for A button, any chance it could work for B, L, or R?

And Ichigo, that is ridiculously cool. I didn't know 3 on 3 battles were even possible to begin with O_O

1. No, you can't. Unless you edit the font and insert the 28 Unown symbols.
2. Only through ASM, as far as I know.
 

trebornosliw

Learning
516
Posts
14
Years
  • Age 31
  • Seen Jul 22, 2012
Thanks!
Hm. I think I'm going to have to learn ASM, then... everything new I want to try these days requires some sort of ASM routine :\
The unown script is disappointing, what about Braille? I thought I saw a tut on that somewhere, but I can't seem to find it.
EDIT: Oops, here it is, sitting in the XSE command help :P
So I can just input normal text in a braille box and it's converted to braille?
 
Last edited:

Xatoku

Game Developer
451
Posts
15
Years
Regularly, if you deposit a Pokemon into the PC, and it's your last one, you can't. Is there a way to make it so that you have to have 2 Pokemon at all times?
 

HackMew

Mewtwo Strikes Back
1,314
Posts
17
Years
  • Seen Oct 26, 2011
Regularly, if you deposit a Pokemon into the PC, and it's your last one, you can't. Is there a way to make it so that you have to have 2 Pokemon at all times?

You would need to hack the way the PC works and make it so you can't deposit anything if you have 2 Pokémon or less. And that requires ASM.
Out of curiosity, why would you need something like that?
 
100
Posts
14
Years
I've been trying to get the national dex at the begging, but i have a problem. I know a lot of people asked this, but they didn't seem to relate to my problem. The rom I'm trying to hack is Fire Red
One, when i try to compile the script, the compile button won't work, and when i click debug, a message pops up, saying "Too less parameters on line 9. The correct number is 2."


The script is:
Spoiler:

Credit to this script goes to Pazuzu.
I put the line that isn't working properly in bold

Any help would be appreciated.
Thank you.
 
Last edited:

colcolstyles

Yours truly
1,588
Posts
15
Years
Instead of

Code:
msgbox 0x800100
callstd 0x6

use

Code:
msgbox 0x800100 0x6

It's a change that was made with the new version of XSE which, sadly, makes most of your old scripts obsolete.

And for future reference, when XSE says that there are too few parameters on a line, it means that you're missing something on that line. Check the Command Help (F1) to see what you need.
 

trebornosliw

Learning
516
Posts
14
Years
  • Age 31
  • Seen Jul 22, 2012
Alright, so I'm helping out someone else with their hack while I wait for someone to finish editing mine, and I came across a problem with this script:
Spoiler:

So, the issue I'm having is that the setflag 0x1000 isn't happening. I leave the map, then reenter, and the event has reset, the sprite is still there. If I step on this tile, the whole script plays again. Everything else is working fine-movements, even the hidesprite, but the flag won't stay set :(
Any ideas?
 
5
Posts
14
Years
  • Seen Mar 17, 2010
I've been trying to get the national dex at the begging, but i have a problem. I know a lot of people asked this, but they didn't seem to relate to my problem. The rom I'm trying to hack is Fire Red
One, when i try to compile the script, the compile button won't work, and when i click debug, a message pops up, saying "Too less parameters on line 9. The correct number is 2."


The script is:
Spoiler:

Credit to this script goes to Pazuzu.
I put the line that isn't working properly in bold

Any help would be appreciated.
Thank you.


Code:
#org 0x800000
lock
faceplayer
checkflag 0x10A
if 1 jump 0x8800050
special 0x16F
setflag 0x10A
fanfare 0x13E
msgbox 0x8800100 0x6
callstd 0x6
waitfanfare
release
end

#org 0x800050
msgbox 0x8800070 0x6
callstd 0x6
release
end

#org 0x800070
= Like your new POKéDEX?

#org 0x800100
= Your POKéDEX was upgraded!

seems so

Alright, so I'm helping out someone else with their hack while I wait for someone to finish editing mine, and I came across a problem with this script:
Spoiler:

So, the issue I'm having is that the setflag 0x1000 isn't happening. I leave the map, then reenter, and the event has reset, the sprite is still there. If I step on this tile, the whole script plays again. Everything else is working fine-movements, even the hidesprite, but the flag won't stay set :(
Any ideas?

Try to make a flag to three (400)
I usually use the variables
 
Last edited:

Hiche..

 
979
Posts
15
Years
  • Seen Dec 27, 2014
Alright, so I'm helping out someone else with their hack while I wait for someone to finish editing mine, and I came across a problem with this script:
Spoiler:

So, the issue I'm having is that the setflag 0x1000 isn't happening. I leave the map, then reenter, and the event has reset, the sprite is still there. If I step on this tile, the whole script plays again. Everything else is working fine-movements, even the hidesprite, but the flag won't stay set :(
Any ideas?

Did you put 1000 as the people ID for the sprite? The sprite won't disappear if not.
If that didn't work, try another flag maybe
 

trebornosliw

Learning
516
Posts
14
Years
  • Age 31
  • Seen Jul 22, 2012
Well first, thanks to both Hiche and Ichigo for the help.
Hiche: yes, and I did try a different flag... not sure what the issue is.
Ichigo, I may try a var, these flags have worked for me in the past...
Wait, no, I can't make the hidesprite permanent with a var, can I? Again, these flags usually work though.
 
Last edited:
5
Posts
14
Years
  • Seen Mar 17, 2010
Well first, thanks to both Hiche and Ichigo for the help.
Hiche: yes, and I did try a different flag... not sure what the issue is.
Ichigo, I may try a var, these flags have worked for me in the past...
Wait, no, I can't make the hidesprite permanent with a var, can I? Again, these flags usually work though.
If Person Event Use
Code:
hidesprite LASTTALKED
 

trebornosliw

Learning
516
Posts
14
Years
  • Age 31
  • Seen Jul 22, 2012
It's not a person event, and even that wouldn't be permanent unless I set a flag equal to his person ID, as far as I know.
 
24
Posts
15
Years
  • Seen Mar 2, 2013
Can anyone tell me what is wrong with this script...
Its for when you leave your room at the beggining of the game and an event happens where you see you mother talking to an officer...
Its saying that theres no specified dynamic offset here... "#org @thanks"

#org 0x8000E7
lock
checkflag 0x200
if 0x1 goto @done
setflag 0x200
msgbox @thanks 0x06
applymovement 0x2 0x88000F8
release
end

#org @thanks
= Thank you for you help!

#org 0x88000F8
#raw 0x12 'Step Left (Normal)
#raw 0x12 'Step Left (Normal)
#raw 0x12 'Step Left (Normal)
#raw 0x12 'Step Left (Normal)
#raw 0x12 'Step Left (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x60 'Hide

#org @done
clearflag 0x200
release
end
 

Geeked

Pokemon Crimson Version
352
Posts
16
Years
  • Age 29
  • Seen Oct 9, 2012
It's not a person event, and even that wouldn't be permanent unless I set a flag equal to his person ID, as far as I know.

#dynamic 0x800000
#org @aide1
lockall
checkflag 0x1000
if 0x1 goto @done
applymovement 0x1 @walkup
waitmovement 0x0
msgbox @followme 0x6
applymovement 0x1 @aidewalk
applymovement 0xFF @playerwalk
waitmovement 0x0
hidesprite 0x1
setflag 0x1000
releaseall
end
#org @done
releaseall
end
#org @followme
= [green_fr]Hey! You're [player],right?\nCan you come with me, please? The\lProfessor wants to see you. ' Just put the Color you want there instead.
#org @walkup
#raw 0x01 0x62 0x11 0x11 0x11 0xFE
#org @aidewalk
#raw 0x10 0x10 0x10 0x10 0x10 0x10 0x10 0x12 0x12 0x12 0x12 0x12 0x12 0x12 0x12 0x12 0x12 0x12 0x12 0x12 0x12 0x12 0x01 0x11 0xFE
#org @playerwalk
#raw 0x10 0x10 0x10 0x10 0x10 0x10 0x10 0x10 0x12 0x12 0x12 0x12 0x12 0x12 0x12 0x12 0x12 0x12 0x12 0x12 0x12 0x12 0x12 0x01 0xFE
 

trebornosliw

Learning
516
Posts
14
Years
  • Age 31
  • Seen Jul 22, 2012
#dynamic 0x800000
#org @aide1
lockall
checkflag 0x1000
if 0x1 goto @done
applymovement 0x1 @walkup
waitmovement 0x0
msgbox @followme 0x6
applymovement 0x1 @aidewalk
applymovement 0xFF @playerwalk
waitmovement 0x0
hidesprite 0x1
setflag 0x1000
releaseall
end
#org @done
releaseall
end
#org @followme
= [green_fr]Hey! You're [player],right?\nCan you come with me, please? The\lProfessor wants to see you. ' Just put the Color you want there instead.
#org @walkup
#raw 0x01 0x62 0x11 0x11 0x11 0xFE
#org @aidewalk
#raw 0x10 0x10 0x10 0x10 0x10 0x10 0x10 0x12 0x12 0x12 0x12 0x12 0x12 0x12 0x12 0x12 0x12 0x12 0x12 0x12 0x12 0x12 0x01 0x11 0xFE
#org @playerwalk
#raw 0x10 0x10 0x10 0x10 0x10 0x10 0x10 0x10 0x12 0x12 0x12 0x12 0x12 0x12 0x12 0x12 0x12 0x12 0x12 0x12 0x12 0x12 0x12 0x01 0xFE

0_o
Will that make him vanish properly? If so, I am now terminally confused...

Can anyone tell me what is wrong with this script...
Its for when you leave your room at the beggining of the game and an event happens where you see you mother talking to an officer...
Its saying that theres no specified dynamic offset here... "#org @thanks"

Spoiler:
Okay, a few issues here. Changes in bold, remember that 1. you need #dynamic 0x800000 (or whatever offset) before every script, and 2. XSE will figure out the offsets for you when you insert... 3. you need #raw 0xFE after all your movements
 
Last edited:
Status
Not open for further replies.
Back
Top