The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > ROM Hacking > Tools, Tutorials & Resources
Sign Up Rules/FAQ Live Battle Blogs Mark Forums Read

Notices

Tools, Tutorials & Resources Various tools to help you develop your hacks can be found here.
New threads in this forum are to be approved by a moderator before they are displayed.


Advertise here

Reply
Click here to go to the first staff post in this thread.  
Thread Tools
  #1051    
Old 2 Weeks Ago, 04:51 PM
NG55's Avatar
NG55
 
Join Date: Sep 2009
Location: Barrie, Ontario, Canada
Gender: Male

Advertise here
LASTRESULT doesn't do work. It's telling me to define something.
Reply With Quote
  #1052    
Old 2 Weeks Ago, 01:34 AM
Flower's Avatar
Flower
ワイルドフラワー
 
Join Date: Nov 2013
Location: Void
Gender: Male
Nature: Quiet
Send a message via Skype™ to Flower
Quote:
Originally Posted by NG55 View Post
LASTRESULT doesn't do work. It's telling me to define something.
Probably your script was wrong. If it was correct, the error define wouldn't appear.
__________________
PM | Flower | VM
Reply With Quote
  #1053    
Old 2 Weeks Ago, 03:44 AM
NG55's Avatar
NG55
 
Join Date: Sep 2009
Location: Barrie, Ontario, Canada
Gender: Male
Quote:
Originally Posted by Flower View Post
Probably your script was wrong. If it was correct, the error define wouldn't appear.
The rest is fine, it just won't do the LASTRESULT thing, so the player has to go into the nickname screen. Shall I PM you the script?
Reply With Quote
  #1054    
Old 2 Weeks Ago, 03:54 AM
Magic's Avatar
Magic
 
Join Date: Jan 2009
Location: UK
Age: 23
Gender: Male
Quote:
Originally Posted by NG55 View Post
LASTRESULT doesn't do work. It's telling me to define something.

Not sure what happened here...

if LASTRESULT doesn't work use 0x800D in its place.


Quote:
Originally Posted by Squeetz View Post
I need help... I'm trying to make scripts in Fire red, but every time I add one, and I walk into the script, the game just crashes. I have no idea what I'm doing wrong. (I'm a noob to scripting, however)

This is a short script I wrote just to paste here:
Spoiler:
'---------------
#org 0x740000
lock
msgbox 0x874000C MSG_NORMAL '"Moo."
release
end


'---------
' Strings
'---------
#org 0x74000C
= Moo.
Put that in a person event and it should work fine green script tiles need to have variables selected - I believe there is a tutorial on them by KarateKid.
__________________

Last edited by Magic; 2 Weeks Ago at 09:33 AM.
Reply With Quote
  #1055    
Old 2 Weeks Ago, 09:48 PM
Squeetz's Avatar
Squeetz
 
Join Date: Jun 2013
Gender: Male
Quote:
Put that in a person event and it should work fine green script tiles need to have variables selected - I believe there is a tutorial on them by KarateKid.
All right, I'll be sure to check it out, thank you
Reply With Quote
  #1056    
Old 1 Week Ago, 08:02 PM
U.Flame's Avatar
U.Flame
Brony Hacker
 
Join Date: Jun 2008
Location: Sapphire City in future Hoenn
Age: 19
Gender: Male
Nature: Jolly
Having trouble making giveitem commands. I'm getting "Error 13 Type Mismatch on line 29. Missing #define." Here's what I have. Line 29 is the first giveitem command.
#dynamic 0x304F18

#org @essentials
lock
faceplayer
checkflag 0x1200
if 0x1 goto @done
msgbox @message1 0x5
compare 0x800D 0x1
if 0x1 goto @take
msgbox @message3 0x6
release
end

#org @take
setflag 0x807
setflag 0x808
setflag 0x809
setflag 0x80A
setflag 0x80B
setflag 0x80C
setflag 0x80D
setflag 0x80E
setflag 0x800
setflag 0x801
setflag 0x860
givepokemon 0x97 0x64 0x0 0x0 0x0 0x0
givepokemon 0x97 0x64 0x0 0x0 0x0 0x0
giveitem 0x153 0x1 MSG_OBTAIN
giveitem 0x154 0x1 MSG_OBTAIN
giveitem 0x155 0x1 MSG_OBTAIN
giveitem 0x156 0x1 MSG_OBTAIN
giveitem 0x157 0x1 MSG_OBTAIN
giveitem 0x158 0x1 MSG_OBTAIN
giveitem 0x159 0x1 MSG_OBTAIN
giveitem 0x15A 0x1 MSG_OBTAIN
msgbox @message4 0x6
setflag 0x1200
release
end

#org @done
msgbox @message2 0x6
release
end

#org @message4
= All set!

#org @message2
= Good luck!

#org @message1
= Want some testing essentials?

#org @message3
= ...really?

Well, destinedjagold provided me a different version of XSE it fixed the problem. Dunno what caused it or why this one fixed it, but yay.
__________________
Got an old laptop for hacking! With my IPod for Internet, my sister's laptop for transferring, and now this functional laptop for hacking, I'm back in the game!

Yay my username is accurate now! Also holy crap I just realized Unbeatable was misspelled for the longest time! Fixed. xp

Times I've been ninja'd: 18
Times I've ninja'd people: 3

Quote:
Originally Posted by drarixio View Post
Unbeatable Flame would make a pokemon trainer run outta breath in the anime:
Unbeatable Flame, Flamethrower.
Unbeatable Flame, Sky Uppercut.
Unbeatable Flame, this.
Unbeatable Flame, that.
Un*pant*beatable---Flame, hooollaaa
Un-un-un-un--bea-bee....*Pokemon trainer fainted*

Last edited by Christos; 1 Week Ago at 01:45 AM. Reason: merged
Reply With Quote
  #1057    
Old 3 Days Ago, 08:45 AM
Squeetz's Avatar
Squeetz
 
Join Date: Jun 2013
Gender: Male
Having another problem. For some reason, the script doesn't move the sprites in-game (This is a script tile) (I am 100% sure they are the same event no. as in the script) The script will only show the messages and the players movements.
Here's the script I composed (after compiling it and re-opening it):
Spoiler:
'---------------
#org 0x755000
lock
checkflag 0x202
if 0x1 goto 0x87550DC
msgbox 0x87550DF MSG_NORMAL '"Wait, [player]!"
movesprite 0x8 0x46 0x10 <---- These right here. Are they in the wrong position or something?
movesprite 0x3 0x46 0x10 I've tried to put them after the flag is checked as well, still doesn't work
applymovement MOVE_PLAYER 0x87550EB
waitmovement 0x0
applymovement 0x8 0x87550EF
waitmovement 0x8
msgbox 0x87550FC MSG_KEEPOPEN '"Charlotte: I'm sorry..\nit came as..."
applymovement 0x3 0x8755137
waitmovement 0x3
closeonkeypress
msgbox 0x8755143 MSG_NORMAL '"David: Charly!\nWhy'd you go after..."
applymovement 0x8 0x8755192
waitmovement 0x8
msgbox 0x8755195 MSG_NORMAL '"Charlotte: Oh, hey\nDavid..\pI did..."
applymovement 0x3 0x8755263
applymovement 0x8 0x8755268
waitmovement 0x8
msgbox 0x875526D MSG_NORMAL '"Charlotte: (Help me)"
applymovement 0x3 0x8755284
applymovement 0x8 0x875528B
waitmovement 0x8
msgbox 0x8755292 MSG_NORMAL '"..."
movesprite 0x8 0x42 0x0
setflag 0x202
applymovement MOVE_PLAYER 0x8755298
waitmovement 0x0
msgbox 0x875529B MSG_NORMAL '"[player]: It sounded\nlike she whi..."
applymovement 0x3 0x87552F3
waitmovement 0x3
applymovement MOVE_PLAYER 0x87552FF
waitmovement 0x0
msgbox 0x8755302 MSG_NORMAL '"David: Back off, dude.\nCharlotte ..."
applymovement 0x3 0x8755368
waitmovement 0x3
movesprite 0x3 0x42 0x0
release
end

'---------------
#org 0x7550DC
release
end


'---------
' Strings
'---------
#org 0x7550DF
= Wait, [player]!

#org 0x7550FC
= Charlotte: I'm sorry..\nit came as a shock to you,\land...

#org 0x755143
= David: Charly!\nWhy'd you go after him?\lHe's leaving anyway! Just\llet him go!

#org 0x755195
= Charlotte: Oh, hey\nDavid..\pI didn't know what to do,\nso I went after him... I'm sorry.\pDavid: You better be. Now,\nlet's leave this guy before he\lgets any second thoughts.\pCharlotte: Ehm.. okay.\nBye, [player]..

#org 0x75526D
= Charlotte: (Help me)

#org 0x755292
= ...

#org 0x75529B
= [player]: It sounded\nlike she whispered something\lto me, but I couldn't hear\lit...\pOh well.

#org 0x755302
= David: Back off, dude.\nCharlotte is mine.\lDon't even think about\lcoming back, I will kick\lyour ass.


'-----------
' Movements
'-----------
Edited out movements because it is irrelevant.

Last edited by Squeetz; 3 Days Ago at 09:03 AM.
Reply With Quote
  #1058    
Old 3 Days Ago, 09:24 AM
Magic's Avatar
Magic
 
Join Date: Jan 2009
Location: UK
Age: 23
Gender: Male
I've had problems before with move sprite not working for sprites that are far away. Judging by the large numbers you're using, this might be the case here?
__________________
Reply With Quote
  #1059    
Old 3 Days Ago, 01:05 PM
Squeetz's Avatar
Squeetz
 
Join Date: Jun 2013
Gender: Male
Once again, you helped me. They actually were too far away. Thank you sincerely, I guess you're just magic, huh.
Reply With Quote
Reply
Quick Reply

Sponsored Links


Advertise here
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Minimum Characters Per Post: 25



All times are UTC -8. The time now is 04:11 AM.


Style by Nymphadora, artwork by Sa-Dui.
Like our Facebook Page Follow us on Twitter © 2002 - 2014 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 - 2014 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.