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.


Closed Thread
 
Thread Tools
  #101    
Old February 21st, 2007, 11:48 PM
O.G. Duke's Avatar
O.G. Duke
a.k.a OmegaGroudon
 
Join Date: Oct 2006
Nature: Adamant
Send a message via Windows Live Messenger to O.G. Duke
A quick question: Where should I insert the script?
Is it open elite map and load the rom, ctrl click the event and edit the script? Then how to save the script to the rom?
  #102    
Old February 22nd, 2007, 12:03 AM
Monkey's Avatar
Monkey
Beginning Trainer
 
Join Date: Feb 2007
Gender:
Nature: Adamant
got a question about that battle script

is it

#org 0x800000
trainerbattle 0x00 0x1A 0x800100 0x800200
end

#org 0x800100
= Bring it on!

#org 0x800200
= I lost...

that or

#org 0x800000
0x00 0x1A 0x800100 0x800200
end

#org 0x800100
= Bring it on!

#org 0x800200
= I lost...

this one?

is 800000 the offset then ? so $800000

do i need before i do it in scripted and compile it give a new trainer/people the script offset $80000 then compile it? thit was it i think
  #103    
Old February 22nd, 2007, 02:04 AM
Overclocked's Avatar
Overclocked
Paired with......Myself
 
Join Date: Jan 2007
Age: 20
Gender:
Nature: Impish
Send a message via Windows Live Messenger to Overclocked
#org 0x800000
trainerbattle 0x0 0x1A 0x0 0x800100 0x800200
msgbox 0x800300
callstd 0x6
end

#org 0x800100
= Bring it on!

#org 0x800200
= I lost...

#org 0x800300
= Insert message here

Use this instead. Don't forget to fix it up though.
__________________

Problem...RAWNET went down so I'll be a while 'till I come back on
  #104    
Old February 22nd, 2007, 02:27 AM
frank$or
Beginning Trainer
 
Join Date: Nov 2006
Gender:
Nature: Adamant
Heey, I've made this script.

#org 0xDDC810
faceplayer
message 0xDDC950
boxset 0x2
applymovement 0xFF 0xDDC940
pause 0x10
applymovement 0x12 0xDDC970
pause 0x10
message 0xDDC980
boxset 0x2
applymovement 0x13 0xDDF990
pause 0x70
message 0xDDD000
boxset 0x2
end

#org 0xDDC940
#raw 0x31
#raw 0xFE

#org 0xDDC950
= Go away!

#org 0xDDC970
#raw 0x01
#raw 0xFE

#org 0xDDC980
= And don't dare it to come back!

#org 0xDDF990
#raw 0x6
#raw 0x6
#raw 0x6
#raw 0x6
#raw 0x6
#raw 0x6
#raw 0x6
#raw 0xFE

#org 0xDDD000
= Chef!\pGiovanni is in trouble!

The beginning works fine, the team rocket guy kicks me away, says his text and turns around.
But the next event ( also team rocket guy ) doesn't move!
No mather what movement.
It's just takes the time of 7 steps and then says the tekst, without moving.
Help?
  #105    
Old February 22nd, 2007, 02:34 AM
D-Trogh's Avatar
D-Trogh
Dead
 
Join Date: Jul 2005
Location: Belgium
Age: 22
Gender: Male
Send a message via Windows Live Messenger to D-Trogh
Are you sure that TeamRocketGrunt is person no. 13 on your map ??
__________________
[NTME | WPEDS | HTPE | SGPE | TGPE | PDEDS]
  #106    
Old February 22nd, 2007, 03:23 AM
frank$or
Beginning Trainer
 
Join Date: Nov 2006
Gender:
Nature: Adamant
Quote:
Originally Posted by D-Trogh View Post
Are you sure that TeamRocketGrunt is person no. 13 on your map ??
Yes. I'm sure of that. ( message to short xd )
  #107    
Old February 22nd, 2007, 04:20 AM
Christos's Avatar
Christos
Project Shinx
 
Join Date: Feb 2006
Location: Spain, Went's room
Nature: Serious
Send a message via Skype™ to Christos
Quote:
Originally Posted by Monkey View Post
got a question about that battle script

is it

#org 0x800000
trainerbattle 0x00 0x1A 0x800100 0x800200
end

#org 0x800100
= Bring it on!

#org 0x800200
= I lost...

that or

#org 0x800000
0x00 0x1A 0x800100 0x800200
end

#org 0x800100
= Bring it on!

#org 0x800200
= I lost...

this one?

is 800000 the offset then ? so $800000

do i need before i do it in scripted and compile it give a new trainer/people the script offset $80000 then compile it? thit was it i think
You have to compile the script to work but you can put "800000" on the trainer before if you want.

Quote:
Originally Posted by frank$or View Post
Heey, I've made this script.

#org 0xDDC810
faceplayer
message 0xDDC950
boxset 0x2
applymovement 0xFF 0xDDC940
pause 0x10
applymovement 0x12 0xDDC970
pause 0x10
message 0xDDC980
boxset 0x2
applymovement 0x13 0xDDF990
pause 0x70
message 0xDDD000
boxset 0x2
end

#org 0xDDC940
#raw 0x31
#raw 0xFE

#org 0xDDC950
= Go away!

#org 0xDDC970
#raw 0x01
#raw 0xFE

#org 0xDDC980
= And don't dare it to come back!

#org 0xDDF990
#raw 0x6
#raw 0x6
#raw 0x6
#raw 0x6
#raw 0x6
#raw 0x6
#raw 0x6
#raw 0xFE

#org 0xDDD000
= Chef!\pGiovanni is in trouble!

The beginning works fine, the team rocket guy kicks me away, says his text and turns around.
But the next event ( also team rocket guy ) doesn't move!
No mather what movement.
It's just takes the time of 7 steps and then says the tekst, without moving.
Help?
Are the events nr. 12 and 13 in hexadecimal? Because 12 = C, 13 = D.
__________________
I DON'T HAVE THE POKECOMMUNITY VIRUS(ALSO KNOW AS PC VIRUSE)
What I mean by this is, I'm not strict like MOST people *cough* Admins/Mods *cough* on this site. And no not all Admins/Mods are like that, but MOST are,
Post this in your sign. if you are PC Viruse free!
  #108    
Old February 22nd, 2007, 05:27 AM
Monkey's Avatar
Monkey
Beginning Trainer
 
Join Date: Feb 2007
Gender:
Nature: Adamant
wen i compile i get a error

Rubikon 1.3 by Kyoufu Kawa
--------------------------------------------------------------
Loading command database...
Empty command database detected. Program halted.

i loaded the rom then did compile then saved the script under battletrainer and then did go to pet and did $800000 and tested it on the trainer doesnt work?
  #109    
Old February 22nd, 2007, 05:37 AM
D-Trogh's Avatar
D-Trogh
Dead
 
Join Date: Jul 2005
Location: Belgium
Age: 22
Gender: Male
Send a message via Windows Live Messenger to D-Trogh
Quote:
Originally Posted by Monkey View Post
wen i compile i get a error

Rubikon 1.3 by Kyoufu Kawa
--------------------------------------------------------------
Loading command database...
Empty command database detected. Program halted.

i loaded the rom then did compile then saved the script under battletrainer and then did go to pet and did $800000 and tested it on the trainer doesnt work?
Plzz use the search function !
Quote:
Originally Posted by Christos in the SQT
Your ROM must be in your ScriptED folder with no spaces in the name.
__________________
[NTME | WPEDS | HTPE | SGPE | TGPE | PDEDS]
  #110    
Old February 22nd, 2007, 06:00 AM
Monkey's Avatar
Monkey
Beginning Trainer
 
Join Date: Feb 2007
Gender:
Nature: Adamant
aah ok ty forgot the search function becouse i tought it was a probleme with script orsomething

edit:when i compile it know i get overflow?
  #111    
Old February 22nd, 2007, 06:31 AM
frank$or
Beginning Trainer
 
Join Date: Nov 2006
Gender:
Nature: Adamant
Quote:
Originally Posted by Christos View Post
Are the events nr. 12 and 13 in hexadecimal? Because 12 = C, 13 = D.
I've tried that now with this script:

Spoiler:
#org 0xDDC810
faceplayer
message 0xDDC950
boxset 0x2
applymovement 0xFF 0xDDC940
pause 0x10
applymovement 0xC 0xDDC970
pause 0x10
message 0xDDC980
boxset 0x2
applymovement 0xD 0xDDF990
pause 0x70
message 0xDDD000
boxset 0x2
end

#org 0xDDC940
#raw 0x31
#raw 0xFE

#org 0xDDC950
= Go away!

#org 0xDDC970
#raw 0x01
#raw 0xFE

#org 0xDDC980
= And don't dare it to come back!

#org 0xDDF990
#raw 0x06
#raw 0x06
#raw 0x06
#raw 0x06
#raw 0x06
#raw 0x06
#raw 0x06
#raw 0xFE

#org 0xDDD000
= Chef!\pGiovanni is in trouble!


The 'second sprite' does not takes seven steps, but just turns his head to the left.
( 0x06 is 1 step to the left. )

Any ideas?
And btw, if i try the '!' ( alert ) movement, he just jumps.
Are those movements for R/S/E or something?
If so, does anybody have the correct movements for FR/LG?
  #112    
Old February 22nd, 2007, 06:35 AM
Christos's Avatar
Christos
Project Shinx
 
Join Date: Feb 2006
Location: Spain, Went's room
Nature: Serious
Send a message via Skype™ to Christos
Replace the "6"s with "A"s. "Left0" is face left, "Left1" one step left but the person stays there and "Left2" is one normal step left.
The alert raw in the text document is for R/S/E.
__________________
I DON'T HAVE THE POKECOMMUNITY VIRUS(ALSO KNOW AS PC VIRUSE)
What I mean by this is, I'm not strict like MOST people *cough* Admins/Mods *cough* on this site. And no not all Admins/Mods are like that, but MOST are,
Post this in your sign. if you are PC Viruse free!
  #113    
Old February 22nd, 2007, 06:44 AM
frank$or
Beginning Trainer
 
Join Date: Nov 2006
Gender:
Nature: Adamant
Quote:
Originally Posted by Christos View Post
Replace the "6"s with "A"s. "Left0" is face left, "Left1" one step left but the person stays there and "Left2" is one normal step left.
The alert raw in the text document is for R/S/E.
Thanks.
Last question, i not really understand the 'pause' command.
If i have seven times 0x0A, i entered pause 0x70, but when i tried it, the message came while walking at step 4.
Is it possible to raise the pause?

And do you know more FR/LG applymov. raw commands?
If not, i'll look for it by myself..
  #114    
Old February 22nd, 2007, 07:55 AM
D-Trogh's Avatar
D-Trogh
Dead
 
Join Date: Jul 2005
Location: Belgium
Age: 22
Gender: Male
Send a message via Windows Live Messenger to D-Trogh
I have a question for you Christos..
Do you have a list with flags we MAY NOT use.. so, a list with flags that are used in the game..
Or, can we use whatever we want ?
__________________
[NTME | WPEDS | HTPE | SGPE | TGPE | PDEDS]
  #115    
Old February 22nd, 2007, 08:20 AM
frank$or
Beginning Trainer
 
Join Date: Nov 2006
Gender:
Nature: Adamant
Another problem .
When team rocket walks away, they just are standing there after the steps.
How can i let them disappear?
I already tried Checkflag and Setflag, but it doesn't help.
Any ideas?

And to make this post easy, christos, do you know any more FR/LG movement commands?
Would be helpfull.

Thanks in advance, frank$or.
  #116    
Old February 22nd, 2007, 08:29 AM
D-Trogh's Avatar
D-Trogh
Dead
 
Join Date: Jul 2005
Location: Belgium
Age: 22
Gender: Male
Send a message via Windows Live Messenger to D-Trogh
Quote:
Originally Posted by frank$or View Post
Another problem .
When team rocket walks away, they just are standing there after the steps.
How can i let them disappear?
I already tried Checkflag and Setflag, but it doesn't help.
Any ideas?

And to make this post easy, christos, do you know any more FR/LG movement commands?
Would be helpfull.

Thanks in advance, frank$or.
I have an idea..
Try the 'movesprite' command and move those sprites outside the map.. (Or somewhere you can't see them..)
__________________
[NTME | WPEDS | HTPE | SGPE | TGPE | PDEDS]
  #117    
Old February 22nd, 2007, 08:39 AM
frank$or
Beginning Trainer
 
Join Date: Nov 2006
Gender:
Nature: Adamant
Quote:
Originally Posted by D-Trogh View Post
I have an idea..
Try the 'movesprite' command and move those sprites outside the map.. (Or somewhere you can't see them..)
Yes, i was also thinking about this, but this isn't good because it will take to much time to bring them out of town.
And btw, if i go into an house or something, and go out, they will be there.
If i knew the FR/LG command for 'hide' then it would be easy.
  #118    
Old February 22nd, 2007, 08:49 AM
Irish Witch's Avatar
Irish Witch
Office Jenny
 
Join Date: Jul 2006
Location: Australia
Age: 34
Gender:
Nature: Lonely
Send a message via AIM to Irish Witch Send a message via Yahoo to Irish Witch
Quote:
Another problem .
When team rocket walks away, they just are standing there after the steps.
How can i let them disappear?
I already tried Checkflag and Setflag, but it doesn't help.
Any ideas?
(using advanced map)

If you set the persons people id to the value you use for your setflag command they should disapear.
Dont used flags in the 0x300 range though!

Also note, the applymovement command refers to the the 'people' number not the event number!

Quote:
And do you know more FR/LG applymov. raw commands?
If not, i'll look for it by myself..
the attached text file lists all the movements (to my knowledge) and the numbers refer to the amount of cycles for that movement. ie left4 is 4 moves per 'cycle', 1 is 1 move per 'cycle' and 0 no move!

I have yet to find a straight answer as to how long a 'cycle' is though!

How this works is if you are facing up then left1 is the equvelent of tapping left (you turn left) left2 = two taps (turn left, step left) etc etc.

Finally
Quote:
Last question, i not really understand the 'pause' command.
If i have seven times 0x0A, i entered pause 0x70, but when i tried it, the message came while walking at step 4.
Is it possible to raise the pause?
I think there's a command called waitmovement that will pause the script until the character stops moving????
- EDIT -
Found it! Pausemove 0x0 will make the script wait for all movement scripts to stop!
Under scripted it may also be listed as wait 0x0
Attached Files
File Type: txt MOVEMENTS.txt‎ (4.0 KB, 9 views) (Save to Dropbox)
__________________
PokeScript Assembler C pokewitch inc

PokeWitch's PokePets

Smitten the level 25 Kirlia! :: Myrial the Level 22 Pidgeotto

Last edited by Irish Witch; February 22nd, 2007 at 09:52 AM.
  #119    
Old February 22nd, 2007, 10:00 AM
D-Trogh's Avatar
D-Trogh
Dead
 
Join Date: Jul 2005
Location: Belgium
Age: 22
Gender: Male
Send a message via Windows Live Messenger to D-Trogh
Ok, I've made my second script ! [Spoiler!!]
But, it doesn't work :\
(I use PokéScript, so it's written for PokéScript...)
RED » What goes wrong/Doesn't work..
BLUE » This is done every time instead of doing the good thing..
Spoiler:
#org $Test
lock
faceplayer
checkflag 0x10A
IfTrue $Item
msgbox $1st
callstd 0x6
applymovement 0x1 $personmove
applymovement 0xFF $playermove
pause 0x10
applymovement 0x1 $personmove2
pause 0x10

setflag 0x10A
release
end

#org $1st
= Piss off !

#org $personmove
#raw 0xA
#raw 0xFE

#org $playermove
#raw 0xE
#raw 0xFE

#org $personmove2
#raw 0xB
#raw 0xFE


#org $Item
lock
faceplayer
checkflag 0x10B
IfTrue $LMA
msgbox $here
callstd 0x5
IfTrue $receive 'It never goes to $receive
msgbox $NO
callstd 0x6
clearflag 0x10A
goto $Test
release
end

#org $here
= Will you leave me alone when I give\nyou this ?

#org $NO
= You won't huh ?!


#org $receive
lock
faceplayer
msgbox $hereitem
callstd 0x6
giveitem 0xD 0x1
setflag 0x10B
release
end

#org $hereitem
= Take it and beat it !

#org $LMA
lock
faceplayer
msgbox $LMalone
callstd 0x6
release
end

#org $LMalone
= L.E.A.V.E M.E. A.L.O.N.E. !!!\nGot the message ?!


I think it's wierd the 'IfTrue $receive' doesn't work, because the 'checkflag 0x10A ; IfTrue $Item' does !!

BTW:
This thread is becoming a 'Script-Debug-Help-Me-WHAAH-Thread' if you know what I mean..
I asked Scizz already to open such a thread next to the 'Simple Questions' one.. but -meh-
__________________
[NTME | WPEDS | HTPE | SGPE | TGPE | PDEDS]
  #120    
Old February 22nd, 2007, 10:50 AM
Irish Witch's Avatar
Irish Witch
Office Jenny
 
Join Date: Jul 2006
Location: Australia
Age: 34
Gender:
Nature: Lonely
Send a message via AIM to Irish Witch Send a message via Yahoo to Irish Witch
Since you PM'd me I gave you a full answer in a PM as well, but the short half is that iftrue is not a valid command. If you're read the update following that conversation you would have learned I went with TIF and FIF respectively.

You shouldn't be doing it the lazy way anyhow...
pfft. Boys!
*places hands on hips and conspires to look like my mum!*

I made some other sugggestions in the PM btw.
__________________
PokeScript Assembler C pokewitch inc

PokeWitch's PokePets

Smitten the level 25 Kirlia! :: Myrial the Level 22 Pidgeotto
  #121    
Old February 22nd, 2007, 10:54 AM
D-Trogh's Avatar
D-Trogh
Dead
 
Join Date: Jul 2005
Location: Belgium
Age: 22
Gender: Male
Send a message via Windows Live Messenger to D-Trogh
Quote:
Originally Posted by Irish Witch View Post
Since you PM'd me I gave you a full answer in a PM as well, but the short half is that iftrue is not a valid command. If you're read the update following that conversation you would have learned I went with TIF and FIF respectively.

You shouldn't be doing it the lazy way anyhow...
pfft. Boys!
*places hands on hips and conspires to look like my mum!*

I made some other sugggestions in the PM btw.
As I told you in the PM.. I made the IfTrue and IfFalse allias..
And that's not the problem because.. well.. did you read this:
Quote:
I think it's wierd the 'IfTrue $receive' doesn't work, because the 'checkflag 0x10A ; IfTrue $Item' does !!
Pff.. girls
__________________
[NTME | WPEDS | HTPE | SGPE | TGPE | PDEDS]
  #122    
Old February 22nd, 2007, 11:01 AM
Irish Witch's Avatar
Irish Witch
Office Jenny
 
Join Date: Jul 2006
Location: Australia
Age: 34
Gender:
Nature: Lonely
Send a message via AIM to Irish Witch Send a message via Yahoo to Irish Witch
Dangitall!

This is what I get for scripting at 4am....

Boys and girls please remember the following!

boxset 5 (or boxset 2, whichever you use) must be followed by
: compare LASTRESULT 1

Checkflag must NOT!


This has been a sleepy witch announcement.
Now excuse me while I go turn into a pumpkin!

- LAST MINUTE EDIT -

Ps, I think the reason a lot of movement scripts don't work is becasue people get mixed up between people number, people id and event number. (assuming advanced map)
Event number is the index of the object. It is not referenced.
Peaple number is referenced by applymovement, but if it is accidentally doubled up then neither object will move!
- the above is specific to the map you're on! (you cant have 2 2's on one map) The value written in this field may be written without a 0x in front when you write you're script if you don't want the have to convert it to hex.
- - The above applies to both pokescript and Scripted!
People ID is the flag. Setting this value in a script will make the character disapear!
__________________
PokeScript Assembler C pokewitch inc

PokeWitch's PokePets

Smitten the level 25 Kirlia! :: Myrial the Level 22 Pidgeotto

Last edited by Irish Witch; February 22nd, 2007 at 11:09 AM.
  #123    
Old February 22nd, 2007, 11:08 AM
D-Trogh's Avatar
D-Trogh
Dead
 
Join Date: Jul 2005
Location: Belgium
Age: 22
Gender: Male
Send a message via Windows Live Messenger to D-Trogh
Quote:
Originally Posted by Irish Witch View Post
Dangitall!

This is what I get for scripting at 4am....

Boys and girls please remember the following!

boxset 5 (or boxset 2, whichever you use) must be followed by
: compare LASTRESULT 1

Checkflag must NOT!


This has been a sleepy witch announcement.
Now excuse me while I go turn into a pumpkin!
Well.. you could've told that a lil sooner !!
Just kiddin I really love working with PokéScript
Will you edit that in a newer release ? Or not ?
You don't need to when your busy or something..

B2T
__________________
[NTME | WPEDS | HTPE | SGPE | TGPE | PDEDS]
  #124    
Old February 22nd, 2007, 11:29 AM
zak's Avatar
zak
xpert trainer
 
Join Date: Jul 2004
Location: south london
Age: 22
Gender:
Nature: Brave
Send a message via Windows Live Messenger to zak
just a question ......... are we alowed to request scripts here? coz i got script i need written , and i really hate scripting ,
__________________
Hi
  #125    
Old February 22nd, 2007, 11:38 AM
D-Trogh's Avatar
D-Trogh
Dead
 
Join Date: Jul 2005
Location: Belgium
Age: 22
Gender: Male
Send a message via Windows Live Messenger to D-Trogh
Quote:
Originally Posted by zak View Post
just a question ......... are we alowed to request scripts here? coz i got script i need written , and i really hate scripting ,
Well.. technicly, this even isn't the place to ask for help. As this is the Documents and Tutorials page..
Maybe when we get Scizz's (or an other Moderators) attention, we can get a 'Script-Debug Thread' next to the Simple Questions Thread
Soo..

To stay on topic:
Christos, will you update this tutorial with new things soon?
I don't know what you can learn us more.. but, try it
__________________
[NTME | WPEDS | HTPE | SGPE | TGPE | PDEDS]
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 02:47 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.