The PokéCommunity Forums

The PokéCommunity Forums (https://www.pokecommunity.com/index.php)
-   Binary ROM Hacking (https://www.pokecommunity.com/forumdisplay.php?f=284)
-   -   [Archive] Script help thread (https://www.pokecommunity.com/showthread.php?t=120081)

0m3GA ARS3NAL September 22nd, 2008 4:32 AM

Quote:

Originally Posted by jin14 (Post 3962370)
what is the mistake in this script:
#dynamic 0x856471

#org @dialga
lock
faceplayer
message @sfidami!
boxset 0x6
wildbattle 0x003 0x18 0x2 0x2 0x1
hidesprite 0x0F
setflag 0x1204
release
end

#org @sfidami!
= Sono Dialga!\psignore del tempo\pio sono il primo guardiano\nsai perchè siamo qui?\pperchè noi dobbiamo rompere i 5 sigilli\ne battere Darkrai\pper farlo abbiamo bisogno di\pun allenatore che ci sfidi\ncosì possiamo valutare\pla sua forza\pbene iniziamo!

Qual è il problema? Dovete spiegare.

jin14 September 22nd, 2008 4:37 AM

0m3GA AR$3NAL tu sei italiano?
cmq il problema sta nel fatto che penso che non sia corretto!
i think that in this script there are some mistake!

Hiche.. September 22nd, 2008 4:51 AM

jin14

I think your problem is with the wildbattle.
What is the people event number in advance map?
What pokemon do you want to battle?
(the one you are using the script on)

Try this:
wildbattle (pokemon number) (pokemon level) (item held)


jin14 September 22nd, 2008 4:53 AM

I DO IT BUT NEED THE BACKGROUND AND THE MUSIC BUT NOW IT GO BUT THE LEVEL ISN'T CORRECT I HAD PUT 18 WHILE IS 24!

0m3GA ARS3NAL September 22nd, 2008 4:54 AM

Quote:

Originally Posted by jin14 (Post 3962415)
0m3GA AR$3NAL tu sei italiano?
cmq il problema sta nel fatto che penso che non sia corretto!
i think that in this script there are some mistake!

No io non sono italiano, ma io sono l'apprendimento della lingua.
Penso che si dovrebbe usare movesprite2 invece di hidesprite.
Movesprite2 rende il movimento permanente. Basta essere sicuri di spostare il sprite a un posto nella zona in cui essa non può essere visto.

(Dico cose correttamente?)

jin14 September 22nd, 2008 5:04 AM

si parli corretamente cmq perchè stai imparando l'italiano? cmq non si dice all'apprendimento ma studiando o imparando
cmq il mio problema è il livello che non coincide on quello che metto!

0m3GA ARS3NAL September 22nd, 2008 5:23 AM

Quote:

Originally Posted by jin14 (Post 3962457)
si parli corretamente cmq perchè stai imparando l'italiano? cmq non si dice all'apprendimento ma studiando o imparando
cmq il mio problema è il livello che non coincide on quello che metto!

Oh. Capisco il problema. Provate ad usare 0x12 invece di 0x18.

0x12 esadecimale è lo stesso di 18 decimali.
capisci?

jin14 September 22nd, 2008 5:42 AM

si capito ma stai usando un traduttore o stai formulando frasi?
cmq si può creare uno script per rubare pokemon all'avversario?

0m3GA ARS3NAL September 22nd, 2008 5:54 AM

Quote:

Originally Posted by jin14 (Post 3962493)
si capito ma stai usando un traduttore o stai formulando frasi?
cmq si può creare uno script per rubare pokemon all'avversario?

Sì ... quando si tratta di una lunga conversazione, ho per l'utilizzo di un traduttore.
Sono ancora imparando. Hehehe.
No, non credo che si può rubare Pokémon. Almeno non senza ASM.
Spiacente.
Sono stanco. Io vado a dormire. Spiacente non ho potuto aiutare.

jin14 September 22nd, 2008 6:18 AM

cmq consiglio se vuoi imparare l'italiano chiedi a me perchè le frasi non sono corrette!

where is a good and complete script guide?

Hiche.. September 22nd, 2008 7:19 AM

Quote:

Originally Posted by jin14 (Post 3962524)
cmq consiglio se vuoi imparare l'italiano chiedi a me perchè le frasi non sono corrette!

where is a good and complete script guide?

Search in the documents and tutorials section.
You will find good poke script tutorials, if that helps.
But I don't think you can find complete XSE guides.

jin14 September 22nd, 2008 10:53 AM

oh thanks i read pokescript guide i hope to learn much with these guide!

garra911 September 22nd, 2008 11:44 AM

Quote:

Originally Posted by Tamerhaidar (Post 3962379)
He's using poke script.
I think it's better to use #raw 0x53 ...etc for a person to disappear completely.
Not sure if hidesprite will do the same thing, though.
In XSE, I use hidesprite and it works fine.

And garra911

change this:

fadescreen 0x1
applymovement 0x01 $MOVE
pausemove 0
fadescreen 0x0

Into this:

fadescreen 0x1
#raw 0x53
#raw 0x01
#raw 0x00
fadescreen 0x0

well, when i do that, the sprite it there but when you click him after you have already got dratini, he instantly disappears, and i don't want him there at all after the flag has been set and the script has been done already

Hiche.. September 22nd, 2008 11:54 AM

Quote:

Originally Posted by garra911 (Post 3963087)
well, when i do that, the sprite it there but when you click him after you have already got dratini, he instantly disappears, and i don't want him there at all after the flag has been set and the script has been done already

Try this:

Spoiler:

#ORG $begin
lock
faceplayer
checkflag 0x821
message $here
boxset 6
givepokemon 147 5 216
fanfare 0x13E
message $5
boxset 6
waitfanfare
message $nomore
boxset 6
fadescreen 0x1
#raw 0x53
#raw 0x01
#raw 0x00
fadescreen 0x0
setflag 0x828
setflag 0x821
release
end

#ORG $here
$here 1 = You'll want this for the\ndemo, Have fun!

#ORG $5
$5 1 = \c\h01\h04You got a Dratini!

#ORG $nomore
$nomore 1 = Don't forget to check the\ngame's Pokemon Community\pthread for details and updates\lHave Fun!


I tried it and it worked.
Sorry if it didn't help, though.

Sgt. Custard September 22nd, 2008 12:49 PM

For some reason XSE gets mad at me when I ask it to compile a script. It seems to dislike the msgbox2 line:

Code:

#define 0x800000
...
#org 0x80005A
msgbox2 @whichpoke
waitmsgbox
multichoice 0x0 0x0 0x3E 0x1
copyvar LASTRESULT 0x1004
...
#org @whichpoke
= So which one would you like?
...


It says "Error 13 'type mismatch' ... missing #define or parameter"

Only there isn't... It's weird because the debug machine doesn't mind it.

Hiche.. September 22nd, 2008 2:12 PM

Quote:

Originally Posted by Sgt. Custard (Post 3963286)
For some reason XSE gets mad at me when I ask it to compile a script. It seems to dislike the msgbox2 line:

Code:

#define 0x800000
...
#org 0x80005A
msgbox2 @whichpoke
waitmsgbox
multichoice 0x0 0x0 0x3E 0x1
copyvar LASTRESULT 0x1004
...
#org @whichpoke
= So which one would you like?
...


It says "Error 13 'type mismatch' ... missing #define or parameter"

Only there isn't... It's weird because the debug machine doesn't mind it.


Use waitmsgbox2 instead of waitmsgbox.
You are using XSE, right?
What's #org 0x80005A for?
In XSE, you don't use offsets as pointers, you use random names.
That's what I know.
If it didn't work, then maybe your XSE lacks commands, such as msgbox2.

garra911 September 22nd, 2008 5:26 PM

Quote:

Originally Posted by Tamerhaidar (Post 3963112)
Try this:

Spoiler:

#ORG $begin
lock
faceplayer
checkflag 0x821
message $here
boxset 6
givepokemon 147 5 216
fanfare 0x13E
message $5
boxset 6
waitfanfare
message $nomore
boxset 6
fadescreen 0x1
#raw 0x53
#raw 0x01
#raw 0x00
fadescreen 0x0
setflag 0x828
setflag 0x821
release
end

#ORG $here
$here 1 = You'll want this for the\ndemo, Have fun!

#ORG $5
$5 1 = \c\h01\h04You got a Dratini!

#ORG $nomore
$nomore 1 = Don't forget to check the\ngame's Pokemon Community\pthread for details and updates\lHave Fun!


I tried it and it worked.
Sorry if it didn't help, though.

no, i don'y think you understand the problem, the script works fine, BUT when the map is reloaded (you leave the room and come back into the room) the script can be played again, and i want it to used once and the sprite with the script is gone and never seen again, how?

Satoshi Sugimori September 22nd, 2008 5:43 PM

Quote:

Originally Posted by garra911 (Post 3964327)
no, i don'y think you understand the problem, the script works fine, BUT when the map is reloaded (you leave the room and come back into the room) the script can be played again, and i want it to used once and the sprite with the script is gone and never seen again, how?

That is because you didn't do this by the first checkflag:

checkflag 0x821 <---- CHECKFLAG AND THEN
if B_true goto $done
blab bla blab alab
END

#org $done
release
end

Or maybe I just don't understand what you mean XD

garra911 September 22nd, 2008 6:40 PM

Quote:

Originally Posted by Poke-Roy (Post 3964385)
That is because you didn't do this by the first checkflag:

checkflag 0x821 <---- CHECKFLAG AND THEN
if B_true goto $done
blab bla blab alab
END

#org $done
release
end

Or maybe I just don't understand what you mean XD

yes ive tried that too, and when you click the sprite(after the script has been ran through once and the map has been reloaded) he instantly disappears, but i need him to be "disappeared" before i click on him

0m3GA ARS3NAL September 22nd, 2008 9:50 PM

Quote:

Originally Posted by garra911 (Post 3964537)
yes ive tried that too, and when you click the sprite(after the script has been ran through once and the map has been reloaded) he instantly disappears, but i need him to be "disappeared" before i click on him

If you used XSE you could use movesprite2 at the end of your script, instead of those #raw codes. and since movesprite2 is a permanent move, you don't need a level script to keep him hidden, you just need to be sure you move the sprite to a spot where he cant be seen ever.
I suggest making the switch...

Kaizer-X September 22nd, 2008 9:58 PM

Quote:

Originally Posted by garra911 (Post 3964537)
yes ive tried that too, and when you click the sprite(after the script has been ran through once and the map has been reloaded) he instantly disappears, but i need him to be "disappeared" before i click on him

hmm try putting this number 003B under person id in advance map

Thrace September 22nd, 2008 10:22 PM

Quote:

Originally Posted by Kaizer-X (Post 3964872)
hmm try putting this number 003B under person id in advance map

Why 003B? It should correspond with the flag used for that event, you need to use 0821 (shouldn't it be 828?).

Sgt. Custard September 22nd, 2008 10:34 PM

Quote:

Originally Posted by Tamerhaidar (Post 3963574)
Use waitmsgbox2 instead of waitmsgbox.
You are using XSE, right?
What's #org 0x80005A for?
In XSE, you don't use offsets as pointers, you use random names.
That's what I know.
If it didn't work, then maybe your XSE lacks commands, such as msgbox2.

Oh, well I'll try that. I did use names, but I've compiled it since (in order to test the first part), so that's why some of has specific no.'s

EDIT: OK, found the cause: didn't have callstd... silly me. BTW there's no such command as "waitmsgbox2"

EDIT2: It still doesn't like it. I even tried an ordinary msgbox...

Thrace September 22nd, 2008 11:17 PM

Quote:

Originally Posted by Sgt. Custard (Post 3963286)
For some reason XSE gets mad at me when I ask it to compile a script. It seems to dislike the msgbox2 line:

Code:

#define 0x800000
...
#org 0x80005A
msgbox2 @whichpoke
waitmsgbox
multichoice 0x0 0x0 0x3E 0x1
copyvar LASTRESULT 0x1004
...
#org @whichpoke
= So which one would you like?
...


It says "Error 13 'type mismatch' ... missing #define or parameter"

Only there isn't... It's weird because the debug machine doesn't mind it.

Could you post the entire script? It seems like you've cut some things out. The error you get is usually when you have misspelt a command or tried to use one that doesn't exist. Also, aren't you supposed to use copyvar 0x8000 LASTRESULT after multichoice?

Hiche.. September 22nd, 2008 11:48 PM

Quote:

Originally Posted by dshayabusa (Post 3964941)
Could you post the entire script? It seems like you've cut some things out. The error you get is usually when you have misspelt a command or tried to use one that doesn't exist. Also, aren't you supposed to use copyvar 0x8000 LASTRESULT after multichoice?

Dshayabusa is right.
copyvar 0x1004 LASTRESULT It should be like this.
And dshayabusa, is there a command called waitmsgbox2?



All times are GMT -8. The time now is 2:34 AM.


Like our Facebook Page Follow us on Twitter © 2002 - 2018 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 - 2016 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.

Acknowledgements
Use of PokéCommunity Assets
vB Optimise by DragonByte Technologies Ltd © 2023.