• Our software update is now concluded. You will need to reset your password to log in. In order to do this, you will have to click "Log in" in the top right corner and then "Forgot your password?".
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

[Other] loading scripts

Status
Not open for further replies.

ubuntupokemoninc

Hacker/Programmer
  • 7
    Posts
    12
    Years
    • Seen Jul 10, 2011
    nothing happens when i click on the guy with this script

    #dynamic 0x80000

    #org @start
    lock
    checkflag 0x828
    if 0x2 goto @talk
    msgbox @talk 0x6
    givepokemon 0x7 0x5 0x0 0x0 0x0 0x0
    applymovement 0x2 @move
    release
    end

    #org @talk
    = Take it... it has caused me to much\ntrouble already!

    #org @move
    #raw 0x1F
    #raw 0x1F
    #raw 0x1F
    #raw 0x1F

    Help would be appreciated thanks
     
    Last edited:

    Pharetra

    zzzz
  • 451
    Posts
    12
    Years
    • Seen Apr 22, 2024
    Not again...

    Sorry, this is the Game Development section, and this belongs in the Rom Hacking section.
     

    ubuntupokemoninc

    Hacker/Programmer
  • 7
    Posts
    12
    Years
    • Seen Jul 10, 2011
    I'm sorry, could it be moved by a moderator, sorry to cause trouble.


    The script above is the starter pokemon script, I just don't get it I'm
    not sure whats wrong, thanks

    btw sorry for my noobie start :(
     
    Last edited:

    Putin

    Anspruchsvolle Narr
  • 52
    Posts
    13
    Years
    I see your error (or first error) before even reading through all the way.

    Instead of using the "goto" function to skip most of the code if you already got your starter, you had it redirect to what was just a string of words, the message you were supposed to display. This either reads as nonsense instructions (in which case I believe the editor would not compile anyway), or as a blank instruction, doing nothing (both results would look the same in-game). Which reminds me, to double-check in case that's a problem, too, make sure you copy the offset of the main script to the script call on the guy.

    However, I am not positive that this would actually cause the problem (unless it did not compile at all). In that case, I can't see anything else just from looking at it; However, to solve the problem in question:
    -Add the line "Setflag 0x828" (without quotes) after the "goto" command
    -have the "goto" command point to "@end" instead of "@talk"
    -@end should be:
    #org @end
    release
    end
     

    ubuntupokemoninc

    Hacker/Programmer
  • 7
    Posts
    12
    Years
    • Seen Jul 10, 2011
    I tried a whole new perspective to the starter ad just used a poke ball I the new script to work YAY! but the poke ball disappears,then re-apears when i take a step, here is my new code,

    #dynamic 0x800000

    #org @start
    lock
    faceplayer
    setflag 0x828
    setflag 0x291
    givepokemon 0x7 0x5 0x0 0x0 0x0 0x0
    hidesprite LASTTALKED
    bufferpokemon 0x0 0x7
    preparemsg @talk1
    fanfare 0x13E
    waitfanfare
    release
    end

    #org @talk1
    = [player] found a BADEGG!

    Is there a kill spirit command instead of hide spirit?
     

    Masou Shoujo Haruna

    Don't touch me, I'm sterile
  • 13
    Posts
    12
    Years
    • Seen Dec 14, 2011
    setting a flag after you use hidesprite should permanently hide it if you put that flag in the npc' person ID
     
    Status
    Not open for further replies.
    Back
    Top