Register | Login
Views: 19364387
Main | Memberlist | Active users | ACS | Commons | Calendar | Online users
Ranks | FAQ | Color Chart | Photo album | IRC Chat
11-02-05 12:59 PM
Acmlm's Board - I2 Archive - - Posts by spin
User Post
spin
Newcomer
Level: 4

Posts: 1/4
EXP: 134
For next: 145

Since: 01-25-05

Since last post: 272 days
Last activity: 253 days
Posted on 01-25-05 03:58 PM, in EliteMap and Rubikon Running FAQ Link
Hi All, new pkmn hacker here

I've been getting used to EliteMap and it's tools, having a blast while messing around with Sapphire.

However, after doing the tutorial.html that comes with the EM package, and expanding on it I hit a little bump in the road..

Sofar, I've succesfully done the following with the fat guy in littleroot.
- Made him say "Hello World!" (whoohoo! )
- Made him say "Hi Guy" or "Hi Gal", depending on the gender of the player.
- Tried to make him into a trainer. Here I failed a bit....

Ultimatly, I'm trying to turn him into a trainer for leveling at the start. He should battle the player everytime he/she talks to him. (And only after Birch gave the player the first pkmn offcourse, but I haven't gotten to that yet).

For rubikon, I'm using the following as script :

#include "std.rbh"

#org 0x6B0A54
faceplayer
checkgender
compare LASTRESULT B_BOY
if B_TRUE 0x6B0B54
compare LASTRESULT B_GIRL
if B_TRUE 0x6B0C54
end

#org 0x6B0B54
trainerbattle 0x00 0x25B 0x00 0x6B1A54 0x6B1C54
message 0x6B1D54
boxset 0x06
end

#org 0x6B0C54
trainerbattle 0x00 0x25B 0x00 0x6B1B54 0x6B1C54
message 0x6B1D54
boxset 0x06
end

#org 0x6B1A54
= Hi Guy! Let's Battle!

#org 0x6B1B54
= Hi Gal! Let's Battle!

#org 0x6B1C54
= Auch!

#org 0x6B1D54
= I'm the battle trainer, come again for a rematch anytime!

(0x25B is the data from a trainer on route 104. Which is B0, L13, index 3)

In EM, I assign the fat guy &H6B0A54 for his script.

Without doing anything else, like turning him into a trainer, he'll skip the battle part, the screen will go weird (showing half the screen on the wrong place) and he'll say the "I'm the battle trainer..." part right away.

When I change him into a trainer in EM, by just checking the checkbox for this. Then the results are the same.

When I change him into a trainer with line of sight and all. Then the battle won't start, nothing will happen and the game freezes.


What am I doing wrong ?
(don't expect a step by step solution, but a pointer would help)


(Edit, another question)
Using the same fat guy, I also tried to create a "give a free pokemon" one time event.
According to EM his flag is 0x364, but the following script keeps giving me pokemons...


#include std.rbh

#org 0x6B0A54
faceplayer
checkflag 0x364
if B_TRUE 0x6B0B54
message 0x6B1A54
boxset 0x02
givepokemon 0x19A 0x0A 0x00
setflag 0x364
end

#org 0x6B0B54
message 0x6B1B54
boxset 0x02
end

#org 0x6B1A54
= Hi!\nHere's a nice PKMN!\pKeep it, I have plenty more.

#org 0x6B1B54
= Sorry,\nonly 1 per trainer.


Should there be a compare line between the checkflag and if, and ifso, how is the syntax. I've tried tons of different ways sofar, but none worked

(Edit2, Got the second part fixed!)
This works with giving 1 pkmn, and then no more.

#include std.rbh

#org 0x6B0A54
faceplayer
checkflag 0x10A
if 0 0x6B0B54
message 0x6B1B54
boxset 0x2
end

#org 0x6B0B54
setflag 0x10A
setflag 0x800
message 0x6B1A54
boxset 0x2
givepokemon 0x19A 0x0A 0x00
end

#org 0x6B1A54
= Hi!\nHere's a nice PKMN!\pKeep it, I have plenty more.

#org 0x6B1B54
= Sorry,\nonly 1 per trainer.


Now I just need help with the trainerbattle part.

================================================================
Final Edit:
================================================================

Sorry for adding even more edits, but for now I've given up on the trainerbattle command, until I'm more experienced with these codes.

For now I would appriciate some help on the following script :


#include std.rbh

#org 0x6B0A54
lock
faceplayer
checkgender
' Check for boy/girl, jump if the player is a boy
compare LASTRESULT B_BOY
if B_TRUE 0x6B0B54
' girl, check if the player allready got the pokemon.
' if not jump to the give pokemon part, otherwise state they allready have it.
checkflag 0x10A
if 0 0x6B0D54
message 0x6B1C54
boxset 0x02
release
end

#org 0x6B0B54
' boy, check if the player allready got the pokemon.
' if not jump to the give pokemon part, otherwise state they allready have it.
checkflag 0x10A
if 0 0x6B0C54
message 0x6B1C54
boxset 0x02
release
end

#org 0x6B0C54
' boy, check if the player has a free spot in his party.
' if not jump to message they need space, otherwise give the pokemon.
#raw 0x43
compare LASTRESULT 0x6
if 0x1 jump 0x6B0F54
setflag 0x10A ' note they got the pokemon now.
setflag 0x800 ' activate pokemon party menu.
setflag 0x801 ' activate the normal pokedex.
message 0x6B1A54
boxset 0x2
givepokemon 0x0E4 0x0A 0x00 ' give the player a level10 houndour.
release
end


#org 0x6B0D54
' girl, check if the player has a free spot in his party.
' if not jump to message they need space, otherwise give the pokemon.
#raw 0x43
compare LASTRESULT 0x6
if 0x1 jump 0x6B0F54
setflag 0x10A ' note they got the pokemon now.
setflag 0x800 ' activate pokemon party menu.
setflag 0x801 ' activate the normal pokedex.
message 0x6B1B54
boxset 0x2
givepokemon 0x0AF 0x0A 0x00 ' give the player a level10 togepi.
release
end

#org 0x6B0F54
' sorry, party is full.
message 0x6B1D54
boxset 0x2
release
end

#org 0x6B1A54
= Hi Guy!\nHere's a manly PKMN!\pKeep it, I have plenty more.

#org 0x6B1B54
= Hi Gal!\nHere's a cute PKMN!\pKeep it, I have plenty more.

#org 0x6B1C54
= Sorry,\nonly 1 per trainer.

#org 0x6B1D54
= There is no space for another POK


(edited by spin on 01-25-05 09:52 AM)
(edited by spin on 01-25-05 10:06 AM)
(edited by spin on 01-28-05 08:35 AM)
(edited by spin on 01-28-05 08:36 AM)
spin
Newcomer
Level: 4

Posts: 2/4
EXP: 134
For next: 145

Since: 01-25-05

Since last post: 272 days
Last activity: 253 days
Posted on 02-01-05 02:51 PM, in Rubikon Example site Link
http://central.arachnafobic.org/pokemon/index.php?id=22

While learning how to code in rubikon, do hexedits, etc, I'm collecting small scripts on this site.I hope it will be usefull for some, especially for new pkmn hackers.

In the coming weeks I hope to add lots more of examples, maybe even ones unrelated to rubikon, but on other parts of pkmn hacking.

Should someone want to help by providing more of these little scripts to add to the site then let me state that anybody is welcome to do so. Just PM me for my email addy and I'll get back asap.

(ps. This wasn't ment as advertising, but as a way to help 'n00bs' like myself.)
spin
Newcomer
Level: 4

Posts: 3/4
EXP: 134
For next: 145

Since: 01-25-05

Since last post: 272 days
Last activity: 253 days
Posted on 02-01-05 05:58 PM, in Need a few linux utilities. Link
For a linux based hexeditor with table support check here :
http://www.romhacking.com/utils/textutil.php

One of them is Hexedit 0.9.3 by prez.

From the readme :

WHAT ROMHACKING FEATURES HAVE YOU ADDED:

As of 0.9.3, I have implemented Table File use, and an
on-the-location ASM Pointer Calculator. (More below)


It doesn't say if the table support is thingy tables, but atleast it's a starting point
spin
Newcomer
Level: 4

Posts: 4/4
EXP: 134
For next: 145

Since: 01-25-05

Since last post: 272 days
Last activity: 253 days
Posted on 02-03-05 07:26 PM, in Is there a "real" Dragonball Z? Link
Originally posted by Xeogred
First thing first: I do not hate DBZ, nor do I specifically enjoy or like it by much.

But I've heard people claim that the original Japanese version of the series is much better in every aspect compared to our American port and what Toonami airs.

Is it true? Do you even care?

I'm in the belief that sure, maybe it has more blood, more cussing, than what we get dubbed and edited here, but is it still even worth checking out if you've seen the majority of the original, and have basically lost interest in the series?


One thing I remember was that the original introduction of Gohan is allot more showing then the US version. (his cute little butt, and the 'bird' family that Goku looks over)
Acmlm's Board - I2 Archive - - Posts by spin


ABII


AcmlmBoard vl.ol (11-01-05)
© 2000-2005 Acmlm, Emuz, et al



Page rendered in 0.009 seconds.