Skeetendo

’Cause all games were better on the GBC

You are not logged in.

  • Index
  • → Help/Question
  • → Does it make a difference which is the base event I re-script?

#1 2012-10-16 17:51:11

Zarator
Member
Registered: 2012-09-30
Post 18/47

Does it make a difference which is the base event I re-script?

Sorry for troubling you again, I believe this time the issue is simpler to solve (despite being beyond my ken for now <.<) so I'll make it short. Basically, in my hack Articuno, Zapdos, and Moltres all have the same kind of script. The only difference is that Articuno was "made" out of a Rock Smash tile, whereas Zapdos and Moltres were made out of items.

Articuno works nice. Initally I had a problem with it showing up again whenever I re-entered the area, but I solved it adding a flag and now it works as intended. Zapdos and Moltres, however, give me a weird problem. Whenever I try to battle them, instead I loot a Smoke Ball and that's it :-/

Any of you have any idea on why this happens and how to fix it?

P.S.: If you ever need to look into the scripts, here they are:

Articuno:

#org 0x11A360
'-----------------------------------
faceplayer
loadfont
2writetext 0x6380 ' 0x11A380
cry 0x90
closetext
loadmovesprites
writecode 0x3 0x5 ' Normal fight
loadpokedata 0x90 0x32
startbattle
disappear 0x3
returnafterbattle
end


#org 0x11A380
= GYAOO!\e

Zapdos:

#org 0x11CA50
'-----------------------------------
faceplayer
loadfont
2writetext 0x4A70 ' 0x11CA70
cry 0x91
closetext
loadmovesprites
writecode 0x3 0x5 ' Normal fight
loadpokedata 0x91 0x32
startbattle
disappear 0x3
returnafterbattle
end


#org 0x11CA70
= Gyaoo!\e

Moltres:

#org 0x11A3A0
'-----------------------------------
faceplayer
loadfont
2writetext 0x63C0 ' 0x11A3C0
cry 0x92
closetext
loadmovesprites
writecode 0x3 0x5 ' Normal fight
loadpokedata 0x92 0x32
startbattle
disappear 0x3
returnafterbattle
end


#org 0x11A3C0
= Gyaoo!\e

Offline

#2 2012-10-16 18:24:15

Miksy91
Member
Registered: 2010-10-16
Post 1,173/2,306

Re: Does it make a difference which is the base event I re-script?

The problem is with the value Johtomap shows as "Type" for each person event (or better, the first four bits of "Function" byte for each person event). For Type 0, the game will execute a "normal" script when that event is talked to. When it's 1, the game will give you the item based on the two first bytes in their script; you should be getting 0x47 0x6A's in your item pocket when you "pick up" Zapdos or Moltres.

6A = faceplayer command (=Smoke Ball's item number)
47 = loadfont command (=amount of Smoke Balls given)

Last edited by Miksy91 (2012-10-16 18:24:45)

Offline

#3 2012-10-16 18:35:09

Zarator
Member
Registered: 2012-09-30
Post 19/47

Re: Does it make a difference which is the base event I re-script?

Amazing, it worked. I knew it would've been something totally stupid^^ Thanks again!

Offline

  • Index
  • → Help/Question
  • → Does it make a difference which is the base event I re-script?

Board footer

Powered by FluxBB