View Single Post
  #48    
Old February 5th, 2009, 04:54 PM
diegoisawesome's Avatar
diegoisawesome
Not the Script Help Thread
Community Supporter
 
Join Date: Dec 2007
Location: Goldenrod City, Johto
Age: 17
Gender: Male
Nature: Quirky
Quote:
Originally Posted by Sonikku17 View Post
Hey, thanks for the guide! I'm pretty much a rookie hacker, and this has been a huge help!

Here's a quick question:
I'm trying to make a givepokemon script. When I run it in-game, everything works perfectly...except for the nicknaming part. For some reason, when it gets to the part where I should be nicknaming the pokemon that was given, it makes me nickname the first pokemon in my party. Any ideas about why this may be happening?
Quote:
Originally Posted by Mourgrim View Post
Hello. I've been having troubles with yet another script that's confusing me quite a bit.

The script I'm trying to make has a man step forward twice, inform the player that they can't leave without a pokemon, have the player step to the right twice to where the pokeball is, have them take it, and leave without the man stopping them. Of course, there's a 'bit' more to it when you read the actual scripts, but that's the gist of it all. If anyone can help, again, I'd greatly appriecate it.

The Movement Script:
#dynamic 0x800000

#org @start
checkflag 0x1000
if 0x1 goto @done
checkflag 0x1000
if 0x0 goto @movement
release
end

#org @movement
msgbox @hey 0x2
applymovement 0xThis should be the People Number of the man. @move
waitmovement 0x0
applymovement 0xFF @move2
waitmovement 0x0
msgbox @take 0x2
applymovement 0xAgain, this should be the People Number of the man. @move3
waitmovement 0x0
setflag 0x1001
release
end

#org @done
release
end

#org @move
#raw 0x1E
#raw 0x1E

#org @move2
#raw 0x13
#raw 0x13

#org @move3
#raw 0x13

#org @hey
= Hey, you can't leave\nwithout having something\lto protect you!

#org @take
= Take my EEVEE. Raise it\nwell, and let it evolve\linto whatever you wish it\lto become!

The Man's Script:
#dynamic 0x800010

#org @start
checkflag 0x1002
if 0x1 goto @good
checkflag 0x1002
if 0x0 goto @omg
release
end

#org @good
msgbox @leave 0x2
applymovement 0xAnd again, this should be the People Number of the man. @move
waitmovement 0x0
msgbox @goodluck 0x2
release
end

#org @omg
msgbox @takeit 0x2
release
end

#org @move
#raw 0x14
#raw 0x0C

#org @leave
= Okay, you may leave.

#org @goodluck
= Good luck out there!

#org @takeit
= Would you just take it?

The Pokeball's Script:
#dynamic 0x800020

#org @start
checkflag 0x1001
if 0x1 goto @take
checkflag 0x1001
if 0x0 goto @done
release
end

#org @take
givepokemon 0x133 0x5 0x0 0x0 0x0 0x0
fanfare 0x13E
msgbox @received 0x4
waitfanfare
closeonkeypress
fadescreen 0x1
hidesprite 0x800F
setflag 0x1000
setflag 0x1002
fadescreen 0x0
release
end

#org @done
release
end

#org @received
= You received EEVEE!

If you see any problems with other parts of what's going on, I'd appreciate it if that was mentioned as well.
Done.

Quote:
Originally Posted by ¦Next Pro View Post
I think you should make your own level scripting sutorial and add it here. Because
Cooleys was hard to understand for me. (Still learned it )
I will, just haven't got around to it.

Quote:
Originally Posted by nemesish View Post
Kinda curious.
When i did a give pokemon script. it just takes me to the last line "so, how´s my old TORCHIC?"

In first place the NPC NEVER gave a pokemon?
No talking or nothing, it just takes me to the last line

Even i tried copying the one in the tut, but the same results.

btw, in-game i´m oing to getm Oaks parcel, so I don´t have a Pokedex. In case you´re wondering if i used that flag
Can you post the script here? And have you already set the Pokemon menu flag? If so, use another flag besides 0x828.
__________________


My other resources:
My Website
diegoisawesome's MEGA-HUGE XSE Scripting Tutorial
diegoisawesome's Miscellaneous Finds
The Ruins of Alph Puzzles
Reply With Quote