View Single Post
  #2741    
Old December 24th, 2009, 04:50 PM
Darthatron's Avatar
Darthatron
巨大なトロール。
Community Supporter
 
Join Date: Jan 2006
Location: Melbourne, Australia
Age: 23
Gender: Male
Nature: Modest
Quote:
Originally Posted by Hoshiko Aki View Post
Whats wrong with this script?

oncompilde:
Spoiler:
#dynamic 0x800000

#org @main
lock
faceplayer
checkflag 0x828
if 0x0 goto @pokémon
message @yespokémon 0x6
fadescreen 0x1
hidesprite 0x800F
setflag 0x1000
fadescreen 0x0

release
end

#org @pokémon
message @nopokémon 0x6
release
end

#org @nopokémon
= Isn't the nature wonderfull? Maby\nyou like to take a look at the\lbreeding farm

#org @yespokémon
= You have get a Gligar at the\nBreedig farm I see?



Can some buddy help me?
Simply put, your msgbox function points to something that isn't text, and your goto function points to text. I attempted to fix your script, though I'm not really sure what it was meant to do... Fixes are in bold.

Quote:
Originally Posted by lugiaguy View Post
Can someone help me? I'm having trouble with warp scripts. Here's one that I recently put together.

Code:
'---------------
#org 0x801240
lock
faceplayer
countpokemon
compare LASTRESULT 0x1
if 0x1 goto 0x880125C
release
end
'---------------
#org 0x80125C
warpmuted 0x18 0x58 0x0 0x0 0x0
release
end
Basically, if the player has 1 pokemon in his party, he warps, if he has more or less, he doesn't warp. I want the player to warp to (24,88) or (18,58) in hex. Unfortunately, when I use this script, the game just freezes.
Try that, it seemed to fix the problem when I had a similar one. Also, you didn't need a second 'lock' and 'faceplayer' after your 'goto'.

EDIT: Also, make sure you have a warp on the map you are warping to.
__________________
あなた は しきしゃ です
わたし は ばか です

Last edited by Darthatron; December 24th, 2009 at 05:00 PM. Reason: ;)