• Just a reminder that providing specifics on, sharing links to, or naming websites where ROMs can be accessed is against the rules. If your post has any of this information it will be removed.
  • Ever thought it'd be cool to have your art, writing, or challenge runs featured on PokéCommunity? Click here for info - we'd love to spotlight your work!
  • Our weekly protagonist poll is now up! Vote for your favorite Trading Card Game 2 protagonist in the poll by clicking here.
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

Script Requests/Sharing/Discussion

Status
Not open for further replies.
Hi everyone! It's me again...

I finally made a trainer battle script that also moves!

YEY! Thanks thethethethe!

But now I have another scripting question...

After the sprite moved towards the player, it'll challenge him to a battle.

The script worked out A-okay! But after the battle, I want him to move away. but he didn't. So could anyone check this script..? By the way, I'm hacking PKMN Ruby...


Some images of the script...
Spoiler:


The script...
Spoiler:


Thanks in advance!!! =3
 
Last edited:
Spoiler:

What's wrong with the above script?The game freezes after the first movement ends.
 
BTW, I'm using Fire Red, not Ruby.

So, can anyone help me with my Eevee for Lapras script?
 
Hi everyone! It's me again...

I finally made a trainer battle script that also moves!

YEY! Thanks thethethethe!

But now I have another scripting question...

After the sprite moved towards the player, it'll challenge him to a battle.

The script worked out A-okay! But after the battle, I want him to move away. but he didn't. So could anyone check this script..? By the way, I'm hacking PKMN Ruby...


Some images of the script...
Spoiler:


The script...
Spoiler:


Thanks in advance!!! =3

Okay look in you're spoiler, the changes that I make are in bold. The 3rd pointer in a trainerbattle script points to another sub-script. Not a message box. Hope this helps.

Spoiler:

What's wrong with the above script?The game freezes after the first movement ends.

I found the problem. It's so simple. Try changing in the movement line, $goback1, the last movement 0xEF. Change it to 0xFE. Just to explain 0xFE ends the movement script. That should fix it. Hope this helps.
 
Hey guys..
Could someone please make me a script for a guy that says:

Hey kid!
I have no use for this..
So you might aswell have it!

Then he gives you CUT

Then after he gives you CUT he says:

Use CUT to remove small trees..



I'm hopeless at making scripts so much thanks if someone could do that for me :D​
 
Okay look in you're spoiler, the changes that I make are in bold. The 3rd pointer in a trainerbattle script points to another sub-script. Not a message box. Hope this helps.



I found the problem. It's so simple. Try changing in the movement line, $goback1, the last movement 0xEF. Change it to 0xFE. Just to explain 0xFE ends the movement script. That should fix it. Hope this helps.
How did I miss that...Thanks a lot tttt =]
 
Hey guys..
Could someone please make me a script for a guy that says:

Hey kid!
I have no use for this..
So you might aswell have it!

Then he gives you CUT

Then after he gives you CUT he says:

Use CUT to remove small trees..



I'm hopeless at making scripts so much thanks if someone could do that for me :D​

Code:
#org 0x800000
checkitem 0x[CUT]
compare LASTRESULT 0x1
if 0x1 goto 0x800200
message 0x800100
boxset 0x6
giveitem 0x[CUT]
release
end

#org 0x800200
message 0x800300
boxset 0x6
release
end

#org 0x800100
= I have no use for this...\nSo you might aswell have it!

#org 0x800300
= Use CUT to remove small trees...

What game is it for? Because I didn't put CUT's hex number because I need to know what game it is for first.
 
Hi everyone!

Hey thethethethe... Thanks for the help! It really worked! thank you so much!!! ^^

But.., eheheh... the sprite won't disappear after he left.

But anyways, I'm planning to include him in the map for a little while, and I'm gonna add a script for him to say something whenever the player decides to talk to him.

thanks so much.

But now, I have another question about the script for my Celebi...

Could you (thethethethe) or anyone can take a look at it...?

here's the script...


Spoiler:


The warp script and the movement script works just fine...
But these are the images I sometimes see after the warp script...

Spoiler:


thanks in advance guys!
 
Code:
#org 0x800000
checkitem 0x[CUT]
compare LASTRESULT 0x1
if 0x1 goto 0x800200
message 0x800100
boxset 0x6
giveitem 0x[CUT]
release
end

#org 0x800200
message 0x800300
boxset 0x6
release
end

#org 0x800100
= I have no use for this...\nSo you might aswell have it!

#org 0x800300
= Use CUT to remove small trees...

What game is it for? Because I didn't put CUT's hex number because I need to know what game it is for first.



Fire Red

Thanks heaps!!
 
Then the script should be like this:

Code:
#org 0x800000
checkitem 0x153 0x1
compare LASTRESULT 0x1
if 0x1 goto 0x800200
message 0x800100
boxset 0x6
giveitem 0x153 0x1
release
end

#org 0x800200
message 0x800300
boxset 0x6
release
end

#org 0x800100
= I have no use for this...\nSo you might aswell have it!

#org 0x800300
= Use CUT to remove small trees...
 
When I compile it to my person and play the game when I click on the person nothing happens??

What am I doing wrong?
 
Back with yet another question,how do you make a sprite invisble and unspeakable to before the script starts?
 
When I compile it to my person and play the game when I click on the person nothing happens??

1. Make sure the script was correctly compiled to the ROM by viewing it with a hex editor.

2. Make sure you assigned the right script offset to the appropriate person (in your case 0x800000).

3. If all the above doesn't help, try to close the emulator, if opened, and clear any savegames. Then load the ROM again and try to talk to the person again.


Back with yet another question,how do you make a sprite invisble and unspeakable to before the script starts?

What do you mean exactly with "before the script starts"?
Anyway, to make invisible and unspeakable a person (to vanish it, after all) you can use the (as I baptized it :P) vanishsprite command. The syntax is the following:

Code:
#raw 53
#raw XX
#raw 00

XX is People #. For example, to hide the first person:

Code:
#raw 53
#raw 01
#raw 00

And so on.
 
Well, that script doesent work. If i move 1 step, the ppl comes back?
 
You have to write a number in the event's "People ID", if you do that the event won't come back after you move.
 
You have to write a number in the event's "People ID", if you do that the event won't come back after you move.

Well, is this right then?

#org $begin
checkflag 0x200
if 1 goto $done
playsound 0x11C
#raw 0x33
applymovement 0x01 $mw0
pause 0x50
applymovement 0x01 $mw1
pause 0x30
message $mt1
boxset 6
applymovement 0x01 $mw2
pause 0x10
#raw 54
#raw 01
#raw 00
fadesound
release
end

#org $done
release
end

#org $mw0
$mw0 ; #binary 0x62 0xFE

#org $mw1
$mw1 ; #binary 0x13 0x11 0x4A 0xFE

#org $mt1
$mt1 1 = Hold on, \v\h01!\nProf. Elm wants to see you!

#org $mw2
$mw2 1 ; #binary 0x10 0x12 0xFE
 
I don't use PokéScript, but I think it should work, but you used "#raw 0x54" instead of "#raw 0x53". "54" does something else, in your script it won't do anything.
 
What do you mean exactly with "before the script starts"?
Anyway, to make invisible and unspeakable a person (to vanish it, after all) you can use the (as I baptized it :P) vanishsprite command. The syntax is the following:

Code:
#raw 53
#raw XX
#raw 00

XX is People #. For example, to hide the first person:

Code:
#raw 53
#raw 01
#raw 00

And so on.
What I meant was that the sprite is on the map invisible and only is seen during the script,like scott in petalburg city or or the devon guy who's "goods"
get stolen in rustboro city.They aren't visible unless they are triggered or something like that,I'm sure it has something with peopleID,but I don't know what you have to do exactly.Example:
[PokeCommunity.com] Script Requests/Sharing/Discussion


EDIT:15+ post rule >_>
 
I don't use PokéScript, but I think it should work, but you used "#raw 0x54" instead of "#raw 0x53". "54" does something else, in your script it won't do anything.

Well, its now this, but still wont work;

Spoiler:


And i see, u dont use poekscript. Can u make that on ScriptED?
 
This may be able to be done with a hex editor, but scripting wise, That's something you'd have to ask Irish Witch about. At the moment I don't think there is of changing the nature and sex and the above things mentioned, but If you ask Irish Witch politely she might look into it and put it into the next pokescript beta.

Thank you very much, already it has been sending a message to him deprived to Irish Witch for days, but and not received answer. For that reason I want to ask to you if you know of somebody but that it can help me.

In fact I am using a hexadecimal Publisher to make the Script of manual form, but even so profit not to arrive at which I want. I hope somebody but it can help and thanks beforehand me.
 
Status
Not open for further replies.
Back
Top