The PokéCommunity Forums

The PokéCommunity Forums (https://www.pokecommunity.com/index.php)
-   Binary Hack Tutorials (https://www.pokecommunity.com/forumdisplay.php?f=66)
-   -   Sierra's MEGA-HUGE XSE Scripting Tutorial (https://www.pokecommunity.com/showthread.php?t=164276)

Logan June 21st, 2009 8:41 AM

I believe it is

releaseall
end

Chimchar 9 June 21st, 2009 8:47 AM

No it wasn't that.
I forgot to put setflag 0x1000.
xD

Tacoman4rmsj94 June 21st, 2009 7:39 PM

i keep encountering the same problem
i battle then he keeps re appearing
can you give me an example please?

Excalibur June 21st, 2009 9:16 PM

#Dynamic 0x000001

#org @start
lock
faceplayer
msgbox @blah 0x6
cry 0xF5 0x0
wildbattle 0xF5 0x32 0x0
hidesprite 0x1
setflag 0x<your flag>
release
end

#org @blah
= GYAOO!

And then in A-Map choose your sprite and where is Person ID, write the same flag.

There is an image
img520.imageshack.us/img520/2349/examplef.png

Tacoman4rmsj94 June 21st, 2009 10:01 PM

OMG IT WORKED!!!
i owe you big time
thank you

ShinyBlaziken June 22nd, 2009 4:24 AM

Okay, I fixed my problem on my own xD

But now I've got another Problem
I tried the "givepokemon" Script but it didn't work.
XSE said that there is missing something at the "compare LASTRESULT 0x1" part.
But what's missing there???

Sierraffinity June 22nd, 2009 8:34 AM

Quote:

Originally Posted by ShinyBlaziken (Post 4773173)
Don't know why but it doesn't work for me...
I wanted to make a sign so I made this:
Code:

'---------------
#dynamic 0x800159

#org @start
msgbox @sign 0x3
end

#org @sign
= Hi!


When I clicked the Sign there didn't appear any text...

Okay, I fixed my problem on my own xD

But now I've got another Problem
I tried the "givepokemon" Script but it didn't work.
XSE said that there is missing something at the "compare LASTRESULT 0x1" part.
But what's missing there???

Replace LASTRESULT with 0x800D.

Pokepal17 June 22nd, 2009 8:37 AM

Quote:

Originally Posted by diegoisawesome (Post 4773941)
Replace LASTRESULT with 0x800D.

To avoid stuff like that, will you please write at the very beginning of the tutorial, to make sure the reader is using the latest XSE and that they have extracted all the files or else this tutorial may not be compatible.

ShinyBlaziken June 22nd, 2009 8:45 AM

Okay, thank you!!! ! :D

Hmmm...
Well the Script was okay but i don't get any Pokemon :D
I talk to a guy but he always says "Are you taking good care of Charmander".
Is it because I already have a Charmander?
What do i have to change??

Sierraffinity June 22nd, 2009 9:15 AM

Quote:

Originally Posted by ShinyBlaziken (Post 4773994)
Okay, thank you!!! ! :D

Hmmm...
Well the Script was okay but i don't get any Pokemon :D
I talk to a guy but he always says "Are you taking good care of Charmander".
Is it because I already have a Charmander?
What do i have to change??

Change the flag numbers. That was just an example flag #.

TheDon June 22nd, 2009 11:44 AM

Question, does #dynamic 0x<offset> overwrite the designated offset? Or does it look for free space starting from the offset?

Pokepal17 June 22nd, 2009 12:46 PM

Quote:

Originally Posted by TheDon (Post 4774748)
Question, does #dynamic 0x<offset> overwrite the designated offset? Or does it look for free space starting from the offset?

It looks for free space starting from the offset.

TheDon June 22nd, 2009 12:51 PM

Is there a command that I can use in XSE or wherever to erase a certain script from an offset, then replace it with the new one that at the time, I just made? I tried the #remove before and after the #dynamic at the beginning of the script, but it didn't work.

Pokepal17 June 22nd, 2009 12:54 PM

Quote:

Originally Posted by TheDon (Post 4775018)
Is there a command that I can use in XSE or wherever to erase a certain script from an offset, then replace it with the new one that at the time, I just made? I tried the #remove before and after the #dynamic at the beginning of the script, but it didn't work.

All the script should be is:

#remove 0xoffset


nothing else.

TheDon June 22nd, 2009 1:03 PM

Meh. I go to compile it to the ROM, and it gives me "No dynamic start offset specified" after I take out the #dynamic command.

ShinyBlaziken June 23rd, 2009 5:21 AM

I made this Script

Code:

#dynamic 0x803E28

#org @start
checkflag 0x209
if 0x1 goto @done
msgbox @1 0x5
compare 0x800D 0x1
if 0x1 goto @take
msgbox @2 0x2
release
end

#org @take
givepokemon 0x382 0x5 0x199 0x0 0x0 0x0
fanfare 0x13E
msgbox @3 0x4
waitfanfare
closeonkeypress
setflag 0x209
msgbox @4 0x5
compare 0x800D 0x1
if 0x1 gosub @name
msgbox @5 0x6
release
end

#org @name
call 0x1A74EB
return

#org @done
clearflag 0x209
release
end

#org @1
= [black_fr]There's a Pokeball on the table\nDo you want to take it?

#org @2
= [black_fr]You left the Pokeball on the table

#org @3
= [black_fr]You received Aron

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

#org @5
= DREW: Please take care of\nAron!


At first there's the Question if I take the Pokeball or not. if I click "no" then "You left the Pokeball on the table" appears and nothing else happens.
But if I click at "Yes" my game just freezes -.-
I don't know why.

Excalibur June 23rd, 2009 7:46 AM

ShinyBlaziken, there is an error in your givepokemon command. The values must be in hex.

ShinyBlaziken June 23rd, 2009 9:14 AM

And how should i change it?

Excalibur June 23rd, 2009 9:57 AM

You can use Windows Calculator Advance Mode or XSE Calc.
382 in hex = 17E and 199 in hex = C7.

ShinyBlaziken June 24th, 2009 6:28 AM

Okay thanks, it works now!


And how can I make a script for a hidden item on the ground??

Excalibur June 24th, 2009 8:42 AM

Its not a script. Its a type of signpost. (06 Hidden Item)

ShinyBlaziken June 29th, 2009 11:14 AM

Hi,
I've got another Problem now xDDD

I made a Script but there appears the message "This tree looks like it can be CUT down" when I'm talking to the Person.

Here's my script

Code:

#dynamic 0x8001F6

#org @start
lock
faceplayer
msgbox @speak 0x2
applymovement 0x4 @move
waitmovement 0x0
release
end

#org @speak
= [blue_fr]LINDSAY: Hi, this is my farm.\nI've got a lot of Pokemon here\pMy favorite is...\n[black_fr]JOHN: Lindsay!\pDon't say any other word!/n[blue_fr]LINDSAY: Oh..., Gotta go!

#org @move
#raw 0x20
#raw 0x20
#raw 0x20
#raw 0x20
#raw 0x0
#raw 0xFE



Wuggles June 29th, 2009 2:01 PM

Heya. first of all: nice tut! ;D

I need a flexible kind of warp.
A warp with vars in it like this:
warp 0x7005 0x7006 0x7007 0x0 0x0
Is it possible? because this gives me errors :/

is there a way to use vars in warps?
Thanks in Advance

TheDon June 29th, 2009 4:51 PM

Quote:

Originally Posted by TheDon (Post 4775018)
Is there a command that I can use in XSE or wherever to erase a certain script from an offset, then replace it with the new one that at the time, I just made? I tried the #remove before and after the #dynamic at the beginning of the script, but it didn't work.

Still looking for help with this. Thanks in advance.

.Seth June 29th, 2009 5:50 PM

I'm not saying anyone's breaking rules here, but there is a script help thread, you know.

I've never really taken the time to comment on this tutorial (or did I? I dunno. :P), so I think I will.

Overall, it's just a big translation of thethethethe's PokeScript tutorial, so really, it's not completely yours, but you gave credit, so I've no problem with that.

All in all, there are a few errors here and there, but it's very useful, and even I, the author of a different XSE tutorial, find myself looking at this.


All times are GMT -8. The time now is 8:11 PM.


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.