Ace Trainer Slash
If you give me about two hours, I can make scripts
- 236
- Posts
- 6
- Years
- He/Him/They
- Australia.
- Seen Aug 6, 2024
Hello.
I have made a script where a person will give the player a Pokemon when you talk to them. I then made this person to disappear. I haven't included any of the scripts to check for a full party because this is a starter Pokemon. This is the script I made. I followed a few guides like Avara's but nothing seems to be working at all. When I removed the nicknaming parts of the script and loaded the rest of it into the game, the game crashed when I interacted with the person that I gave the script below. When I have the nicknaming parts of the scripts in it, I keep getting an Error 9 'subscript out of range' on the text-string 'It's your newly caught Herdier\p[player]...' part of the script.
What is wrong with my script?
#dynamic 0x800000
#org @start
lock
faceplayer
msgbox @hi 0x6
givepokemon 0x371 0x15 0x0 0x0 0x0 0x0
fanfare 0x101
msgbox @receive 0x4
waitfanfare
closeonkeypress
msgbox @nick 0x5
compare LASTRESULT 0x1
if 0x1 call @YesToNick
setflag 0x240
hidesprite 0x1
setflag 0x2F0
release
end
#org @YesToNick
setvar 0x8004 0x0
call 0x81A74EB
return
#org @hi
= Its your newly caught Herdier!\p[player]: Finally, a strong Pok\h1Bmon\n that's going to help me win the Pok\h1Bmon \lLeague. I've been waiting for this\lmoment ever since I first got\lthat Lillipup.
#org @receive
= You added Herdier to your party!
#org @nick
= Should I nickname it?
Please someone help me with this. The demo I'm making falls apart if I can't at bare minimum get this script right.
I have made a script where a person will give the player a Pokemon when you talk to them. I then made this person to disappear. I haven't included any of the scripts to check for a full party because this is a starter Pokemon. This is the script I made. I followed a few guides like Avara's but nothing seems to be working at all. When I removed the nicknaming parts of the script and loaded the rest of it into the game, the game crashed when I interacted with the person that I gave the script below. When I have the nicknaming parts of the scripts in it, I keep getting an Error 9 'subscript out of range' on the text-string 'It's your newly caught Herdier\p[player]...' part of the script.
What is wrong with my script?
#dynamic 0x800000
#org @start
lock
faceplayer
msgbox @hi 0x6
givepokemon 0x371 0x15 0x0 0x0 0x0 0x0
fanfare 0x101
msgbox @receive 0x4
waitfanfare
closeonkeypress
msgbox @nick 0x5
compare LASTRESULT 0x1
if 0x1 call @YesToNick
setflag 0x240
hidesprite 0x1
setflag 0x2F0
release
end
#org @YesToNick
setvar 0x8004 0x0
call 0x81A74EB
return
#org @hi
= Its your newly caught Herdier!\p[player]: Finally, a strong Pok\h1Bmon\n that's going to help me win the Pok\h1Bmon \lLeague. I've been waiting for this\lmoment ever since I first got\lthat Lillipup.
#org @receive
= You added Herdier to your party!
#org @nick
= Should I nickname it?
Please someone help me with this. The demo I'm making falls apart if I can't at bare minimum get this script right.