• 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?".
  • 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.

Karel_Kazuki

Wants to Learn about PKMN Rmxp
359
Posts
16
Years
Okay Im trying to Make a hack.I have been learning how to script and I dont know how to use all the elements of the scripts......Okay Im trying to make a battle script,really,and im using a-trainer a-map and XSE.....I need someone to tell me step by step how to put a new trainer int the game.I cna make the script but i dont know what to do after that...

this is the script i wrote.

dynamic 0x800000
#org @start
msgbox @1 0x6
end
#org @1
= Hey [player]!\nI wanna try my new Pokemon.Lets Battle Very quick!

I know its not the right one,Because its a messagebox script but im trying to see how to insert that in.I know there is a @ before after and winner script but I just need the steps to make it work.
 

0m3GA ARS3NAL

Im comin' home...
1,816
Posts
16
Years
How do I edit tile behaviors, like when you hit A while facing a computer, the tile has a behavior of 83 00, it says something along the lines of "It's got some complicated stuffs on it, if I touch it I might die, or delete my sprite and disappear! Better not touch it."?
How do you find the offset of the script that is executed?

That isn't a script, it is an ASM routine that displays the text.
You can change it, but you'll have to look for it in a hex editor, or A-Text.
Then you can change it yourself, but you'd have to repoint if you want to make it longer.

Okay Im trying to Make a hack.I have been learning how to script and I dont know how to use all the elements of the scripts......Okay Im trying to make a battle script,really,and im using a-trainer a-map and XSE.....I need someone to tell me step by step how to put a new trainer int the game.I cna make the script but i dont know what to do after that...

this is the script i wrote.

dynamic 0x800000
#org @start
trainerbattle 0x0 0xTrainerNumber 0x1 @challenge @win @after
goto @after
end

#org @challenge
= Text when he sees you

#org @win
= Text when he loses

#org @after
lock
msgbox @afterbattle 0x6
release
end

#org @afterbattle
= Text he says whenever you talk to him now

I know its not the right one,Because its a messagebox script but im trying to see how to insert that in.I know there is a @ before after and winner script but I just need the steps to make it work.

I edited your script above...
Once you have your trainer made, and teh script inserted, you just have to get it to work in A-Map.

Make a sprite in A-Map point to the script above... (You know, the script offset box)
Make sure to click the little box that says trainer next to it!

Then just set his view radius, and you are done!

(Also, besure the SECOND "Unknown" Box is set to 03!)

I know the script could be better, it has been a while since I last scripted...
 
Last edited:

Shukumei

Teh Haxxorz
27
Posts
14
Years
I need someone to tell me step by step how to put a new trainer int the game.

There are several tutorials you can look at for A-Map and XSE. When looking for something as involved as a full step by step for creating a trainer your best bet is to look there. This thread is not set up for tutorials. It's purpose is to get help debugging scripts. Please keep this in mind. (Sorry if that sounded strict ^_^)
 

rokrdude

POKEMON : SINNOH QUEST CREATOR
135
Posts
14
Years
  • Seen Oct 2, 2016
IS there any way we can edit the pokemon wally uses to catch ralts?

I think its a special can we edit it?

If not can we atleast edit the script when father gives wally zizagoon
(like i want to change the name zizagoon to a nickname )

Because i tried to find the script but could find it

Can someone help?
 
38
Posts
14
Years
  • Seen Mar 4, 2010
hmm how would a basic battle script look like for example i have a scientist i would like to battle in the beginning except i dont know how to set what pokemon he would use
 

TB Pro

Old-timer
2,708
Posts
19
Years
hmm how would a basic battle script look like for example i have a scientist i would like to battle in the beginning except i dont know how to set what pokemon he would use

#dynamic 0x800000

#org @begin
trainerbattle 0x0 0x[trainer number] 0x0 @before @after
msgbox @later 0x2
release
end

#org @before
=

#org @after
=

#org @later
=

Edit his Pokemon via A-Trainer. It can be found in HackMew's toolbox.
 

Pokepal17

More cowbell~
1,519
Posts
15
Years
#dynamic 0x800000

#org @begin
trainerbattle 0x0 0x[trainer number] 0x0 @before @after
msgbox @later 0x2
release
end

#org @before
=

#org @after
=

#org @later
=

Edit his Pokemon via A-Trainer. It can be found in HackMew's toolbox.

The release you used is useless since the msbox's parameter 0x2 has lock, faceplayer and release in one. :3

So get rid of the release since it's junk. :P
 
38
Posts
14
Years
  • Seen Mar 4, 2010
#dynamic 0x800000

#org @begin
trainerbattle 0x0 0x[trainer number] 0x0 @before @after
msgbox @later 0x2
release
end

#org @before
=

#org @after
=

#org @later
=

Edit his Pokemon via A-Trainer. It can be found in HackMew's toolbox.
k thanks never mind fixed it
 
Last edited:

rokrdude

POKEMON : SINNOH QUEST CREATOR
135
Posts
14
Years
  • Seen Oct 2, 2016
IS there any way we can edit the pokemon wally uses to catch ralts?

I think its a special can we edit it?

If not can we atleast edit the script when father gives wally zizagoon
(like i want to change the name zizagoon to a nickname )

Because i tried to find the script but could find it

Can someone help?
 

TB Pro

Old-timer
2,708
Posts
19
Years
The release you used is useless since the msbox's parameter 0x2 has lock, faceplayer and release in one. :3

So get rid of the release since it's junk. :P
Ah, really? I never knew that, thanks. Also, I was wondering, applymovement 0x800F is referring to what? I thought it was the camera for a while, but isn't that 0x7F? I may be mistaken, though.
 
Last edited:
4
Posts
14
Years
  • Seen Dec 6, 2010
Hello I have another scripting problem, relating to applymovement. Is there anyway to extend facing positions? I want a person to naturally look around before moving again, but don't want to add a thousand extra addresses for it (as in 1 for just turning left, one for just turning right...). Repeating the raw value doesn't help either, or they simply wig out, which is funny at first, yes, but isn't what I wanted. Any help would be greatly appreciated.
 

rokrdude

POKEMON : SINNOH QUEST CREATOR
135
Posts
14
Years
  • Seen Oct 2, 2016
Well... replace Ralts with other pokemon :D
I mean completely ;) Like its sprite with UnlZ, its stats and name with YAPE and so on :)

I already know that i dont want to remove ralts

The thing is i wanted to know how can we edit the script when father gives wally zizagoon
(like i want to change the name zizagoon to a nickname )

Because i tried to find the script but could find it

Can anyone help?
 

/Circa

a face in the clouds.
881
Posts
16
Years
I already know that i dont want to remove ralts

The thing is i wanted to know how can we edit the script when father gives wally zizagoon
(like i want to change the name zizagoon to a nickname )

Because i tried to find the script but could find it

Can anyone help?

My suggestion is replace one of the ??? spaces in your hack with the Zigzagoon sprite but name it the nickname you wish to give it.

There are 25 ???'s just in case you didnt know.
 
38
Posts
14
Years
  • Seen Mar 4, 2010
'---------------
#org 0x780000
trainerbattle 0x0 0x12 0x0 0x8780019 0x8780059
msgbox 0x8780082 MSG_FACE '"Hows the search going?"
release
end


'---------
' Strings
'---------
#org 0x780019
= Hello. lets test that Partner before\nyou go and look for Celebi?

#org 0x780059
= You both are truly ready to find Celebi!

#org 0x780082
= Hows the search going?
k thats my battle script is but how would i make it so that she battles me on sight so when she sees me she wants to battle
 

TB Pro

Old-timer
2,708
Posts
19
Years
'---------------
#org 0x780000
trainerbattle 0x0 0x12 0x0 0x8780019 0x8780059
msgbox 0x8780082 MSG_FACE '"Hows the search going?"
release
end


'---------
' Strings
'---------
#org 0x780019
= Hello. lets test that Partner before\nyou go and look for Celebi?

#org 0x780059
= You both are truly ready to find Celebi!

#org 0x780082
= Hows the search going?
k thats my battle script is but how would i make it so that she battles me on sight so when she sees me she wants to battle
First off, remove release. Place the compiled offset of the script under an NPC in A-Map. Check the trainer box. Put the view range at whatever you wish.
 

.Tactic.

x.Paranoid's BackAlley.x
1,309
Posts
15
Years
Please can someone help me wiv dis script? It is for changing the OW? I dont know how to fix it..
Spoiler:

Not quite sure but could it have something to do with the fact that the two boldfaced halfwords are different?

That didnt help..
------------------------
Please can someone help?!!? I need this fixed for my hack!
 

Pokepal17

More cowbell~
1,519
Posts
15
Years
That didnt help..
------------------------
Please can someone help?!!? I need this fixed for my hack!

Then use some common sense and describe the problem. All you said was that it didn't work and that's as helpful as not posting the script.
 
Status
Not open for further replies.
Back
Top