Script Help Thread (DO NOT REQUEST SCRIPTS) Page 122

Started by HackMew December 20th, 2008 5:10 AM
  • 625760 views
  • 9682 replies
Male
Seen August 17th, 2016
Posted May 9th, 2015
673 posts
14.2 Years
#org @congrats
= ???: Well hello there young'un.\nFrom the look of you, it's obvious\lthat you're a trainer. So was I,\lonce, a great one, even. There was\la time when the name Pryce\linspired respect and admiration[.]\land a time when it inspired\lrevulsion and fear[.]\l[.][.][.][.][.][.][.][.]\lBut enough of that. It does my old\lheart good to help out budding\ltrainers like you. Here, a gift\lfrom me. Something tells me this\lit
em will come in useful on your\ljourney.
The word "item" in the last line is split up into two lines, so XSE doesn't recognize "em will come in useful on your\ljourney." as any type of code.
Age 30
Male
Seen July 22nd, 2012
Posted June 10th, 2012
516 posts
13.8 Years
The word "item" in the last line is split up into two lines, so XSE doesn't recognize "em will come in useful on your\ljourney." as any type of code.
Thanks. I knew it would be something stupid like that, I just couldn't spot it :\
EDIT: You know what's interesting, that string was still only one line in XSE, though it still let me backspace between "it" and "em." No wonder I couldn't find it 0.o
Credit for my avatar goes to the Lego company. :)
Age 30
Male
Michigan
Seen October 14th, 2012
Posted October 2nd, 2010
195 posts
13.8 Years
Don't think it matters in Pallet Town - the running shoes won't work even if it is set correctly unless you change the "name on entering."

Just trying to prevent a headache for someone who might be doing everything right with the script.



For this one, I would personally use setvar and countpokemon (if this is your first Pokemon) or the command for checking for a certain Pokemon. Let me add some options in bold.

#dynamic 0x800309
#org @mover
setvar 0x5000 0x0    (a variable set to 0x0 will keep repeating itself whenever stepped on)
countpokemon             (counts # of Pokemon)
compare lastresult 0x0  (compares the # of Pokemon to the #0)
if 0x1 goto @stop         (if the # of Pokemon the player has is 0, goes to @stop)
release
end
 
#org @stop
applymovement 0xFF @move
waitmovement 0x0
msgbox @1 0x6
applymovement 0xFF @move2
waitmovement 0x0
release
end
#org @move
#raw 0x62
#raw 0xFE
#org @move2
#raw 0x10
#raw 0xFE
#org @1
= Woops! Probably should bring\nGrowly along....
It worked perfectly!!!
You are pure geneous thank you so much!
There's just one little problem: the poke ball doesn't disappear until I warp to another room. Therefore giving me the ability to obtain as many pokemon as I want. How would I go about making the sprite permanently invisible?
Male
Seen December 7th, 2010
Posted November 30th, 2010
60 posts
13.6 Years
It worked perfectly!!!
You are pure geneous thank you so much!
There's just one little problem: the poke ball doesn't disappear until I warp to another room. Therefore giving me the ability to obtain as many pokemon as I want. How would I go about making the sprite permanently invisible?
Spoiler:

#dynamic 0x8003C3

#org @newgrowls
lock
faceplayer
checkflag 0x901
if 0x1 goto @done
msgbox @1 0x6
givepokemon 58 0x5 0x0 0x0 0x0 0x0
hidesprite 0x00 //instead of 0x00 you put, 0x(hex version of the person event no.)
setflag 0x828
setflag 0x3000
release
end


#org @done
clearflag 0x900
release
end


#org @1
= Let's go Growly....\nTime to visit Professor Oak.



Picture outline.
Spoiler:
make sure that the person id is near the flag number.


HackChu

I need a haircut...

Age 30
Male
Bankrupt Amerika
Seen September 23rd, 2020
Posted September 22nd, 2020
674 posts
16.3 Years
Spoiler:

#dynamic 0x8003C3

#org @newgrowls
lock
faceplayer
checkflag 0x901
if 0x1 goto @done
msgbox @1 0x6
givepokemon 58 0x5 0x0 0x0 0x0 0x0
hidesprite 0x00 //instead of 0x00 you put, 0x(hex version of the person event no.)
setflag 0x828
setflag 0x3000
release
end


#org @done
clearflag 0x900
release
end


#org @1
= Let's go Growly....\nTime to visit Professor Oak.



Picture outline.
Spoiler:
make sure that the person id is near the flag number.
He needs to make the person ID change to 0828 since the set flag is 0x828.
It worked perfectly!!!
You are pure geneous thank you so much!
There's just one little problem: the poke ball doesn't disappear until I warp to another room. Therefore giving me the ability to obtain as many pokemon as I want. How would I go about making the sprite permanently invisible?
You don't need all those flags unless they correspond with other scripts.
Join us!

My 'learning how to combine battle scripts' thread:
http://www.pokecommunity.com/showthread.php?t=183001

SoulSilver FC:1162 1864 5409
Name: Ethan

Black FC: 2666 1354 4379
Name: Ashton

White 2 FC: 1120 8065 3049
Name: Nate

3DS Friend Code: 1349-4646-2412
Name: tysonrss
Male
Seen December 7th, 2010
Posted November 30th, 2010
60 posts
13.6 Years
He needs to make the person ID change to 0828 since the set flag is 0x828.

You don't need all those flags unless they correspond with other scripts.
I know that, I was just showing him where they were just in case he confused them.


tkallab

Should have been in Dissidia

Age 26
Male
I'm on a horse
Seen June 14th, 2013
Posted September 18th, 2011
1,029 posts
15.3 Years
Hi, everyone. I got myself a bit of trouble with this level script.

When I go outside of the house, Gary is supposed to come at me, tell me something, walk away, then disappear.
But, when I go outside, nothing happens at all. Gary stays where he is...

Here's the script.

Spoiler:

'---------------
#org 0x800000
checkflag 0x1000
if 0x0 goto 0x8800040
lock
msgbox 0x8800043 MSG_KEEPOPEN '"GRAMPS! Where are you?"
applymovement MOVE_PLAYER 0x8800100
applymovement 0x3 0x8800104
waitmovement 0x3
closeonkeypress
msgbox 0x880005C MSG_NORMAL '"Oh, it's you, [player]. Have you s..."
applymovement 0x3 0x880010F
waitmovement 0x3
setflag 0x1000
goto 0x8800040

'---------------
#org 0x800040
release
end


'---------
' Strings
'---------
#org 0x800043
= GRAMPS! Where are you?

#org 0x80005C
= Oh, it's you, [player]. Have you seen\ngramps?\lYou know, Professor Oak? I can't\lfind him.\lOh, what would you know about it?\lI gotta ask smarter people. Smell\lyou later!


'-----------
' Movements
'-----------
#org 0x800100
#raw 0x63 'Question Mark (?)
#raw 0x3 'Face Right
#raw 0xFE 'End of Movements

#org 0x800104
#raw 0x1E 'Step Up (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x1F 'Step Left (Fast)
#raw 0x1F 'Step Left (Fast)
#raw 0x1F 'Step Left (Fast)
#raw 0x12 'Step Left (Normal)
#raw 0xFE 'End of Movements

#org 0x80010F
#raw 0x20 'Step Right (Fast)
#raw 0x20 'Step Right (Fast)
#raw 0x20 'Step Right (Fast)
#raw 0x20 'Step Right (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0xFE 'End of Movements


'---------
' Strings
'---------
#org 0x800043
= GRAMPS! Where are you?

#org 0x80005C
= Oh, it's you, [player]. Have you seen\ngramps?\lYou know, Professor Oak? I can't\lfind him.\lOh, what would you know about it?\lI gotta ask smarter people. Smell\lyou later!


'-----------
' Movements
'-----------
#org 0x800100
#raw 0x63 'Question Mark (?)
#raw 0x3 'Face Right
#raw 0xFE 'End of Movements

#org 0x800104
#raw 0x1E 'Step Up (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x1F 'Step Left (Fast)
#raw 0x1F 'Step Left (Fast)
#raw 0x1F 'Step Left (Fast)
#raw 0x12 'Step Left (Normal)
#raw 0xFE 'End of Movements

#org 0x80010F
#raw 0x20 'Step Right (Fast)
#raw 0x20 'Step Right (Fast)
#raw 0x20 'Step Right (Fast)
#raw 0x20 'Step Right (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0xFE 'End of Movements


Could I get some help?

HackMew

Mewtwo Strikes Back

Seen October 26th, 2011
Posted October 15th, 2010
1,314 posts
16.9 Years
I have a question..

Let's say you have 6 Pokemon in your party. Is it possible, when you encounter a trainer battle, to just use 3 of those Pokemon, for example, in your party?
I believe it requires ASM, but despite that, is there a way?

Hiche..
There is a special which can do that, but it's used in the Trainer Tower and Pokémon won't gain any experience.


I used Jpans clean script patch, and I put in my own Pokémon center, but when my pokmon faint I head to this random place, and not to my own Pokemon center, even after I've used it.

How do I set a pokmon center as a pokemon center after a white out?
Check the script on a clean ROM to see how to set it. In particular, check the Pokémon Centers' level scripts, and look for the sethealingplace command.

HackMew

Mewtwo Strikes Back

Seen October 26th, 2011
Posted October 15th, 2010
1,314 posts
16.9 Years
Thank you guys so much! :)
It worked perfectly and I just wanted to say I appreciate you showing me the right way.
Saying thanks it's a good idea, but next time PM/VMs are preferred ;)
Male
Seen December 7th, 2010
Posted November 30th, 2010
60 posts
13.6 Years
Check the script on a clean ROM to see how to set it. In particular, check the Pokémon Centers' level scripts, and look for the sethealingplace command.

I set the level scripts, and I tried to adjust it so it would go to a pokecenter I put in the first town, but it kept heading to the heros home, so I decided to rip the mom script, and now it works fine as long as it ports to his home instead of the pokecenter ha ha.

I know I messed it up somewhere.... obviously. But as long as it works for the starter town, it doesn't matter.

Oh yeah, and thank you very much for the help hackmew :) for the program and the answer.


Also:
When you do the applymovement scripts to show the !, !!, or ? signs, what's the script to make the little beep noise go off at the same time? and how do I make a person I make walk on screen stay hidden until I want them to show up? (I.e oak stopping you from leaving pallet town in original game)


6ryan4

"Watch the power of aura!!!"

Male
My bedroom with my face rooted to a screen
Seen August 6th, 2013
Posted November 22nd, 2010
27 posts
13.3 Years
I need help with this script:

Spoiler:

#dyn 0x740000
#org 0x8734246
lock
msgbox @crono1
callstd MSG_NOCLOSE
pause 0x4
closemsg
applymovement 0x8 @cronoturns
msgbox @crono2
callstd MSG_NORMAL
applymovement 0x9 @gruntturns
msgbox @crono3
callstd MSG_NORMAL
applymovement 0x9 @gruntcomes
jump @trainer

#org @trainer
trainerbattle 0x0 0x003 0x9 @intro @defeat
jump @aftermath

#org @aftermath
lock
msgbox @crono4
applymovement 0x9 @gruntruns
applymovement 0x8 @cronoruns
disappear 0x8
disappear 0x9
pause 0x3
end

#org @intro
= GRUNT: I do as CRONO says.

#org @defeat
= ...I have failed CRONO.

#org @afterwards
= I can also say something after the battle

#org @crono1
= Alright, the next step is...

#org @cronoturns
m look_down say_! end

#org @crono2
= Oh, crap! Not you again!

#org @gruntturns
m look_down say_! end

#org @crono3
= I don't have time for a battle!\nIt's the GRUNT's turn!

#org @gruntcomes
m walk_down look_right end

#org @crono4
= What?! No way!\pGrrr...abort mission!

#org @cronoruns
m run_up run_up run_up run_up run_up run_up run_up run_up end

#org @gruntruns
m run_up run_up run_up run_up run_up run_up run_up run_up end


I need to make it so that the script continues directly after the trainer battle. Can someone edit my script so it'll do that?
Male
Seen December 7th, 2010
Posted November 30th, 2010
60 posts
13.6 Years
Changes are in bold. I hope I helped.

I need help with this script:

Spoiler:

#dyn 0x740000
#org 0x8734246
lock
msgbox @crono1
callstd MSG_NOCLOSE
pause 0x4
closemsg
applymovement 0x8 @cronoturns
msgbox @crono2
callstd MSG_NORMAL
applymovement 0x9 @gruntturns
msgbox @crono3
callstd MSG_NORMAL
applymovement 0x9 @gruntcomes
jump @trainer

#org @trainer
trainerbattle 0x1 0x003 0x9 @intro @defeat @aftermath

#org @aftermath
lock
msgbox @crono4
applymovement 0x9 @gruntruns
applymovement 0x8 @cronoruns
disappear 0x8
disappear 0x9
pause 0x3
end

#org @intro
= GRUNT: I do as CRONO says.

#org @defeat
= ...I have failed CRONO.

#org @afterwards
= I can also say something after the battle

#org @crono1
= Alright, the next step is...

#org @cronoturns
m look_down say_! end

#org @crono2
= Oh, crap! Not you again!

#org @gruntturns
m look_down say_! end

#org @crono3
= I don't have time for a battle!\nIt's the GRUNT's turn!

#org @gruntcomes
m walk_down look_right end

#org @crono4
= What?! No way!\pGrrr...abort mission!

#org @cronoruns
m run_up run_up run_up run_up run_up run_up run_up run_up end

#org @gruntruns
m run_up run_up run_up run_up run_up run_up run_up run_up end



6ryan4

"Watch the power of aura!!!"

Male
My bedroom with my face rooted to a screen
Seen August 6th, 2013
Posted November 22nd, 2010
27 posts
13.3 Years
Nope...still not working.

Here it is again. It's slightly different, but oh well.

Spoiler:

#dyn 0x740000
#org 0x8734246
lock
msgbox @crono1
callstd MSG_NOCLOSE
pause 0x4
closemsg
applymovement 0x8 @cronoturns
msgbox @crono2
callstd MSG_NORMAL
applymovement 0x9 @gruntturns
msgbox @crono3
callstd MSG_NORMAL
applymovement 0x9 @gruntcomes
jump @trainer

#org @trainer
trainerbattle 0x1 0x003 0x0 @intro @defeat @aftermath
end

#org @aftermath
lock
msgbox @crono4
applymovement 0x9 @gruntruns
applymovement 0x8 @cronoruns
disappear 0x8
disappear 0x9
pause 0x3
end

#org @intro
= GRUNT: I do as CRONO says.

#org @defeat
= ...I have failed CRONO.

#org @afterwards
= I can also say something after the battle

#org @crono1
= Alright, the next step is...

#org @cronoturns
m look_down say_! end

#org @crono2
= Oh, crap! Not you again!

#org @gruntturns
m look_down say_! end

#org @crono3
= I don't have time for a battle!\nIt's the GRUNT's turn!

#org @gruntcomes
m walk_down look_right end

#org @crono4
= What?! No way!\pGrrr...abort mission!

#org @cronoruns
m run_up run_up run_up run_up run_up run_up run_up run_up end

#org @gruntruns
m run_up run_up run_up run_up run_up run_up run_up run_up end
Male
Seen December 7th, 2010
Posted November 30th, 2010
60 posts
13.6 Years
Nope...still not working.

Here it is again. It's slightly different, but oh well.

Spoiler:

#dyn 0x740000
#org 0x8734246
lock
msgbox @crono1
callstd MSG_NOCLOSE
pause 0x4
closemsg
applymovement 0x8 @cronoturns
msgbox @crono2
callstd MSG_NORMAL
applymovement 0x9 @gruntturns
msgbox @crono3
callstd MSG_NORMAL
applymovement 0x9 @gruntcomes
jump @trainer

#org @trainer
trainerbattle 0x1 0x003 0x0 @intro @defeat @aftermath
end

#org @aftermath
lock
msgbox @crono4
applymovement 0x9 @gruntruns
applymovement 0x8 @cronoruns
disappear 0x8
disappear 0x9
pause 0x3
end

#org @intro
= GRUNT: I do as CRONO says.

#org @defeat
= ...I have failed CRONO.

#org @afterwards
= I can also say something after the battle

#org @crono1
= Alright, the next step is...

#org @cronoturns
m look_down say_! end

#org @crono2
= Oh, crap! Not you again!

#org @gruntturns
m look_down say_! end

#org @crono3
= I don't have time for a battle!\nIt's the GRUNT's turn!

#org @gruntcomes
m walk_down look_right end

#org @crono4
= What?! No way!\pGrrr...abort mission!

#org @cronoruns
m run_up run_up run_up run_up run_up run_up run_up run_up end

#org @gruntruns
m run_up run_up run_up run_up run_up run_up run_up run_up end
what are you using for your scripting? I've never seen that style.


Male
Seen December 7th, 2010
Posted November 30th, 2010
60 posts
13.6 Years
What do you mean? I'm using PKSV...
There aren't that many pksv users here. I can only really help you if you were using xse, which most people here use that....

So if you learn how to script in xse, then you will get a lot more help from the people here.


6ryan4

"Watch the power of aura!!!"

Male
My bedroom with my face rooted to a screen
Seen August 6th, 2013
Posted November 22nd, 2010
27 posts
13.3 Years
I messed around with my script, and I got the script to continue after the battle correctly, but now I have other problems...I'm experimenting, but if it still doesn't work right, I'll keep asking around. Thanks for the help that was given!

EDIT: Okay, I'm back to needing help. Apparently, most of you use XSE, and I understand that, but I need someone who has experience with PKSV. Here's the new script:

Spoiler:

#dyn 0x740000
#org 0x8734246
trainerbattle 0x1 0x005 0x0 @intro @defeat @end
end

#org @end
lockall
message @crono
callstd MSG_NORMAL
applymovement 0x8 @cronoruns
pause 0x9
disappear 0x8
pause 0x2
releaseall
end

#org @intro
= You again?!\pThis can be some training for\nmy stolen EEVEE!

#org @defeat
= Or, it can be training for you...

#org @afterwards
= GRUNT: I have failed CRONO...

#org @look
m look_right end

#org @crono
= I can't believe it...\pYou beat me!\nAgain!\pWell, I'm gone!\nSee ya, twerp!

#org @cronoruns
m run_right run_right run_right run_up run_up run_up run_up run_up run_up run_up end


The first problem I had has been fixed, but now the part where "Crono" runs away and disappears is all screwy.
Male
Seen December 7th, 2010
Posted November 30th, 2010
60 posts
13.6 Years
Okay, I'm creating a trainer battle script, and it works perfectly fine when I talk to the trainer, but when I try to make him see my player the screen turns red....

help?

Script:
Spoiler:
#dynamic 0x800000

#org @start
lock
faceplayer
checkflag 0x820
if 0x1 goto @done
msgbox @say 0x06
trainerbattle 0x1 0x001 0x0 @before @after @later
end


#org @before
= Show me what ya got \v\h01!

#org @after
= What the-?

#org @later
msgbox @3 0x6
setflag 0x820
fadescreen 0x01
hidesprite 0x01
fadescreen 0x00
release
end

#org @done
msgbox @1 0x6
release
end

#org @1
= You shouldn't be seeing me.

#org @say
= Hey, \v\h01. I got a Pokémon from\nmy Grandpa. Lets fight!

#org @3
= Holy crap...\pNext time you won't be so lucky!


Pictures:
Spoiler:





Omega Zero

Is back...

Age 25
Male
I'm always living aren't I?
Seen December 4th, 2016
Posted October 6th, 2013
444 posts
13.4 Years
Okay, I'm creating a trainer battle script, and it works perfectly fine when I talk to the trainer, but when I try to make him see my player the screen turns red....

help?

Script:
Spoiler:
#dynamic 0x800000

#org @start
lock
faceplayer
checkflag 0x820
if 0x1 goto @done
msgbox @say 0x06
trainerbattle 0x1 0x001 0x0 @before @after @later
end


#org @before
= Show me what ya got \v\h01!

#org @after
= What the-?

#org @later
msgbox @3 0x6
setflag 0x820
fadescreen 0x01
hidesprite 0x01
fadescreen 0x00
release
end

#org @done
msgbox @1 0x6
release
end

#org @1
= You shouldn't be seeing me.

#org @say
= Hey, \v\h01. I got a Pokémon from\nmy Grandpa. Lets fight!

#org @3
= Holy crap...\pNext time you won't be so lucky!


Pictures:
Spoiler:



take the lock and face player away it'll sure to work after.
Seen December 27th, 2014
Posted November 12th, 2014
979 posts
15.1 Years
Okay, I'm creating a trainer battle script, and it works perfectly fine when I talk to the trainer, but when I try to make him see my player the screen turns red....

help?

Script:
Spoiler:
#dynamic 0x800000

#org @start
lock
faceplayer
checkflag 0x820
if 0x1 goto @done
msgbox @say 0x06
trainerbattle 0x1 0x001 0x0 @before @after @later
end


#org @before
= Show me what ya got \v\h01!

#org @after
= What the-?

#org @later
msgbox @3 0x6
setflag 0x820
fadescreen 0x01
hidesprite 0x01
fadescreen 0x00
release
end

#org @done
msgbox @1 0x6
release
end

#org @1
= You shouldn't be seeing me.

#org @say
= Hey, \v\h01. I got a Pokémon from\nmy Grandpa. Lets fight!

#org @3
= Holy crap...\pNext time you won't be so lucky!


Pictures:
Spoiler:



I do not see anything wrong in it. :\
Maybe you did not check the trainer thing..In Advance map, click on the person you want to battle you, and check the Trainer. If not, try re scripting it using a different sprite.
Age 30
Male
Seen July 22nd, 2012
Posted June 10th, 2012
516 posts
13.8 Years
@forestw: Insert a new person event with the same script, view radius, etc. (all values the same), and delete the old one. That's what worked for me, at any rate.

Now, my first time using the braille command in XSE:
Spoiler:

#dynamic 0x800000
#org @arnahint
lockall
braille @arnatos
closeonkeypress
releaseall
end
#org @arnatos
= Two there are.\nFirst Arceus, champion of life.\lSecond Arnatos, bringer of death.\lHe who befriends Arceus shall\lrecieve its blessing.\lHe who enslaves Arnatos shall\lrecieve its service.\lSuch is the doctrine of the\lopposed twins of creation and\lentropy.

....and it comes out as gibberish. What'd I do?
Credit for my avatar goes to the Lego company. :)