The PokéCommunity Forums

The PokéCommunity Forums (https://www.pokecommunity.com/index.php)
-   Binary ROM Hacking (https://www.pokecommunity.com/forumdisplay.php?f=284)
-   -   Well i needs some help on a script. (https://www.pokecommunity.com/showthread.php?t=176330)

Attilas April 21st, 2009 3:04 AM

Well i needs some help on a script.
 
First of all this is pokescript.

So i got into scripting as well.I need some help here.

Code:

#org $oldman
lock
faceplayer
checkflag 0x3201
if b_true goto $yo
checkflag 0x3200
if b_true goto $dogs
message $hey
release
end

#org $yo
checkflag 0x3205
if b_true goto $completed
message $5
boxset 6
release
end

#org $dogs
message $1
boxset 6
setflag 0x3201
message $2
boxset 6
setflag 0x3201A
fanfare 0x13E
message $3
boxset 4
waitfanfare
#raw 0x68
message $4
release
end

#org $completed
message $6
boxset 6
release
end

#org $hey
$hey 1 = Hey.Give my regards\nto your dad, will ya?

#org $1
$1 1 = Old Man: Hello [player],\nyour dad sent you right?\p[player]:Yes, he did.\nSo what information do you have for him?

#org $2
$2 1 = Old Man: Well, I have something...\p*-Old man looks in his pocket,\nand takes out a letter with a red stamp on it.-*

#org $3
$3 1 = [player] received Professor's John letter!

#org $4
$4 1 = Old Man: [player],hurry back to your dad.\pIt's important for him to get \nthis letter.It contains priceless information.

#org $5
$5 1 = Why are you still here?\nMove it already.\pYour dad is in the middle\nof an important research!

#org $6
$6 1 = Hey [player], how are you?\pI am relaxing ever\nsince I got my pension.


so here's a code of an oldman in the pokemart in my starter town. and another script which is associated with him
Code:

#org $aide
lock
faceplayer
checkflag 0x3200
if b_true goto $finished
checkflag 0x828
if b_true goto $mission
message $1
boxset 6
release
end

#org $mission
message $order
boxset 6
setflag 0x3200
release
end

#org $finished
checkflag 0x3201
if b_true goto $tada
message $complete
boxset 6
release
end

#org $tada
message $success
boxset 6
setflag 0x3205
release
end

#org $1
$1 1 = Aide: Your dad is working hard.\pI am sure he will find an answer\nabout the Legendary dogs soon!

#org $order
$order 1 = Aide: Your dad wants you\nto go to the pokemart next door.\pHe says an old man has something important for him.

#org $complete
$complete 1 = Aide : Get moving!Time is money!

#org $success
$success 1 = Aide: Well done [player].\pThat was really important information\nfor your dad.Go upstairs.\pHe wants to talk to you.


So the 2nd code works perfectly but on 1st script when i first talk to him without having gone to my 'dad's ' aide the message $hey doesn't appear on the screen and also on the 1st script after message $2 the oldman somehow unlocks and starts moving while i am talking to him.Some help would be gladly appreciated.
Best Regards.
Apostolis.

P.S. i am sorry about the title >.> i misstyped an s in the end of "need"

Eletj April 21st, 2009 3:08 AM

These types of questions go in the Script help thread, not here.

Attilas April 21st, 2009 3:30 AM

thanks for pointing me there.i appreciate it ;)


All times are GMT -8. The time now is 2:28 AM.


Like our Facebook Page Follow us on Twitter © 2002 - 2018 The PokéCommunity™, pokecommunity.com.
Pokémon characters and images belong to The Pokémon Company International and Nintendo. This website is in no way affiliated with or endorsed by Nintendo, Creatures, GAMEFREAK, The Pokémon Company or The Pokémon Company International. We just love Pokémon.
All forum styles, their images (unless noted otherwise) and site designs are © 2002 - 2016 The PokéCommunity / PokéCommunity.com.
PokéCommunity™ is a trademark of The PokéCommunity. All rights reserved. Sponsor advertisements do not imply our endorsement of that product or service. User generated content remains the property of its creator.

Acknowledgements
Use of PokéCommunity Assets
vB Optimise by DragonByte Technologies Ltd © 2023.