DC Forums

We have moved our forums:
http://www.dcforums.co.cc/forum/

Please re-register there, thank you.
GKS


Join the forum, it's quick and easy

DC Forums

We have moved our forums:
http://www.dcforums.co.cc/forum/

Please re-register there, thank you.
GKS

DC Forums

Would you like to react to this message? Create an account in a few clicks or log in to continue.
There are many new features available. Some of them include: the advanced profile, reputation system, and the point system. Thank you for waiting patiently, enjoy the update. Plus we are still working on fixing a lot of bugs and stuff that are wrong with the theme.

3 posters

    Haren's list of Questions~!

    Haren
    Haren
    Member
    Member


    Female Number of posts : 17
    Age : 34
    Location : Nunya, Buizzinezz
    Status : Normal
    Warning :
    Haren's list of Questions~! Left_bar_bleue0 / 1000 / 100Haren's list of Questions~! Right_bar_bleue

    Reputation : 0
    Points : 0
    Registration date : 2008-12-31

    Haren's list of Questions~! Empty Haren's list of Questions~!

    Post by Haren Wed Dec 31, 2008 9:05 pm

    I decided I'd start posting my questions here, since I didn't want to clutter up the help topic.

    Here is my compeleted givepokemon script.

    The script (Sorry, but it's kinda long x.x):

    #org $starterpokemon3
    lock
    faceplayer
    message $1
    boxset 6
    checkflag 0x200
    if b_true goto $done
    if b_false goto $take
    release
    end

    #org $take
    givepokemon 58 5 0
    fanfare 0x13E
    message $2
    boxset 4
    setflag 0x828
    setflag 0x200
    message $3
    boxset 5
    compare LASTRESULT 0x1
    if b_true gosub $name
    message $4
    boxset 6
    release
    end

    #org $name
    call 0x1A74EB
    return

    #org $done
    message $5
    boxset 6
    release
    end

    #org $1
    $1 1 =ERIC: Yeah yeah, calm down.\nHere.

    #org $2
    $2 1 =\c\h01\h02You recieved a Growlithe!

    #org $3
    $3 1 =\c\h01\h02Would you like to rename Growlithe?

    #org $4
    $4 1 =\c\h01\h04\v\h01: Thanks. Would you mind moving\nso Ican leave?\p\c\h01\h08ERIC: Now wait a minute. I never\n said you were getting away that\l easy.\p\c\h01\h04\v\h01: What now?\p\c\h01\h08ERIC: Before I can let you go, I\nneed to make sure you're ready to\lhead out. Just to keep\lmy concious clear.\p\c\h01\h04\v\h01: What do you mean?\p\c\h01\h08ERIC: Some of the prisoners in the\narea have pokémon of their own.\lDefeat all of 'em, and I\lmight let ya pass.\p\c\h01\h04\v\h01: Are you serious?\p\c\h01\h08ERIC: Dead serious. I ain't gonna\nhave your death on my \lconcious. Come back when you've\lbeat 'em all.

    #org $5
    $5 1 =ERIC: You beat the others yet?


    Last edited by Haren on Thu Jan 01, 2009 1:21 pm; edited 7 times in total
    G.K.S.
    G.K.S.
    Founder
    Founder


    Male Number of posts : 1718
    Age : 31
    Location : Calfornia, United States
    Status : Updating the forum.
    Warning :
    Haren's list of Questions~! Left_bar_bleue90 / 10090 / 100Haren's list of Questions~! Right_bar_bleue

    Reputation : 0
    Points : 25
    Registration date : 2008-09-20

    Haren's list of Questions~! Empty Re: Haren's list of Questions~!

    Post by G.K.S. Wed Dec 31, 2008 9:13 pm

    First of all, after message 1, you forgot the boxset 5 (message 1 don't seem like a yes or no question, is it? because there is a lastresult thing right after it), then it doesn't mention starterpokemon2 or starterpokemon3, so I'm not sure what you meant. Plus you don't even show message 2's message.
    Haren
    Haren
    Member
    Member


    Female Number of posts : 17
    Age : 34
    Location : Nunya, Buizzinezz
    Status : Normal
    Warning :
    Haren's list of Questions~! Left_bar_bleue0 / 1000 / 100Haren's list of Questions~! Right_bar_bleue

    Reputation : 0
    Points : 0
    Registration date : 2008-12-31

    Haren's list of Questions~! Empty Re: Haren's list of Questions~!

    Post by Haren Wed Dec 31, 2008 9:18 pm

    Radium wrote:First of all, after message 1, you forgot the boxset 5 (message 1 don't seem like a yes or no question, is it? because there is a lastresult thing right after it), then it doesn't mention starterpokemon2 or starterpokemon3, so I'm not sure what you meant. Plus you don't even show message 2's message.

    This is just one of the givepokemon scripts, since I need to iron out the bugs with this one. And no, it isn't a question, but it was my understanding that LASTRESULT was necissary. Then my logic kicked in, and I felt blond Sad So I'm removing it now, and checking how it works.

    [Edit2] And again my blondness kicks in. I forgot to put in a message for $2, but now that I think about it, I'm not sure what to put, since it isn't a Yes/No question.
    G.K.S.
    G.K.S.
    Founder
    Founder


    Male Number of posts : 1718
    Age : 31
    Location : Calfornia, United States
    Status : Updating the forum.
    Warning :
    Haren's list of Questions~! Left_bar_bleue90 / 10090 / 100Haren's list of Questions~! Right_bar_bleue

    Reputation : 0
    Points : 25
    Registration date : 2008-09-20

    Haren's list of Questions~! Empty Re: Haren's list of Questions~!

    Post by G.K.S. Wed Dec 31, 2008 9:38 pm

    boxset 6 - for regular messages
    boxset 5 - yes/no messages

    Is that what you asked?

    If you are creating three options, isn't it better to put all of them in the same script?
    I'm not much help, am I?
    Haren
    Haren
    Member
    Member


    Female Number of posts : 17
    Age : 34
    Location : Nunya, Buizzinezz
    Status : Normal
    Warning :
    Haren's list of Questions~! Left_bar_bleue0 / 1000 / 100Haren's list of Questions~! Right_bar_bleue

    Reputation : 0
    Points : 0
    Registration date : 2008-12-31

    Haren's list of Questions~! Empty Re: Haren's list of Questions~!

    Post by Haren Wed Dec 31, 2008 9:40 pm

    I will eventually xD I just want to make sure that I can even use this givepokemon script as a standalone before I combine it with the whole shebang. When it's done, the whole thing will be one big script.

    But yeah. Would I just get rid of the whole "message $2" part, or...?
    G.K.S.
    G.K.S.
    Founder
    Founder


    Male Number of posts : 1718
    Age : 31
    Location : Calfornia, United States
    Status : Updating the forum.
    Warning :
    Haren's list of Questions~! Left_bar_bleue90 / 10090 / 100Haren's list of Questions~! Right_bar_bleue

    Reputation : 0
    Points : 25
    Registration date : 2008-09-20

    Haren's list of Questions~! Empty Re: Haren's list of Questions~!

    Post by G.K.S. Wed Dec 31, 2008 9:43 pm

    What error message do you get? Do you want to see a sample from my hack:

    #org $start
    faceplayer
    lock
    checkflag 0x200
    if b_true goto $done
    message $1
    boxset 5
    compare LASTRESULT 0x1
    if b_true goto $take
    message $2
    boxset 6
    release
    end


    #org $take
    givepokemon 133 5 142
    fanfare 0x13E
    message $3
    boxset 4
    setflag 0x828
    setflag 0x200
    message $5
    boxset 6
    release
    end

    #org $name
    call 0x1A74EB
    return

    #org $done
    message $6
    boxset $6
    release
    end

    #org $1
    $1 1 =You are old enough to be an\nEven member!\lSo how would you like a Pokemon\lto start you journey in life?

    #org $2
    $2 1 =Well, let's talk later.

    #org $3
    $3 1 =\c\h01\h02You recieved your first Pokemon!

    #org $5
    $5 1 =Watch out for our enemy,/nthe members of Odds!

    #org $6
    $6 1 =Good luck being a trainer.

    I'm not sure if the nickname works on this though.
    Haren
    Haren
    Member
    Member


    Female Number of posts : 17
    Age : 34
    Location : Nunya, Buizzinezz
    Status : Normal
    Warning :
    Haren's list of Questions~! Left_bar_bleue0 / 1000 / 100Haren's list of Questions~! Right_bar_bleue

    Reputation : 0
    Points : 0
    Registration date : 2008-12-31

    Haren's list of Questions~! Empty Re: Haren's list of Questions~!

    Post by Haren Wed Dec 31, 2008 9:46 pm

    Well, I never really got a message, more like a jumbled up mess of text when I talked to Eric. But I'm removing "message 2" and the boxset part of the script, so we'll see how it works.

    [Edit] Nope. Still showing a jumbled up mess when I talk to him. And by the way. On checkflag, can you set any number to create a new flag, or are they all presets?
    G.K.S.
    G.K.S.
    Founder
    Founder


    Male Number of posts : 1718
    Age : 31
    Location : Calfornia, United States
    Status : Updating the forum.
    Warning :
    Haren's list of Questions~! Left_bar_bleue90 / 10090 / 100Haren's list of Questions~! Right_bar_bleue

    Reputation : 0
    Points : 25
    Registration date : 2008-09-20

    Haren's list of Questions~! Empty Re: Haren's list of Questions~!

    Post by G.K.S. Wed Dec 31, 2008 9:55 pm

    I don't think you could use any flag. 200, 1000, 1001 are all free.

    Thethethethe's tutorial taught me how to script, if you want, you could take a look at it.
    http://www.pokecommunity.com/showthread.php?t=128887
    Haren
    Haren
    Member
    Member


    Female Number of posts : 17
    Age : 34
    Location : Nunya, Buizzinezz
    Status : Normal
    Warning :
    Haren's list of Questions~! Left_bar_bleue0 / 1000 / 100Haren's list of Questions~! Right_bar_bleue

    Reputation : 0
    Points : 0
    Registration date : 2008-12-31

    Haren's list of Questions~! Empty Re: Haren's list of Questions~!

    Post by Haren Wed Dec 31, 2008 10:00 pm

    I've been using his tut for most of my scripting, but it's an incomplete guide, and some of his things are unclear. Don't get me wrong, I love using it. Anyway, I just noticed a major error; I forgot to add message $5 before boxset 6 in my script. Compiling and testing now.

    [Edit] Well, it's still not working. In the first post is what my script is right now, to the exact letter. So if anyone wouldn't mind messing with it a little, I'd appreciate it. I've got to get some sleep, so I'ma be heading to bed now. Talk to you peeps later Smile
    G.K.S.
    G.K.S.
    Founder
    Founder


    Male Number of posts : 1718
    Age : 31
    Location : Calfornia, United States
    Status : Updating the forum.
    Warning :
    Haren's list of Questions~! Left_bar_bleue90 / 10090 / 100Haren's list of Questions~! Right_bar_bleue

    Reputation : 0
    Points : 25
    Registration date : 2008-09-20

    Haren's list of Questions~! Empty Re: Haren's list of Questions~!

    Post by G.K.S. Wed Dec 31, 2008 10:28 pm

    #org $starterpokemon1
    checkflag 0x200
    if b_true goto $done
    message $1
    boxset 6
    if b_true goto $take Why do you have this, boxset 6 means it's not a question right, so what could be true?
    release
    end

    #org $take
    givepokemon 58 5 0
    fanfare 0x13E
    message $3
    boxset 4
    waitfanfare
    #raw 0x68
    setflag 0x828
    setflag 0x200
    message $4
    boxset 5
    compare LASTRESULT 0x1
    if b_true gosub $name
    message $5
    boxset 6
    release
    end

    #org $name
    call 0x1A74EB
    return

    #org $done
    message $6
    boxset 6
    release
    end

    #org $1
    $1 1=ERIC: Yeah yeah, calm down.\nHere.

    #org $3
    $3 1=\c\h01\h04You recieved a Growlithe!

    #org $4
    $4 1=\c\h01\h04Would you like to rename Growlithe?

    #org $5
    $5
    1=\v\h01!: Thanks. Would you mind moving so I\ncan leave?\pERIC: Now
    wait a minute. I never\l said you were getting away that\l
    easy.\p\v\h01!: What now?\pERIC: Before I can let you go, I need
    to\lmake sure you're ready to head out.\lJust to keep my concious
    clear.\p\v\h01!: What do you mean?\pERIC: Some of the prisoners in the
    area have\lpokémon of their own. Defeat all of 'em,\land I might let ya
    pass.\p\v\h01!: You're serious...\pERIC: Dead serious. I ain't gonna
    have your\l\death on my concious. Come back when you've\lbeat them all.

    #org $6
    $6 1=ERIC: You beat the others yet?
    Haren
    Haren
    Member
    Member


    Female Number of posts : 17
    Age : 34
    Location : Nunya, Buizzinezz
    Status : Normal
    Warning :
    Haren's list of Questions~! Left_bar_bleue0 / 1000 / 100Haren's list of Questions~! Right_bar_bleue

    Reputation : 0
    Points : 0
    Registration date : 2008-12-31

    Haren's list of Questions~! Empty Re: Haren's list of Questions~!

    Post by Haren Thu Jan 01, 2009 10:49 am

    I decided to try and see if I could put together the entire starter pokemon script. Here's what I came up with.

    #org $start
    lock
    faceplayer
    message $1
    boxset 6
    checkgender
    compare LASTRESULT 0x0
    if b_true goto $boy
    compare LASTRESULT 0x1
    if b_true goto $girl
    release
    end

    #org $boy
    message $2
    boxset 5
    compare LASTRESULT 0x1
    if b_true goto $starterpokemon1b
    if b_false goto $part2
    release
    end

    #org $girl
    message $3
    boxset 5
    compare LASTRESULT 0x1
    if b_true goto $starterpokemon1g
    if b_false goto $part 2
    release
    end

    #org $part2
    message $4
    boxset 5
    compare LASTRESULT 0x1
    if b_true goto $starterpokemon2
    if b_false goto $part 3
    release
    end

    #org $part3
    message $5
    boxset 6
    checkflag 0x200
    if b_true goto $done
    if b_false goto $take1
    release
    end

    #org $take1
    givepokemon 58 5 0
    fanfare 0x13E
    message $6
    boxset 4
    setflag 0x828
    setflag 0x200
    message $7
    boxset 5
    compare LASTRESULT 0x1
    if b_true gosub $name
    message $8
    boxset 6
    release
    end

    #org $starterpokemon1b
    message $9
    boxset 6
    checkflag 0x200
    if b_true goto $done
    if b_false goto $take2
    release
    end

    #org $starterpokemon1g
    message $10
    boxset 6
    checkflag 0x200
    if b_true goto $done
    if b_false goto $take2
    release
    end

    #org $take2
    givepokemon 228 5 0
    fanfare 0x13E
    message $11
    boxset 4
    setflag 0x828
    setflag 0x200
    message $12
    boxset 5
    compare LASTRESULT 0x1
    if b_true gosub $name
    message $8
    boxset 6
    release
    end

    #org $starterpokemon2
    message $13
    boxset 6
    checkflag 0x200
    if b_true goto $done
    if b_false goto $take3
    release
    end

    #org $take3
    givepokemon 286 5 0
    fanfare 0x13E
    message $14
    boxset 4
    setflag 0x828
    setflag 0x200
    message $15
    boxset 5
    compare LASTRESULT 0x1
    if b_true gosub $name
    message $8
    boxset 6
    release
    end

    #org $name
    call 0x1A74EB
    return

    #org $done
    message $16
    boxset 6
    release
    end

    #org $1
    $1 1 =\c\h01\h08ERIC: Yo. You must be one of the prisoners.\nI'm Eric, the leader of this riot. Who're \lyou?\p\c\h01\h02\v\ho1: \v\ho1.\p\c\h01\h08ERIC: "\v\ho1" huh? Sounds foreign. Well anyway,\nif you're lookin' to leave this\l place, then you're gonna need\l some supplies. I'd check the complex.\p\c\h01\h02\v\h01: Will do.\p\c\h01\h08ERIC: Also, the cave that leads outta\nhere is crawlin' with pokemon.\lThey don't take too kindly to\lintruders to their territory,\l so you'll need some protection.\p\c\h01\h02\v\h01: What, are you going to escort me?

    #org $2
    $2 1 =\c\h01\h08ERIC: Hell naw. I'm needed here, to\ncoordinate the riot efforts.\pBut!\pWe did get ahold of a few of\nthe guard's pokemon.\p\c\h01\h02\v\ho1: Great! Mind giving me one?\p\c\h01\h08ERIC: Hmm... Well, I could... But\nI've got a few questions for ya\lfirst. Answer my questions, and I'll\lgive ya the pokemon. Deal?\p\c\h01\h02\v\ho1: ... You've gotta be kidding me.\p\c\h01\h08ERIC: No answers, no pokemon. We got a deal?\p\c\h01\h02\v\ho1: Tch... Fine.\p\c\h01\h08ERIC: Alright! First, I wanna know\na bit about your history. Where're\lya from?\p\c\h01\h02\v\ho1: Johto.\p\c\h01\h08ERIC: Really? That's pretty far away.\nThat where they caught ya?\p\c\h01\h02\v\ho1: Yeah...\p\c\h01\h08ERIC: Huh. I didn't know the other\nregions shipped their felons here,\lwhat with the war and all...\lSpeakin' of which... I wonder\lwhat you did. Lemme guess, you're\la murderer, right?

    #org $3
    $3 1 =\c\h01\h08ERIC: -huff- Well, even though I'd\nlove to hang out with a pretty young\lthing like yerself, I'm needed here,\lto coordinate the riot efforts.\pBut!\pWe did get ahold of a few of\nthe guard's pokemon.\p\c\h01\h02\v\ho1: Great! Mind giving me one?\p\c\h01\h08ERIC: Hmm... Well, I could... But\nI've got a few questions for ya\lfirst. Answer my questions, and I'll\lgive ya the pokemon. Deal?\p\c\h01\h02\v\ho1: ... You've gotta be kidding me.\p\c\h01\h08ERIC: No answers, no pokemon. We got a deal?\p\c\h01\h02\v\ho1: Tch... Fine.\p\c\h01\h08ERIC: Alright! First, I wanna know\na bit about your history. Where're\lya from?\p\c\h01\h02\v\ho1: Johto.\p\c\h01\h08ERIC: Really? That's pretty far away.\nThat where they caught ya?\p\c\h01\h02\v\ho1: Yeah...\p\c\h01\h08ERIC: Huh. I didn't know the other\nregions shipped their felons here,\lwhat with the war and all...\lSpeakin' of which... I wonder\lwhat you did. Lemme guess, you're\la murderer, right?

    #org $4
    $4 1 =\c\h01\h02\v\ho1: Of course not!\p\c\h01\h08ERIC: Aw, really? Then it's gotta be\nsomething smaller. Maybe... petty\lthefts?

    #org $5
    $5 1 =\c\h01\h02\v\ho1: Seriously?\p\c\h01\h08ERIC:No? Well... If you aren't guilty \nof anything, then you must be innocent.\p\c\h01\h02\v\ho1: Yeah. I was charged with a crime I didn't commit.\p\c\h01\h08ERIC: Yeah yeah, whatever you say.\nWell, that's all the info I\lwanted.\p\c\h01\h02\v\ho1: Great. Can I have that pokemon\nnow?\p\c\h01\h08ERIC: Yeah yeah, calm down.\nHere.

    #org $6
    $6 1 =\c\h01\h02You recieved a Growlithe!

    #org $7
    $7 1 =\c\h01\h02Would you like to rename Growlithe?

    #org $8
    $8 1 =\c\h01\h02\v\h01: Thanks. Would you mind moving\nso I can leave?\p\c\h01\h08ERIC: Now wait a minute. I never\n said you were getting away that\l easy.\p\c\h01\h02\v\h01: What now?\p\c\h01\h08ERIC: Before I can let you go, I\nneed to make sure you're ready to\lhead out. Just to keep my concious\lclear.\p\c\h01\h02\v\h01: What do you mean?\p\c\h01\h08ERIC: Some of the prisoners in the\narea have pokémon of their own.\lDefeat all of 'em, and I might let\lya pass.\p\c\h01\h02\v\h01: Are you serious?\p\c\h01\h08ERIC: Dead serious. I ain't gonna\nhave your death on my concious.\lCome back when you've beat 'em\lall.

    #org $9
    $9 1 =\c\h01\h02\v\h01: Well... Let's just say an old\nfriend learned to never cheat me out\lof what's mine.\p\c\h01\h08ERIC: Heh... I guess I had you pegged\nright. Ya do have that dark look about\lya... Well, that's all the info\lI wanted.\p\c\h01\h02\v\ho1: Great. Can I have that pokemon\nnow?\p\c\h01\h08ERIC: Yeah yeah, calm down.\nHere.

    #org $10
    $10 1 =\c\h01\h02\v\h01:Well... Let's just say my ex\nlearned never to cheat on me.\lThe hard way.\p\c\h01\h08ERIC: Heh... I guess I had you pegged\nright. Ya do have that dark look about\lya... Well, that's all the info\lI wanted.\p\c\h01\h02\v\ho1: Great. Can I have that pokemon\nnow?\p\c\h01\h08ERIC: Yeah yeah, calm down.\nHere.

    #org $11
    $11 1 =\c\h01\h02You recieved a Houndour!

    #org $12
    $12 1 =\c\h01\h02Would you like to rename Houndour?

    #org $13
    $13 1 =\c\h01\h02\v\h01: Yeah. I have some pretty skilled\lhands.\p\c\h01\h08ERIC: Well, that would explain that\nsly glint in your eyes... Well,\lthat's all the info I wanted.\p\c\h01\h02\v\ho1: Great. Can I have that pokemon\nnow?\p\c\h01\h08ERICERIC: Yeah yeah, calm down.\nHere.

    #org $14
    $14 1 =\c\h01\h02You recieved a Poochyena!

    #org $15
    $15 1 =\c\h01\h02Would you like to rename Poochyena?

    #org $16
    $16 1 =ERIC: You beat the others yet?

    Yeah, it's pretty long lol. Something in there is fighting against me unfortunately. When I talk to the NPC, nothing shows up, but I get the clicking sound and I'm locked in place. Can anyone see what's wrong? A helpful tip might be that every time I burn it to the ROM, it asks me to set offsets for two of the 'goto's, instead of setting them itself.
    G.K.S.
    G.K.S.
    Founder
    Founder


    Male Number of posts : 1718
    Age : 31
    Location : Calfornia, United States
    Status : Updating the forum.
    Warning :
    Haren's list of Questions~! Left_bar_bleue90 / 10090 / 100Haren's list of Questions~! Right_bar_bleue

    Reputation : 0
    Points : 25
    Registration date : 2008-09-20

    Haren's list of Questions~! Empty Re: Haren's list of Questions~!

    Post by G.K.S. Thu Jan 01, 2009 9:13 pm

    If it asks for the "gotos", you might have specified a goto location and never made that goto location in the script. I looked through the script, and I couldn't find the problem. Try this:

    Create a backup of your rom.
    Try a very simple script and see if it works.

    This could let you know if it's the compiler's problem.

    Another thing you should do is just rewrite the same thing, maybe an obvious mistake might show up. A simplier way to rewrite this script may be to not use if b_true and if b_false. You could just write the statement under the goto after b_true. This could probably save space in the rom.

    I'm sorry if I'm not that much of a help. Maybe Hiche might look at it later if he sees it.
    avatar
    Hiche
    Super Moderator
    Super Moderator


    Number of posts : 277
    Status : Normal
    Warning :
    Haren's list of Questions~! Left_bar_bleue0 / 1000 / 100Haren's list of Questions~! Right_bar_bleue

    Reputation : 0
    Points : 0
    Registration date : 2008-11-15

    Haren's list of Questions~! Empty Re: Haren's list of Questions~!

    Post by Hiche Fri Jan 02, 2009 8:25 am

    I am really busy these days, but go to thethethethe's tutorial. There are minor mistakes, like misuse of commands. The script is not all wrong. if b_false is used in an improper way, and location.

    Also, this is wrong;
    Code:
    #org $name
    call 0x1A74EB
    return

    There should be a setvar 0x8004 0x00 under #org $name.

    Sorry if I did not help. I am not hacking for a while now.

    Sponsored content


    Haren's list of Questions~! Empty Re: Haren's list of Questions~!

    Post by Sponsored content


      Current date/time is Wed Nov 20, 2024 10:40 am