Thread: [Tutorial] Hack Tutorials: Scripting
View Single Post
  #104    
Old September 14th, 2007 (8:33 AM).
Fluddles's Avatar
Fluddles Fluddles is offline
Frustrated Trainer
     
    Join Date: Sep 2007
    Location: Ireland.
    Gender:
    Nature: Rash
    Posts: 10
    Hey everyone, I'm extremely new! I played through Ruby, then Sapphire, now I'm trying to script but I learn by example so I copied this one, but it won't work. I copied it after someone else posted it, and made a few changes... Here's the script.

    Spoiler:
    #org $Startscript
    lock
    faceplayer
    checkflag 0x200
    if 1 goto $GotIt
    message $AskMe
    $AskMe 1 = Argh! I can't handle this! Hey, you look like a confident trainer! Will you take this Pokemon?
    boxset 5
    compare LASTRESULT 1
    if 1 goto $Giveit
    message $Forget
    $Forget 1 = Oh.. Ok, never mind... ARGH!
    boxset 6
    release
    end

    #org $Gotit
    message $Howis
    $Howis 1 = He's your problem now, away with you!
    boxset 6
    release
    end

    #org $Giveit
    givepokemon 004 5 0
    #raw 0 0 0 0 0 0 0 0 0 0 0 0
    message $Whatisit
    $Whatisit 1 = You received Charmander!
    boxset 6
    release
    setflag 0x200
    end


    I wrote it in Notepad, and saved it under "All File Types" with the extension ".rbc" and then I hit right click on it, and then "Compile Script" but I got an error. It says Runtime Error '6' Overflow.

    Which isn't what I expected. I'm using PoketScript but I've also tried Diamond Cutter and I get similar problems. Can someone tell me where I'm going wrong?

    I'm actually doing all this more or less, just so I can get Charmander. I got the Gameshark codes to work once, but not any more.

    Thanks for all and any help!
    __________________