• Our software update is now concluded. You will need to reset your password to log in. In order to do this, you will have to click "Log in" in the top right corner and then "Forgot your password?".
  • Forum moderator applications are now open! Click here for details.
  • 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 Help Thread (DO NOT REQUEST SCRIPTS)

Status
Not open for further replies.
18
Posts
15
Years
  • Seen Aug 13, 2011
Go to the Groudon Script and open it. There's your example right in the game. :P

I tried it... but the scripts in Emerald are different from the ones I found in the forum, I tried a lot but without success =/

thanks anyway...

here's my script, the cry and the message box appears, but the battle don't start... please tell me whats wrong

Spoiler:
 
Last edited:

Vrai

can you feel my heart?
2,896
Posts
15
Years
  • Age 29
  • Seen Oct 24, 2022
The command "battle" doesn't exist in XSE. Try "wildbattle".
 

Hiche..

 
979
Posts
15
Years
  • Seen Dec 27, 2014
I tried it... but the scripts in Emerald are different from the ones I found in the forum, I tried a lot but without success =/

thanks anyway...

here's my script, the cry and the message box appears, but the battle don't start... please tell me whats wrong

Spoiler:

I think in the new version of XSE, the wildbattle command is setwildbattle. So, change battle to setwildbattle. If this doesn't work, then try wildbattle, or startwildbattle.
 

Madridista

-#666
40
Posts
15
Years
Game: Fire Red
Type: Trigger
Editor: eXtreme Script Editor
Problem: The script won't even start and the game freezes.
Script:
Spoiler:
 

Hiche..

 
979
Posts
15
Years
  • Seen Dec 27, 2014
Game: Fire Red
Type: Trigger
Editor: eXtreme Script Editor
Problem: The script won't even start and the game freezes.
Script:
Spoiler:

Did you set the Unknown to 0003, and var number to 5040, or 4050 in Advance Map? Also, are you using the new version of XSE, or old one?
 

HackMew

Mewtwo Strikes Back
1,314
Posts
17
Years
  • Seen Oct 26, 2011
[SOLVED]

I tried it... but the scripts in Emerald are different from the ones I found in the forum, I tried a lot but without success =/

thanks anyway...

here's my script, the cry and the message box appears, but the battle don't start... please tell me whats wrong

Spoiler:

Using the new XSE there are two wildbattle constructs: wildbattle and wildbattle2. The latter is the one which includes a special. The first one instead is the one which is a "common" battle.

Note: since I don't know what the people # is on AM (the Mewtwo one) I just used 0x1 as a matter of example. Change it eventually.

Spoiler:


I think in the new version of XSE, the wildbattle command is setwildbattle. So, change battle to setwildbattle. If this doesn't work, then try wildbattle, or startwildbattle.

The fact is wildbattle wasn't a command earlier. It was a construct and still is, with a new companion, that is wildbattle2. Explanation above or in the Command Help.


Game: Fire Red
Type: Trigger
Editor: eXtreme Script Editor
Problem: The script won't even start and the game freezes.
Script:
Spoiler:

Pretty screwed up...
Please update your copy of XSE and read the new guide as well.
Don't forget to se up the trigger like this:

2ev9k40.jpg



Spoiler:



EDIT: Proving a proper example for the use of the [SOLVED] tag.
 

HackMew

Mewtwo Strikes Back
1,314
Posts
17
Years
  • Seen Oct 26, 2011
I tried it now but I get a mismatch error on "wildbattle" line

I just noticed your #dynamic was wrong.
And that I was missing a param for message. The rest is perfect though.
See the script below:

Spoiler:
 

Hoshiko Aki

Avatar rules
109
Posts
15
Years
  • Seen Oct 17, 2011
Help with this give away script using XSE

Whats wrong with it?

He say's something wrong on line 5

Code:
#dynamic 0x800000
#org @start
checkflag 0x828
if 0x1 goto @done
msgbox @1
boxset 0x5
compare LASTRESULT 0x1
if 0x1 goto @take
msgbox @2
boxset 0x6
release
end

#org @take
givepokemon 0x98 0x4 0x0 0x0 0x0 0x0
fanfare 0x13E
msgbox @3
boxset 0x4
waitfanfare
closeonkeypress
setflag 0x828
msgbox @4
boxset 0x5
compare LASTRESULT 0x1
if 0x1 gosub @name
msgbox @5
boxset 0x6
release
end

#org @name
call 0x1A74EB
return

#org @done
msgbox @6
boxset 0x6
release
end

#org @1
= Hello.\nSorry to trouble you.\nI can't take care\nof my Krabby.\pCan you take care of\nit for me?

#org @2
= That's okay.\pI'm sure someone else will\ntake it.

#org @3
= \c\h01\h02You received a Krabby!

#org @4
= \c\h01\h02Would you like to give a\nnickname to Krabby?

#org @5
= Please take care of\nKrabby.

#org @6
= Are you taking good care\nof krabby?
 

Vrai

can you feel my heart?
2,896
Posts
15
Years
  • Age 29
  • Seen Oct 24, 2022
You have the new XSE, right?

You have to move the boxset type up to the msgbox line now. So, it'd be:

Code:
msgbox @1 0x5

That goes for all of the msgbox commands.
 

Hoshiko Aki

Avatar rules
109
Posts
15
Years
  • Seen Oct 17, 2011
@vrai :

I must change the

Code:
msgbox @1
to
Code:
msgbox @1 0x5
And yes I'm using the new XSE
 

Vrai

can you feel my heart?
2,896
Posts
15
Years
  • Age 29
  • Seen Oct 24, 2022
Yes, do that. And remove the "boxset 0x5" line. :D
 

Hiche..

 
979
Posts
15
Years
  • Seen Dec 27, 2014
Ichiro, I fixed your script

Spoiler:


Also, read the new XSE guide. It's very helpful.
 

Hoshiko Aki

Avatar rules
109
Posts
15
Years
  • Seen Oct 17, 2011
Thanks a lot both of you.

Can somebuddy tell me how to make a give away script with no trainer? i mean you walk on one spot en then you get that pokemon
 

Konekodemon

The Master of Pokemon Breeding
2,074
Posts
17
Years
  • Age 39
  • NC
  • Seen Nov 20, 2023
how do I change the title screen, you know the title screen that pops up after the intro with the name of the game on it, how do I change the picture on it
 
18
Posts
15
Years
  • Seen Aug 13, 2011
I DID IT!! =D

and here's the script:
Spoiler:


but how do I change the background and the music

by the way... the battle music is strange...
 

Vrai

can you feel my heart?
2,896
Posts
15
Years
  • Age 29
  • Seen Oct 24, 2022
what does that have to do with my question

Also, please don't be rude. Not everybody who posts here is entirely concerned with your problem.

We're starting to get out of the correct format. Everyone else who needs help with a problem here needs to post in the format specified in this post.

If you don't, you probably won't get help. :D
 

HackMew

Mewtwo Strikes Back
1,314
Posts
17
Years
  • Seen Oct 26, 2011
and here's the script:
Spoiler:


but how do I change the background and the music

by the way... the battle music is strange...

Don't forget the [SOLVED] tag, okay? Anyways, the battle music isn't that strange. But after all you aren't supposed to battle Pokémon in Littleroot Town :P You may want to try wildbattle2. It has an extra param that can be useful to get the "legend" style.


Help with this give away script using XSE

Whats wrong with it?

He say's something wrong on line 5 [...]

Actually it doesn't say so. It says there are too less parameters. And if you checked the Command Help (or even better the guide) you would have understood how to fix it. I improved the error messages for a reason. You should care more about them.
 
Status
Not open for further replies.
Back
Top