• 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 places on the 'net to talk Pokémon and more! Community members will not see the bottom screen advertisements.
  • Want to share your adventures playing Pokémon?
    Check out our new Travel Journals forum for sharing playthroughs of ROM Hacks, Fan Games, and other Pokémon content!
  • IMPORTANT: Following a takedown request, the following hacks have been delisted from PokéCommunity:

    • Pokémon Glazed
    • Pokémon: Giratina Strikes Back
    • Pokémon Flora Sky
    • Pokémon Stranded
    The downloads and discussion threads for these hacks will no longer be accessible, and staff will be unable to return questions regarding accessing this content.

Script Help Thread (DO NOT REQUEST SCRIPTS)

Status
Not open for further replies.

Hoshiko Aki

Avatar rules
109
Posts
15
Years
  • Seen Oct 17, 2011
Uh, yeah, something happened! You just got a Vulpix! But you don't have any messages so, :\ Also, there's no "setflag 0x828" to enable the Pokemon menu.


o ok,

Can you help me then?

How can i get a message there in and how do i set the setflag in it?
 

Ninja Caterpie

AAAAAAAAAAAAA
5,979
Posts
15
Years
Code:
fanfare 0x13E
message @got 0x4
waitfanfare
closeonkeypress
setflag 0x828
Put that after the givepokemon part. If you want a nickname part too...find that out yourself. Go to thethethethe's tutorial or, if you're too lazy, go to diegoisawesome's XSE version of the same thing.
 

Pokepal17

More cowbell~
1,519
Posts
15
Years
Originally Posted by Ichiro Kazuki
Hello,

whats wrong with this script?

Code:
#org 0x2D513F
setvar 0x4060 0x37
givepokemon 0x4060 0x8 0x0 0x0 0x0 0x0
end

it must give you your starter pokemon Vulpix but you can talk to the pokeball but nothing happen

Here is the script, don't forget to give the Pokeball an ID of 0828.

Spoiler:


Thanks Ninja Caterpie ^_^
\/ \/ \/
 
Last edited:

michaelh

Script Ninja-in-training
16
Posts
17
Years
  • Age 30
  • Seen Feb 17, 2014
[SOLVED]Re: Script Freezing on run

That was something detailed indeed ;)
Here's the fixed and optimized script. I would explain you the changes, but I think you can get more satisfaction by simple understanding them on your own.
The script should work fine, even if I didn't test it. Let me know if you have problems or whatever. Don't forget the [SOLVED] thingy, okay?

Spoiler:

Hate to say it, but I managed to pick out a little bug in that:
Spoiler:


After fixing this, I came up with what (in my opinion) is the final solution:
Spoiler:


Thanks for the optimisation tips. However, they didn't fix my problem with the freezing. What did, however, was checking the map in AM1.92 and realising that it had a problem with handling 7 digit pointers. So I repointed a 6 digit offset (90003A in this case) to my script, entered it as my offset in AM, and run the script. Can't believe I didn't notice it before! :shocked:

P.S. I realise I probably should have PMed this, but I thought that publicising solutions would be more useful to other scripters.
 

Hoshiko Aki

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

Script type: Give away
Script progamma: XSE


XSE say a fault
fault 9 "Subscript out of range" on line 5
 

Pokepal17

More cowbell~
1,519
Posts
15
Years
originally posted by Ichiro Kazuki

#org 0x2D513F
setvar 0x4060 0x37
givepokemon 0x4060 0x8 0x0 0x0 0x0 0x0
fanfare 0x13E
msgbox @player 0x4
waitfanfare
closeonkeypress
hidesprite LASTTALKED
Hidesprite 0x92
setflag 0x828
release
end

It will say that beacuse you haven't done the full script. You don't need the hidesprite 0x92. You've got a pointer leading to a branch that you haven't done yet.

Here is the script, just copy it up word for word. Give the pokeball an ID code of 0828. BTW, LASTTALKED means the last person you talked to.

Spoiler:

________________________________________________________________________________________

I need help with this camera movement script.
ROM: Fire Red
Version: 1.0
Script Editor: XSE
Script Type: Trigger Script

Script:
Spoiler:


When I step on the script, nothing happens. The script is meant to move the camera up, right, down then left. But nothing happens.

Script settings
Spoiler:



Thanks Ninja Caterpie, Mac_Mini & derv1205
 
Last edited:

Surf

...
1,196
Posts
15
Years
  • Age 29
  • Rust
  • Seen Jul 31, 2011
It will say that beacuse you haven't done the full script. You don't need the hidesprite 0x92. You've got a pointer leading to a branch that you haven't done yet.

Here is the script, just copy it up word for word. Give the pokeball an ID code of 0828. BTW, LASTTALKED means the last person you talked to.

Spoiler:

________________________________________________________________________________________
I need help with this camera movement script.
ROM: Fire Red
Version: 1.0
Script Editor: XSE
Script Type: Trigger Script

Script:
Spoiler:


When I step on the script, nothing happens. The script is meant to move the camera up, right, down then left. But nothing happens.

Script settings
Spoiler:

#dynamic 0x800000

#org @start
lockall
checkflag 0x1001
if 0x1 goto @end
special 0x113
applymovement MOVE_CAMERA @move
special 0x114
waitmovement 0x0
setflag 0x1001
releaseall
end

#org @end
releaseall
end

#org @move
#raw 0x1E 0x1E 0x1E 0x1E 0x1E 0x20 0x20 0x20 0x20 0x1D 0x1D 0x1D 0x1D 0x1D 0x1F 0x1F 0x1F 0x1F 0xFE


You need special 113 before the applymovement and special 114 after
 

derv1205

Trade/Battle/Breed/Clone (X,B2,D)
267
Posts
16
Years
#dynamic 0x800000

#org @start
lockall
checkflag 0x1001
if 0x1 goto @end
special 0x113
applymovement MOVE_CAMERA @move
special 0x114
waitmovement 0x0
setflag 0x1001
releaseall
end

#org @end
releaseall
end

#org @move
#raw 0x1E 0x1E 0x1E 0x1E 0x1E 0x20 0x20 0x20 0x20 0x1D 0x1D 0x1D 0x1D 0x1D 0x1F 0x1F 0x1F 0x1F 0xFE


You need special 113 before the applymovement and special 114 after

The special 113 and 114 are just to lock the player and all people and
then for release them, so if you don't include that i think it
should also work the script but everybody will keep moving
normally. And, the special should be put after waitmovement 0x0, because
if you put it before, the people will move before the script finish.

Try this:
Code:
#dynamic 0x800000
 
#org @start
lockall
checkflag 0x1001
if 0x1 goto @end
special 0x113
applymovement 0x7F @move
waitmovement 0x0
special 0x114
setflag 0x1001
releaseall
end
 
#org @end
releaseall
end
 
#org @move
#raw 0x1E 0x1E 0x1E 0x1E 0x1E 0x20 0x20 0x20 0x20 0x1D 0x1D 0x1D 0x1D 0x1D 0x1F 0x1F 0x1F 0x1F 0xFE

I think that should work perfectly ^^
 

Ninja Caterpie

AAAAAAAAAAAAA
5,979
Posts
15
Years
The special 113 and 114 are just to lock the player and all people and
then for release them, so if you don't include that i think it
should also work the script but everybody will keep moving
normally. And, the special should be put after waitmovement 0x0, because
if you put it before, the people will move before the script finish.

Actually, these names are dodgy. Special 0x113 sorta allows the camera to move and 114 stops it. People still move in their normal trajectories if you use 0x113. :\

Just like lock and lockall. Lock locks everyone and lockall locks you! :\
 

cooley

///Keepin' it simple
1,148
Posts
17
Years
Actually, these names are dodgy. Special 0x113 sorta allows the camera to move and 114 stops it. People still move in their normal trajectories if you use 0x113. :\

Just like lock and lockall. Lock locks everyone and lockall locks you! :\
Small corrections
Special 0x113 locks the camera, so you can move it with commands, and so the player can move without the camera moving along with him/her. Special 0x114 releases the camera, so when the script is over, each step the player takes the camera will follow. Applymovement 0x7F will render useless after special 0x114 is activated

Lock locks the player, and lockall locks down all movement on the map.
 
40
Posts
15
Years
  • Seen Nov 14, 2009
i dont get it.......
any way i think we ask things about script editing right?
any way.. does anyone know a d/p script editor
 

пзо

zzirRusty
223
Posts
15
Years
  • Age 28
  • Seen Jun 2, 2010
Scriopt

I never throught I'd be posting here again, but this script also, is the one not working..
I know theres no setflag, the script dont even start.
--
Spoiler:
Spoiler:


RESOLVED
 
Last edited:

Hiche..

 
979
Posts
15
Years
  • Seen Dec 27, 2014
1- neo, the fixes are in Bold.

Spoiler:


special 0x113 locks the camera, and special 0x114 releases it.


2- MSG_KEEPOPEN is boxset 0x4.
 

пзо

zzirRusty
223
Posts
15
Years
  • Age 28
  • Seen Jun 2, 2010
Spoiler:
.

Unresolved
The script still dont start.
Here it is again.. *Sigh*
#dynamic 0x800000
#org @begin
Checkflag 0x200
if 0x1 goto @end
special 0x113
applymovement 0x7F @movecamera1
waitmovement 0x0
special 0x114
msgbox @wheresplayer 0x2
sound 0x13B
special 0x113
applymovement 0x01 @thereyouare
applymovement 0x7F @movecamera2
waitmovement 0x01
special 0x114
applymovement 0xFF @theresrival
waitmovement 0x0
msgbox @hello 0x02
applymovement 0x01 @gone
waitmovement 0x0
sound 0x12C
hidesprite 0x01
setflag 0x200
Release
end

#org @movecamera1
#raw 0x10 0x10 0x10 0x10 0x10 0x10 0x10 0x10 0xFE

#org @wheresplayer
= Wheres [player]? He said hen\would meet me here.

#org @thereyouare
#raw 0x65 0x11 0x11 0x11 0x11 0x11 0x11 0x11 0x11 0xFE

#org @movecamera2
#raw 0x11 0x11 0x11 0x11 0x11 0x11 0x11 0x11 0xFE

#org @theresrival
#raw 0x62 0x03 0xFE

#org @hello
= [Black_fr][player] what are you doing! You\nwere supposed to meet me here\lover an hour ago!\p[green_fr][player]: Sorry [rival]..\p[Black_fr][rival]: Hurry! I dont want to keep\nthe professor waiting.

#org @gone
#raw 0x10 0x10 0x10 0x10 0x10 0x10 0x10 0x10 0x10 0x10 0xFE

#org @end
release
end
 

Hoshiko Aki

Avatar rules
109
Posts
15
Years
  • Seen Oct 17, 2011
Hello,

Code:
'---------------
#org 0x2D510C
lock
checkflag 0x829
if 0x0 goto 0x88026EB
release
end

'---------------
#org 0x8026EB
lock
applymovement MOVE_PLAYER 0x8802701
waitmovement 0x0
msgbox 0x8802705 MSG_NORMAL '"[player] better take me pokemon wi..."
release
end


'---------
' Strings
'---------
#org 0x802705
= [player] better take me pokemon with me.\nIf I do not a wild pokémon maby\lattack me


'-----------
' Movements
'-----------
#org 0x802701
#raw 0x62 'Exclamation Mark (!)
#raw 0x10 'Step Down (Normal)
#raw 0xFE 'End of Movements

this is a script that made the player not go to route 1 if you not had your pokemon in your party but if you do have the pokemon in your party than you can't go to route 1.

Whats the problem with this script?
 

michaelh

Script Ninja-in-training
16
Posts
17
Years
  • Age 30
  • Seen Feb 17, 2014
Hello,

Code:
'---------------
#org 0x2D510C
lock
checkflag 0x829
if 0x0 goto 0x88026EB
release
end

'---------------
#org 0x8026EB
lock
applymovement MOVE_PLAYER 0x8802701
waitmovement 0x0
msgbox 0x8802705 MSG_NORMAL '"[player] better take me pokemon wi..."
release
end


'---------
' Strings
'---------
#org 0x802705
= [player] better take me pokemon with me.\nIf I do not a wild pokémon maby\lattack me


'-----------
' Movements
'-----------
#org 0x802701
#raw 0x62 'Exclamation Mark (!)
#raw 0x10 'Step Down (Normal)
#raw 0xFE 'End of Movements

this is a script that made the player not go to route 1 if you not had your pokemon in your party but if you do have the pokemon in your party than you can't go to route 1.

Whats the problem with this script?

Flag 0x829 is Pokédex. The flag you want (Pokémon menu) is 0x828.
 

Pokepal17

More cowbell~
1,519
Posts
15
Years
Originally Posted by Ninja Caterpie
Quote:
Originally Posted by cooley
Lock locks the player, and lockall locks down all movement on the map.

But lockall, when I use it, still allows everyone to move. Does the Pokemon Center script use lockall? Because it does lock everyone. :\

Yeah the center uses lockall
 

AvengedFury

Hacker In Training
5
Posts
15
Years
Battle Script +Give away

I wanted to make a battle where after the hero defeats the npc, he will gain a pokemon. In this
case, I want the hero to receive a lvl 80 entei after defeating him. I dont know how I would go
about doing this so any help would be great


Game: Pokemon Ruby
Type: Person
Editor: XSE
Script:
Spoiler:


 
Status
Not open for further replies.
Back
Top