The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > ROM Hacking > ROM Hacking Hub
Sign Up Rules/FAQ Live Battle Blogs Mark Forums Read

Notices

ROM Hacking Hub General discussions about ROM Hacking and Emulation. Not sure where to start? This is the place for you.
Posting links to ROMs is illegal and is not tolerated anywhere on the forum.
New threads in this forum are to be approved by a moderator before they are displayed.

Closed Thread
Click here to go to the first staff post in this thread.  
Thread Tools
  #6701    
Old April 2nd, 2012 (07:39 PM).
bjanzen
Beginning Trainer
 
Join Date: Oct 2010
Gender: Male
hey everyone i have a quick question, is there a certain way you're supposed to make scripts that happen when you walk on the tile? say for a rival battle, or you can walk here without a certain thing? i've tried a million different ways maybe i'm missing something. this is my simple example of walking to a cave but you cant go there cause you havent gotten a pokemon yet.

Spoiler:

#dyn 0x740000
#org @start
'-----------------------------------
lockall
msgbox @text
callstd MSG_NORMAL
applymovement PLAYER @move
pauseevent 0x0
releaseall
end


#org @move
M walk_right walk_right look_down end

#org @text
= Wait i can't go this way yet.


obviously im gonna spice it up with flags, but am i way off course? i looked at scripts already in the game and they use the lockall command...
p.s. im using pksv, but i have xse worse case scenario

any guidance would be appreciated thanks!
  #6702    
Old April 2nd, 2012 (08:28 PM).
SevenShirokami's Avatar
SevenShirokami
Cosmo of Light and Dark
 
Join Date: Mar 2012
Location: EVERYWHERE >:D
Age: 20
Gender: Female
Nature: Quirky
I was just wondering what a good scripting tool would be, as well as how to use it.
Thanks for the help! (if I get it lol)
__________________
My deviantART page -- http://cosmic-angel-raine.deviantart.com/
My Nuzlocke on the Nuzlocke Forums -- http://s7.zetaboards.com/Nuzlocke_Fo...pic/8656660/1/

Hacks I've played:

  #6703    
Old April 2nd, 2012 (09:34 PM). Edited April 2nd, 2012 by Nate VonGrimm.
Nate VonGrimm's Avatar
Nate VonGrimm
Mime Jr.
 
Join Date: Oct 2011
Location: Uxbridge
Age: 23
Gender: Male
Nature: Relaxed
Quote:
Originally Posted by bjanzen View Post
hey everyone i have a quick question, is there a certain way you're supposed to make scripts that happen when you walk on the tile? say for a rival battle, or you can walk here without a certain thing? i've tried a million different ways maybe i'm missing something. this is my simple example of walking to a cave but you cant go there cause you havent gotten a pokemon yet.

Spoiler:

#dyn 0x740000
#org @start
'-----------------------------------
lockall
msgbox @text
callstd MSG_NORMAL
applymovement PLAYER @move
pauseevent 0x0
releaseall
end


#org @move
M walk_right walk_right look_down end

#org @text
= Wait i can't go this way yet.


obviously im gonna spice it up with flags, but am i way off course? i looked at scripts already in the game and they use the lockall command...
p.s. im using pksv, but i have xse worse case scenario

any guidance would be appreciated thanks!
What you're trying to do is a trip script.
I have a video that shows and explains how to make them.
I do believe you have to use XSE to do them though.
Skip to 8:35 for trip script tutorial.
http://www.youtube.com/watch?v=rhvDX1_b8Ek
__________________
Currently working on a new Pokemon Hack with an in-depth story line!
That's about as much as you're going to get for now...


  #6704    
Old April 2nd, 2012 (10:55 PM).
miksy91's Avatar
miksy91
A GB/C Rom Hacker since 2010
 
Join Date: Oct 2008
Location: A small country in the North
Gender: Male
Nature: Relaxed
Quote:
Originally Posted by redx2dth View Post
You have to use ASM.

(I didnt make this, JPAN did so credits go to him)

This code here allows you to cure, immunize and catch the pokemon virus. To make it work, put in var 0x8005 a number between 0x1 and 0xf to give it, 0x0 to cure but not immunize and 0x10 or higher to immunize the pokemon, preventing him to ever catch the virus again (even with this code)

ASM Code:
b507 push {r0-r2, lr}
4806 ldr r0, 0x0203f414 ;Misc block data storage address
6800 ldr r0, [r0]
4906 ldr r1, 0x020370C2 ;var 0x8005, keeps pokerus new status
7802 ldrb r2, [r0]
2a0f cmp r2, 0xf ; if immune, do nothing
dc02 bgt end
8809 ldrh r1, [r1] ;time to remain, bigger than 10 to immunize
2910 cmp r1, 0x10
db00 blt infect
2110 mov r1, 0x10
7001 infect:strb r1, [r0]
bd07 end:pop {r0-r2, lr}

Compiled and ready:
07 B5 06 48 00 68 06 49 02 78 0F 2A 04 DC 09 88
10 29 00 DB 10 21 01 70 07 BD 00 00 14 F4 03 02
C2 70 03 02
Just figured to point out that the assembly code doesn't match with how it's written in hexadecimal below (changes in bold).

Besides, what's up with there being no "command" bytes. So far, the "compiled" code only contains bytes that are stored in different registers etc. although the stuff after 07 BD seems to have something to do with all that code before it.
__________________
My Rom Hack



Hacks I support





Learn how to hack GB/C games:

Check my GameBoy/Color hacking videos in Youtube
-The video set uses Pokemon Silver (U) rom for demonstrations
  #6705    
Old April 3rd, 2012 (10:21 AM).
bjanzen
Beginning Trainer
 
Join Date: Oct 2010
Gender: Male
Quote:
Originally Posted by Nate VonGrimm View Post


What you're trying to do is a trip script.
I have a video that shows and explains how to make them.
I do believe you have to use XSE to do them though.
Skip to 8:35 for trip script tutorial.
thank you that adds a lot of clarity, but i still cant seem to get it to work. Even after copy and pasting from your tut, it does nothing. usually it just freezes when i trip it, but with yours nothing happens. does it matter im using a fire red rom, patched with a rom base?
  #6706    
Old April 3rd, 2012 (10:44 AM).
Nate VonGrimm's Avatar
Nate VonGrimm
Mime Jr.
 
Join Date: Oct 2011
Location: Uxbridge
Age: 23
Gender: Male
Nature: Relaxed
Quote:
Originally Posted by bjanzen View Post
thank you that adds a lot of clarity, but i still cant seem to get it to work. Even after copy and pasting from your tut, it does nothing. usually it just freezes when i trip it, but with yours nothing happens. does it matter im using a fire red rom, patched with a rom base?
I don't know about Fire Red unfortunately.
It might not work because the codes are used differently so I'm not sure.
I'm sure someone one this thread will help clear this up for you =]
__________________
Currently working on a new Pokemon Hack with an in-depth story line!
That's about as much as you're going to get for now...


  #6707    
Old April 3rd, 2012 (11:32 AM).
Magic's Avatar
Magic
Guardian of the Great Rift
 
Join Date: Jan 2009
Location: UK
Age: 23
Gender: Male
Quote:
Originally Posted by bjanzen View Post
thank you that adds a lot of clarity, but i still cant seem to get it to work. Even after copy and pasting from your tut, it does nothing. usually it just freezes when i trip it, but with yours nothing happens. does it matter im using a fire red rom, patched with a rom base?
Try Unknown value: 03, Variable Number: 4050.
__________________
  #6708    
Old April 4th, 2012 (11:11 AM).
Mr.KoolAid
Unhatched Egg
 
Join Date: Mar 2012
Gender: Female
When i try and load my ROM the screen stays white. I can load my save state from earlier and it is all buggy until i enter a building. It also freezes occasionally when i go into a new rote/town/building/cave.

Can i fix this? It also will not let me save the project under another name.

Will i have to load up the original rom and restart... if so, how can i prevent this from happening again?
  #6709    
Old April 4th, 2012 (03:07 PM).
droomph's Avatar
droomph
mmm gurl that 90s
Community Supporter
 
Join Date: Sep 2011
Location: bar'jách
Age: 17
Gender: Male
Nature: Impish
In a hex editor, try filling the data until 0x1000000 bytes. It should run then.

If not, try getting a new one. To stop this from happening again, you'll...well, have to be more careful, I guess.
__________________
did u no there r 21 letters in the alphabet
o i forgot 5
uraqt


  #6710    
Old April 4th, 2012 (06:02 PM).
Mr.KoolAid
Unhatched Egg
 
Join Date: Mar 2012
Gender: Female
...forgot to mention, super noob here

how would I change the bytes... download a hex editor and open a rom in it...
  #6711    
Old April 5th, 2012 (10:17 AM).
Cyru's Avatar
Cyru
-
 
Join Date: Apr 2012
Location: England
Age: 17
Gender: Male
Nature: Quirky
Hey, does anyone know where i could get hold of Pkmnadv for poketscript?
__________________
"Faith is taking the first step even when you don't see the whole staircase." -Martin Luther King, Jr
  #6712    
Old April 5th, 2012 (11:01 AM). Edited April 5th, 2012 by Glitched Hacker.
Glitched Hacker's Avatar
Glitched Hacker
Beginning Hacker
 
Join Date: Apr 2012
Gender: Male
Nature: Brave
When I try to make a yes/no script it says Error 13 "type mismatch" on line 7. Missing #define. Can someone please help me?

Here's my script:

Spoiler:

#dynamic 0x3521AA

#org @start
lock
faceplayer
msgbox @friend 0x5
compare LASTRESULT 0x1
if 0x1 goto @yespart
msgbox @no 0x6
release
end

#org @yespart
msgbox @yes 0x6
release
end

#org @friend
= \c\h01\h09Hi. I'm the new girl, Violet.\nDo you wanna be friends?

#org @yes
= \c\h01\h09Ok!\nSee you around!\pOh and if you see my little\nbrother, Red, could you tell him\lMom said that she wants him closer\lto the house?\lHe's wandered of somewhere.\pThanks!

#org @no
= \c\h01\h09What?\nReally!?\pBut I'm too shy to ask anyone\nelse!\p\v\h06 just seems too rude and I\ndon't know anybody else!


I didn't press enter to go down a line in the script of what the characters are saying, its just the limited amount of space that PokeCommunity gives me in this reply box. The string of words that the characters say is actually one straight line in XSE.

Oh, and the beginning offset is an offset I found in Free Space Finder.
FYI, I'm compiling this script into Pokemon Fire Red.
__________________
If people knew how hard I worked to get my mastery, it wouldn't seem so wonderful at all.

-Michelangelo
  #6713    
Old April 5th, 2012 (11:57 AM).
Spherical Ice's Avatar
Spherical Ice
 
Join Date: Nov 2007
Location: UK
Send a message via Skype™ to Spherical Ice
Hm, seems your copy of XSE is missing the std.rbh file. Replace "LASTRESULT" with 0x800D or add this file to the folder XSE is in.

Also, with the dynamic offset, DON'T use FSF to find offsets. Simply put "#dynamic 0x800000" at the beginning. When it's compiled, XSE will automatically compile it to free space. You just copy the offset it gives you and use that.
__________________
  #6714    
Old April 5th, 2012 (01:25 PM). Edited April 5th, 2012 by Glitched Hacker.
Glitched Hacker's Avatar
Glitched Hacker
Beginning Hacker
 
Join Date: Apr 2012
Gender: Male
Nature: Brave
Thanks! That worked, but i have just one last question.

How do I make that same script so that when the player says yes this script won't come up again, it will be something else? You guys might tell me to use flags, and that's what I have a question about. I know how to use flags for a regular message, but not a yes or no message.
Basically I don't know where to put checkflag, setflag, or clearflag in my yes/no script.


Thanks in advance!
__________________
If people knew how hard I worked to get my mastery, it wouldn't seem so wonderful at all.

-Michelangelo
  #6715    
Old April 6th, 2012 (05:20 AM).
Cyru's Avatar
Cyru
-
 
Join Date: Apr 2012
Location: England
Age: 17
Gender: Male
Nature: Quirky
Quote:
#org $va
jingle
showsprite 5
applymovement 5 $walk
$walk 1 ; #binary 0x0B 0x0B 0x0B 0x0B 0x0B 0x0B 0x0B 0xFE
pausemove 0
applymovement 5 $gogo
$gogo 1 ; #binary 0x0D 0x0D 0x0D 0x0D 0x0D 0xFE
pausemove 0
clearflag 0x1215
message $stop
$stop 1 = Hey! How many POKEMON do you have?\pONE? when you're in this dangerous world,\nyou need at least two POKEMON\pTo keep you safe!
boxset 6
message $bat
$bat 1 = You know what? i'll give you a POKEMON\nif you can beat me...\pbut this is only for loan,\nuntil you catch your own..
boxset 6
trainerbattle 0x03 0x02 $win
$win 1 = Wow! you're strong!
message $after
$after 1 = wow! you're really strong!\pIt was a pleasure to battle you!\pHere, take my HOUNDOUR!
boxset 6
message $yay
$yay 1 = \v\h01 Received a GROWLITHE!\pNow, i need to get back..\pSeeya!
fanfare 0x13E
boxset 6
givepokemon 228 5 0x8D
fadescreen 1
removesprite 5
fadescreen 0
setflag 0x1215
setvar 0x6000 0x0002
release
end
Does anybody know what's wrong with this? i mean the var value and number are in the right place on advance map so .. ?
__________________
"Faith is taking the first step even when you don't see the whole staircase." -Martin Luther King, Jr
  #6716    
Old April 6th, 2012 (05:42 AM).
TheZeno96's Avatar
TheZeno96
Pokemon Silver Legend Owner
 
Join Date: Sep 2011
Location: Italy
Age: 18
Gender: Male
Use XSE script! it works better than this!
__________________
The king wake up...
Evil forces want his power...
Can you save him?



Awards!

  #6717    
Old April 6th, 2012 (06:47 AM).
Cyru's Avatar
Cyru
-
 
Join Date: Apr 2012
Location: England
Age: 17
Gender: Male
Nature: Quirky
I contemplated using XSE but it seems really overcomplicated and it seems to me pokescript is easier
__________________
"Faith is taking the first step even when you don't see the whole staircase." -Martin Luther King, Jr
  #6718    
Old April 6th, 2012 (07:04 AM).
TheZeno96's Avatar
TheZeno96
Pokemon Silver Legend Owner
 
Join Date: Sep 2011
Location: Italy
Age: 18
Gender: Male
I don't think so rather I think it is more intuitive
__________________
The king wake up...
Evil forces want his power...
Can you save him?



Awards!

  #6719    
Old April 6th, 2012 (07:35 AM).
bensgraphicdesign
Beginning Trainer
 
Join Date: Apr 2012
Gender: Male
Hey there everybody, I started scripting on PKSV a couple of days ago and I was wondering if anybody could answer these questions;
  • Is there an existing script to following a character when you walk over a script spot, as on Pokémon Firered and Pokémon Leafgreen, after leaving home and heading north; Professor Oak leads you to his lab to receive one of the three starters.
  • What is a 'Flag Skeleton 1' and a 'Flag Skeleton 2'?
  • What are the flag values used for (0x200 - 0x1000 etc.)?
  • Oh, and a quick one for Advance Map 1.92; I've put a warp point inside and outside of the cave, when I walk into the cave I'm facing the exit, bit I should be facing the other way. + when I try to exit the cave I just hover above the exit.
Help appreciated!
  #6720    
Old April 6th, 2012 (07:53 AM).
Glitched Hacker's Avatar
Glitched Hacker
Beginning Hacker
 
Join Date: Apr 2012
Gender: Male
Nature: Brave
Quote:
Originally Posted by Glitched Hacker View Post
Thanks! That worked, but i have just one last question.

How do I make that same script so that when the player says yes this script won't come up again, it will be something else? You guys might tell me to use flags, and that's what I have a question about. I know how to use flags for a regular message, but not a yes or no message.
Basically I don't know where to put checkflag, setflag, or clearflag in my yes/no script.


Thanks in advance!
Can someone plese answer this question?
__________________
If people knew how hard I worked to get my mastery, it wouldn't seem so wonderful at all.

-Michelangelo
  #6721    
Old April 6th, 2012 (08:26 AM).
Glitched Hacker's Avatar
Glitched Hacker
Beginning Hacker
 
Join Date: Apr 2012
Gender: Male
Nature: Brave
I ran into another problem, but with a different script. I am trying to make an appplymovement script but the character I try to make move does not go anywhere. Is there something wrong with my script?

Here it is:

Spoiler:


#dynamic 0x800000

#org @start
lock
faceplayer
msgbox @waterwalk 0x6
applymovement 0x10 @redmove
waitmovement 0x0
applymovement 0xFF @playerexpression
waitmovement 0x0
msgbox @utry 0x6
applymovement 0xFF @playermove
waitmovement 0x0
msgbox @see 0x6
applymovement 0xFF @outofway
waitmovement 0x0
applymovement 0x10 @redleave
waitmovement 0x0
msgbox @dissapear 0x6
applymovement 0x10 @vanish
waitmovement 0x0
release
end

#org @waterwalk
= \c\h01\h04Hey!\n\v\h01!\pDid you know you can run across\nthe water straight behind me? Yep!\lWatch me!

#org @redmove
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0xFE

#org @playerexpression
#raw 0x62
#raw 0xFE

#org @utry
= \c\h01\h04See?\nEasy!\pYou try!

#org @playermove
#raw 0xA
#raw 0xA
#raw 0xA
#raw 0xA
#raw 0xA
#raw 0xA
#raw 0xA
#raw 0xA
#raw 0xFE

#org @see
= \c\h01\h04See?\nWas that so hard?\pHa Ha! It's because the water is\nso shallow in the middle.\lIt's very deep around the outside\lof the pond, so I would rather use\lSurf than take a dirty swim!\p...\pWhat? Violet said Mom said that?\nHa! I don't believe her for a\lsecond!\lShe's probably just too shy to run\laround the Zracto region so she\lwants me near RUN-DOWN TOWN so she\lcan feel better.\lShe does that all the time.\pWell, I better go just in case.\nSee you around, \v\h01!

#org @outofway
#raw 0x47
#raw 0xFE

#org @redleave
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0xFE

#org @dissapear
= \c\h01\h04Abra!\nUse Teleport!

#org @vanish
#raw 0x60
#raw 0xFE



I got the sprite number from Advance Map in the first image.

Do I need to use this? (second image)
Attached Images
File Type: jpg screenshothelp1.JPG‎ (17.3 KB, 6 views) (Save to Dropbox)
File Type: jpg screenshothelp.JPG‎ (15.2 KB, 5 views) (Save to Dropbox)
__________________
If people knew how hard I worked to get my mastery, it wouldn't seem so wonderful at all.

-Michelangelo
  #6722    
Old April 6th, 2012 (08:33 AM).
Magic's Avatar
Magic
Guardian of the Great Rift
 
Join Date: Jan 2009
Location: UK
Age: 23
Gender: Male
Quote:
Originally Posted by Glitched Hacker View Post
I ran into another problem, but with a different script. I am trying to make an appplymovement script but the character I try to make move does not go anywhere. Is there something wrong with my script?

Here it is:

Spoiler:


#dynamic 0x800000

#org @start
lock
faceplayer
msgbox @waterwalk 0x6
applymovement 0x10 @redmove
waitmovement 0x0
applymovement 0xFF @playerexpression
waitmovement 0x0
msgbox @utry 0x6
applymovement 0xFF @playermove
waitmovement 0x0
msgbox @see 0x6
applymovement 0xFF @outofway
waitmovement 0x0
applymovement 0x10 @redleave
waitmovement 0x0
msgbox @dissapear 0x6
applymovement 0x10 @vanish
waitmovement 0x0
release
end

#org @waterwalk
= \c\h01\h04Hey!\n\v\h01!\pDid you know you can run across\nthe water straight behind me? Yep!\lWatch me!

#org @redmove
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0xFE

#org @playerexpression
#raw 0x62
#raw 0xFE

#org @utry
= \c\h01\h04See?\nEasy!\pYou try!

#org @playermove
#raw 0xA
#raw 0xA
#raw 0xA
#raw 0xA
#raw 0xA
#raw 0xA
#raw 0xA
#raw 0xA
#raw 0xFE

#org @see
= \c\h01\h04See?\nWas that so hard?\pHa Ha! It's because the water is\nso shallow in the middle.\lIt's very deep around the outside\lof the pond, so I would rather use\lSurf than take a dirty swim!\p...\pWhat? Violet said Mom said that?\nHa! I don't believe her for a\lsecond!\lShe's probably just too shy to run\laround the Zracto region so she\lwants me near RUN-DOWN TOWN so she\lcan feel better.\lShe does that all the time.\pWell, I better go just in case.\nSee you around, \v\h01!

#org @outofway
#raw 0x47
#raw 0xFE

#org @redleave
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0xFE

#org @dissapear
= \c\h01\h04Abra!\nUse Teleport!

#org @vanish
#raw 0x60
#raw 0xFE



I got the sprite number from Advance Map in the first image.

Do I need to use this? (second image)
10 is Decimal You want 0xA (0x9->0xA)

To your previous problem you want to use flags, use 'setflag 0xNUMBER' on one part, and have a 'checkflag 0xNUMBER' on the next part, like this.

#org @start
lock
checkflag 0x1000
if 0x1 goto @DONE
msgbox @Talk1 0x6
setflag 0x1000
release
end

#org @DONE
msgbox @Talk2 0x6
release
end

#org @Talk1
= Flag is clear, setting the flag.

#org @Talk2
= Now the flag is set!
__________________
  #6723    
Old April 6th, 2012 (06:13 PM). Edited April 6th, 2012 by Glitched Hacker.
Glitched Hacker's Avatar
Glitched Hacker
Beginning Hacker
 
Join Date: Apr 2012
Gender: Male
Nature: Brave
Thanks SwiftSign! I spaced out and forgot about how "10" doesn't work.

And for the yes/no script, I'm sorry, I don't mean to be annoying, but when I press "No", it still switches to the other script. Is there a way so it can only switch to the other script if I press "Yes"?

This is my script so far:

Spoiler:


#dynamic 0x800000

#org @start
lock
faceplayer
checkflag 0x1000
if 0x1 goto @nextmsg
msgbox @friend 0x5
compare 0x800D 0x1
if 0x1 goto @yespart
setflag 0x1000
msgbox @no 0x6
release
end

#org @nextmsg
lock
faceplayer
msgbox @later 0x6
release
end

#org @later
= I'll see you around the Zracto\nregion!

#org @yespart
msgbox @yes 0x6
release
end

#org @friend
= \c\h01\h09Hi. I'm the new girl, Violet.\nDo you wanna be friends?

#org @yes
= \c\h01\h09Ok!\nSee you around!\pOh and if you see my little\nbrother, Red, could you tell him\lMom said that she wants him closer\lto the house?\lHe's wandered of somewhere.\pThanks!

#org @no
= \c\h01\h09What?\nReally!?\pBut I'm too shy to ask anyone\nelse!\p\v\h06 just seems too rude and I\ndon't know anybody else!



Again, I don't meant to be annoying and buggy, but I would please like some help on this.

Actually, I just tested the script again and it only goes to the new script when I press "NO", when I press "YES" it still gives me the same script again. Did i put the setflag in the wrong spot?


__________________________________________________________________________________________



OMG!!! I do what all the tutorials say and I still have some sort of problem!

I am trying to make a giveitem script, but when I compile it it says "Error 13 'Type mismatch' on line 7. Missing dynamic label". What is wrong?

This is my script:

Spoiler:


#dynamic 0x800000

#org @start
lock
faceplayer
checkflag 0x1002
if 0x1 goto @none
msgbox @infridge 0x6
giveitem 0x1A 0x1 0x0
fanfare 0x13E
msgbox @more 0x4
waitfanfare
closeonkeypress
giveitem 0x1B 0x1 0x0
fanfare 0x13E
msgbox @more 0x4
waitfanfare
closeonkeypress
giveitem 0x1C 0x1 0x0
fanfare 0x13E
msgbox @more 0x4
waitfanfare
closeonkeypress
giveitem 0x1D 0x2 0x0
fanfare 0x13E
msgbox @nomore 0x4
waitfanfare
closeonkeypress
msgbox @momquote 0x6
setflag 0x1002
release
end

#org #none
lock
faceplayer
msgbox @empty 0x6
release
end

#org @empty
= There is nothing left in the\nrefridgerator.

#org @infridge
= There are a lot of cold beverages\nin the refridgerator...

#org @more
= Wait! There's still more...

#org @nomore
= Aw, tarter sauce!\pThere's no more drinks in the\nfridge!

#org @momquote
= Violet's Mom: Hey!\nAre you taking those drinks from\lmy fridge!?\lI'm sure your Mom taught you\lbetter than to steal!\p\v\h01: Actually, come to think of\nit, my Mom didn't teach me\lanything.\pViolet's Mom: Shame on you!\p...\p...\p...\pHa ha! I'm just kidding!\nI don't need those!\lI'm going on a diet.\lMaybe you can put those to better\luse than I can.



I'm sorry for all the problems. I'm new at scripting.
__________________
If people knew how hard I worked to get my mastery, it wouldn't seem so wonderful at all.

-Michelangelo
  #6724    
Old April 6th, 2012 (09:56 PM). Edited April 6th, 2012 by ChikoritaMudkipz.
ChikoritaMudkipz's Avatar
ChikoritaMudkipz
Beginning Trainer
 
Join Date: Jun 2009
Gender: Male
Alrighty, so I've been searching everwhere for how to do this, and this is my last resort.

So I know there's a way to do this, I'm just not quite sure how to do it in XSE.

How to I move the camera without moving the player.

Simple, I just need the command and how it works.

Thanks everyone!

Quote:
Originally Posted by Glitched Hacker View Post
Thanks SwiftSign!


OMG!!! I do what all the tutorials say and I still have some sort of problem!

I am trying to make a giveitem script, but when I compile it it says "Error 13 'Type mismatch' on line 7. Missing dynamic label". What is wrong?

I'm sorry for all the problems. I'm new at scripting.
Well if you look at line 7, it is this line:
Code:
if 0x1 goto @none
It's basically saying it can't find the label. So let's find your "none" label

Code:
#org #none
If you look carefully, you'll notice you used a hash tag (#) instead of an at symbol (@)

Fix that, and your script will be able to find your "none" label, and should compile.
__________________
youtube channel: http://www.youtube.com/user/ChikoritaMudkipz
check out my shiny gold x run!
  #6725    
Old April 6th, 2012 (10:46 PM).
DrFuji's Avatar
DrFuji
Helfen, Wehren, Heilen
Community Supporter
 
Join Date: Sep 2009
Location: Upside-downia
Age: 21
Gender: Male
Nature: Jolly
Quote:
Originally Posted by Glitched Hacker View Post
Thanks SwiftSign! I spaced out and forgot about how "10" doesn't work.

And for the yes/no script, I'm sorry, I don't mean to be annoying, but when I press "No", it still switches to the other script. Is there a way so it can only switch to the other script if I press "Yes"?

This is my script so far:

Spoiler:


#dynamic 0x800000

#org @start
lock
faceplayer
checkflag 0x1000
if 0x1 goto @nextmsg
msgbox @friend 0x5
compare 0x800D 0x1
if 0x1 goto @yespart
setflag 0x1000
msgbox @no 0x6
release
end

#org @nextmsg
lock
faceplayer
msgbox @later 0x6
release
end

#org @later
= I'll see you around the Zracto\nregion!

#org @yespart
msgbox @yes 0x6
release
end

#org @friend
= \c\h01\h09Hi. I'm the new girl, Violet.\nDo you wanna be friends?

#org @yes
= \c\h01\h09Ok!\nSee you around!\pOh and if you see my little\nbrother, Red, could you tell him\lMom said that she wants him closer\lto the house?\lHe's wandered of somewhere.\pThanks!

#org @no
= \c\h01\h09What?\nReally!?\pBut I'm too shy to ask anyone\nelse!\p\v\h06 just seems too rude and I\ndon't know anybody else!



Again, I don't meant to be annoying and buggy, but I would please like some help on this.

Actually, I just tested the script again and it only goes to the new script when I press "NO", when I press "YES" it still gives me the same script again. Did i put the setflag in the wrong spot?


__________________________________________________________________________________________



OMG!!! I do what all the tutorials say and I still have some sort of problem!

I am trying to make a giveitem script, but when I compile it it says "Error 13 'Type mismatch' on line 7. Missing dynamic label". What is wrong?

This is my script:

Spoiler:


#dynamic 0x800000

#org @start
lock
faceplayer
checkflag 0x1002
if 0x1 goto @none
msgbox @infridge 0x6
giveitem 0x1A 0x1 0x0
fanfare 0x13E
msgbox @more 0x4
waitfanfare
closeonkeypress
giveitem 0x1B 0x1 0x0
fanfare 0x13E
msgbox @more 0x4
waitfanfare
closeonkeypress
giveitem 0x1C 0x1 0x0
fanfare 0x13E
msgbox @more 0x4
waitfanfare
closeonkeypress
giveitem 0x1D 0x2 0x0
fanfare 0x13E
msgbox @nomore 0x4
waitfanfare
closeonkeypress
msgbox @momquote 0x6
setflag 0x1002
release
end

#org #none
lock
faceplayer
msgbox @empty 0x6
release
end

#org @empty
= There is nothing left in the\nrefridgerator.

#org @infridge
= There are a lot of cold beverages\nin the refridgerator...

#org @more
= Wait! There's still more...

#org @nomore
= Aw, tarter sauce!\pThere's no more drinks in the\nfridge!

#org @momquote
= Violet's Mom: Hey!\nAre you taking those drinks from\lmy fridge!?\lI'm sure your Mom taught you\lbetter than to steal!\p\v\h01: Actually, come to think of\nit, my Mom didn't teach me\lanything.\pViolet's Mom: Shame on you!\p...\p...\p...\pHa ha! I'm just kidding!\nI don't need those!\lI'm going on a diet.\lMaybe you can put those to better\luse than I can.



I'm sorry for all the problems. I'm new at scripting.
Yeah, your setflag command is in the wrong place. Since you want the roles to be reversed just remove the setflag command from where it is right now and place it in the '@yespart' pointer.

As for your second problem, it is simply because you have incorrectly labelled your '@none' pointer as '#org #none'. Its just a simple typo so once you change that you shouldn't have any more messages unless there is something else that is wrong XP

Quote:
Originally Posted by ChikoritaMudkipz View Post
Alrighty, so I've been searching everwhere for how to do this, and this is my last resort.

So I know there's a way to do this, I'm just not quite sure how to do it in XSE.

How to I move the camera without moving the player.

Simple, I just need the command and how it works.

Thanks everyone!
You need to use two specials in order to separate the camera from the player - Specials 0x113 and 0x114. You use them like this:

Code:
#dynamic 0x800000

#org @Start
msgbox @Talk 0x2
special 0x113 // Detatches camera from the player
applymovement 0x7F @MoveCamera // 0x7F is the entity that you have apply the movements to for the camera to move
waitmovement 0x0
special 0x114 // Reattaches camera to the player
release
end

#org @Talk
= I'm going to shake your camera!

#org @MoveCamera
#raw 0x13
#raw 0x12
#raw 0x12
#raw 0x13
#raw 0xFE
Here is a thread that can tell you a bit more about moving cameras. Just be sure to move the camera back to the spot where your player is before the script ends otherwise things will look pretty wonky :P
__________________
Closed Thread
Quick Reply

Sponsored Links
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 09:58 PM.


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.