PDA

View Full Version : [Tutorial] Zeffy's Tips & Tricks


Zeffy
May 28th, 2010, 06:01 PM
Navigation


[alink id="amap"]Advance Map Tricks[/alink id]
[alink id="xse"]eXtreme Script Editor Tricks[/alink id]
[alink id="script"]XSE Scripting Tricks[/alink id]




Zeffy's Tip and Tricks

Hello everyone, I'm Zeffy and this is my first ever tutorial so if I have any mistakes please notify me. Thanks.

[a id]amap[/a id]Advance Map Tricks

In this tutorial, I'll show you how to choose your defined script editor in Advance Map. Its quite easy really.

First, open Advance Map and load your ROM. Then go to settings, located right here:
http://i967.photobucket.com/albums/ae160/zeffyzelfier/Genesis%20LP/amap1.png

First time visiting this tab? No problem, just click it and go to "Choose Script Editor" just like this:
http://i967.photobucket.com/albums/ae160/zeffyzelfier/Genesis%20LP/amap2.png

Then, in the pop up box choose your script editor. I use XSE in this tutorial.
http://i967.photobucket.com/albums/ae160/zeffyzelfier/Genesis%20LP/amap3.png

Click "Open" and this should pop up:
http://i967.photobucket.com/albums/ae160/zeffyzelfier/Genesis%20LP/amap4.png

It doesn't really matter what option you choose, but choose yes for the sake of this tutorial.

There you go! You can now open scripts in the ROM via Advance Map. Try it by clicking an OW in the events tab and select "Open Script".

[a id]xse[/a id]eXtreme Script Editor Tricks

In this tutorial, I'll show you how to open FSF (Free Space Finder) and A-Trainer during scripting. :D

In just 2 easy steps:

First, put XSE, FSF and A-Trainer in one folder. My folder looks like this:
http://i967.photobucket.com/albums/ae160/zeffyzelfier/Genesis%20LP/bdesktop1.png

Then, open XSE and go to "Tools" and new options should show up.
http://i967.photobucket.com/albums/ae160/zeffyzelfier/Genesis%20LP/bdesktop2.png

There you go! You can now open FSF and A-Trainer in one application! Neat, isn't it?

[a id]script[/a id]Scripting Tricks

#1
There have been so much problems in the script help thread about "How to make an OW disappear", so I decided to make a tutorial for it.

This is what my "disappear" script looks like:
http://i967.photobucket.com/albums/ae160/zeffyzelfier/Genesis%20LP/cxse1.png

Now, you might be thinking "It won't work because you need setflag 0x(flag). To make it clear you don't need to put setflag 0x(flag) in disappearing scripts. I'll show you how.
Next step: open Advance Map and select the event OW. Put the offset in the offset box. Then, put a flag in the Person ID box. Just like this:
http://i967.photobucket.com/albums/ae160/zeffyzelfier/Genesis%20LP/cxse2.png

Now, remember my "hidesprite 0x1" line in the script? That means I need to make this event's person event number to 1. Like this:
http://i967.photobucket.com/albums/ae160/zeffyzelfier/Genesis%20LP/cxse3.png

Save it then test it out.
http://i967.photobucket.com/albums/ae160/zeffyzelfier/Genesis%20LP/cxse4.png

Orly?
http://i967.photobucket.com/albums/ae160/zeffyzelfier/Genesis%20LP/cxse5.png

Wow, he really did disappear. Now, I'll try moving to see if it really works.
http://i967.photobucket.com/albums/ae160/zeffyzelfier/Genesis%20LP/cxse6.png

It works!

#2 & #3 (http://www.pokecommunity.com/showpost.php?p=5866215&postcount=16)

Thank you for reading!

Tropical Sunlight
May 28th, 2010, 11:00 PM
This seems very useful, especially for those who have just started out.

Zeffy
May 29th, 2010, 03:13 AM
This seems very useful, especially for those who have just started out.
Thank you. :3

Of course yes. I'm trying to make this tutorial as newbie friendly as possible. I'm thinking of adding more scripting tips. :D

Tropical Sunlight
May 29th, 2010, 03:16 AM
I'm thinking of adding more scripting tips. :D
Here's an idea. Teach them about how you don't need FSF for scripting and how to use the std-.rbh files.

Zeffy
May 29th, 2010, 03:27 AM
Here's an idea. Teach them about how you don't need FSF for scripting and how to use the std-.rbh files.
Its already included in XSE's built in guide, isn't it?

EDIT: I read through XSE's built in guide, and I didn't saw it. I'll be doing a tutorial of that. Thank you for the suggestion.

Binary
May 29th, 2010, 04:41 AM
Here's an idea. Teach them about how you don't need FSF for scripting and how to use the std-.rbh files.

Umm..like search free space with a hex editor?
How to use the .rbh files is included in the in-built guide.
It's looking good Zeffy, I hope you add more n__n

Tropical Sunlight
May 29th, 2010, 07:36 AM
Umm..like search free space with a hex editor?

Nooooooo :\
You don't need to find free space at all!
Just use dynamic 0x800000 always ;)

Darkerm
May 29th, 2010, 12:53 PM
well,this is a good tutorial indeed. I think it will help newbies. btw, I think you should update Script part. I think you should add Apply movement, Giving starter with Pokedex, rival battle etc. good luck

Full Metal
May 29th, 2010, 05:04 PM
er...dude, thats called a scripting tutorial -.- ...
u should read one some time.

spelspelen
May 30th, 2010, 04:46 AM
WOW! Thank you verry much!!
This is a great help for me!!!!!

Darkerm
May 30th, 2010, 04:14 PM
er...dude, thats called a scripting tutorial -.- ...
u should read one some time.

I know that but as She was helping with some script I thought that might come in handy for noobs. Btw, script thread didn't show us that king of script. I mean they only teach us the main comand of scripting. Some people find those tutorial very hard and Asking people to help them with scripting{Like I did when I can't script}. So I ask her to do that.

Zeffy
May 30th, 2010, 05:22 PM
I know that but as She was helping with some script I thought that might come in handy for noobs. Btw, script thread didn't show us that king of script. I mean they only teach us the main comand of scripting. Some people find those tutorial very hard and Asking people to help them with scripting{Like I did when I can't script}. So I ask her to do that.

My suggestion for that is to read the guide that comes with XSE. It pretty much explains the basics of XSE scripting. :/

jerk
May 30th, 2010, 06:03 PM
wow thanx! im gana try the disapeer script!

Tyrantrum
June 2nd, 2010, 04:51 PM
The disappearing sprite script is one of the many scripts that confuse me. Thank you for putting that up there; it helps a lot more.

Maho Minami
June 2nd, 2010, 05:17 PM
Thanks for this dude really helpful for meh first try :)

Zeffy
June 8th, 2010, 11:32 PM
Hey, look more Scripting tips!

~ both were requested by Tropical Sunlight.

#2
Ok, in this tutorial I'll show you how to search for free offsets for your scripts without the use of FSF.

Ok, first things first I'll be using the same ROM which I used on the last script: which means offset 0x800000 is already used. I'll make a simple script right here with offset 0x800000:

#dynamic 0x800000
#org @start
msgbox @talk 0x2
end

#org @talk
= I like POTATOES.
Since the offset 0x800000 was already used, you'll be thinking: "It would cause bugs in-game!". What you are currently thinking is wrong. Remember that we used "dynamic 0x800000" first of all: What does dynamic mean? Dynamic means changing which means that if we used 0x800000 as the offset it will look for the next free space offset after the specified offset. This could be pretty useful for speed scripters. :)

#3
In this tutorial I'll teach you scripters how to use rubikon header files if you haven't read the guide that comes with XSE. :)

Ok, in the same folder as XSE you have probably noticed the .rbh files. Those are the Rubikon Header files I'm talking about. So to make them usable you just need to include the following commands below before the script main. I've commented it for easiness sake.

#include stditems.rbh // for items
#include stdpoke.rbh // for Pokemon
#include stdattacks.rbh // for attack names.

Ok now we can create a script like this which enables us to use words instead of HEX Codes. Useful for the lazy bums like me.

#include stditems.rbh
#include stdpoke.rbh

#dynamic 0x800000
#org @start
lock
faceplayer
giveitem ITEM_TIMERBALL 0xA MSG_OBTAIN
givepokemon PKMN_DEOXYS 0xA ITEM_MASTERBALL 0x0 0x0 0x0
release
end

Compile that script and you will get 10 Timer Balls and a Lv. 10 Deoxys with a held Masterball. ;D

Tropical Sunlight
June 9th, 2010, 05:09 AM
That's exactly what I meant :D
Good job Zeffy.

Also, it should be easier for people to view Scripting Tips #2 and #3 on the first post.

Zeffy
June 9th, 2010, 05:32 AM
That's exactly what I meant :D
Good job Zeffy.

Also, it should be easier for people to view Scripting Tips #2 and #3 on the first post.

But of course! :D

I linked it on the first post because too much spoilers can make spoilers not show up. :)

Thanks, glad to be of service.

Tyrantrum
June 11th, 2010, 08:54 PM
I have two questions for script #3:

1) What is 0xA?
2) How do you know it's going to be a Lv. 10 Deoxys, if you never even put the level down in any of the 0x0's?

I hope the second question I asked made sense...

Samike360
June 11th, 2010, 09:07 PM
I have two questions for script #3:

1) What is 0xA?
2) How do you know it's going to be a Lv. 10 Deoxys, if you never even put the level down in any of the 0x0's?

I hope the second question I asked made sense...

0xA is 10 in hex. Hex is different from the regular numbering system because it goes 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, F in order. Its difficult to grasp, but basically it is hexadecimal system so it has 15 number/letters to use, so there can be more combinations of numbers/letters, like 1A or 23E or something. So when he put 0xA it was telling it to put Deoxys as level 10 because it recognized A as 10.

Tyrantrum
June 11th, 2010, 11:27 PM
0xA is 10 in hex. Hex is different from the regular numbering system because it goes 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, F in order. Its difficult to grasp, but basically it is hexadecimal system so it has 15 number/letters to use, so there can be more combinations of numbers/letters, like 1A or 23E or something. So when he put 0xA it was telling it to put Deoxys as level 10 because it recognized A as 10.
Okay, that makes a bit more sense. I'll have to looks into that more so I can understand more of it. Thanks.

Tropical Sunlight
June 11th, 2010, 11:36 PM
Okay, that makes a bit more sense. I'll have to looks into that more so I can understand more of it. Thanks.
You can also make it like this:

...
givepokemon PKMN_CHINCHOU 34 0 0 0 0
...

As you can see, I haven't added any "0x" in front of those numbers. That way I didn't make them hex, and the player will actually receive a Chinchou at level 34 with this type of givepokemon. Of course, when you compile the script, all the numbers will go to HEX.

In addition to that, there is also a DEC-HEX calculator built-in XSE.

Ninja Caterpie
June 11th, 2010, 11:37 PM
Eeveeon, you're 16, you (should) have learnt how to work in different bases to 10 (the decimal system). The hexadecimal system is Base 16, where we start replacing extra stuff with letters (A, B, C, D, E and F for hex).

For quick conversion, use the calculator in XSE, just beside the script box. :D

Szirako
July 7th, 2010, 02:59 AM
Thanks, it's very usefull!

sir.euge
July 7th, 2010, 03:56 PM
Nooooooo :\
You don't need to find free space at all!
Just use dynamic 0x800000 always ;)
i didnt even know about offsets so i was always using 0x800000. then i saw the guide in XSE. its funny how people struggle with stuff like that when there are easy ways around:classic:

FireGod121
July 10th, 2010, 05:13 PM
i didnt even know about offsets so i was always using 0x800000. then i saw the guide in XSE. its funny how people struggle with stuff like that when there are easy ways around:classic:
lol i know._____________________________

PaulGR
July 1st, 2011, 12:46 PM
disappear/hidesprite question. I some roms the hidesprite works in other i must use disappear.