Thread: [Tutorial] PKSV Extra Scripting Tutorials
View Single Post
  #23    
Old September 7th, 2013 (6:59 PM).
manadhon's Avatar
manadhon manadhon is offline
RTX-008L
     
    Join Date: May 2013
    Location: Khazad-dûm
    Age: 19
    Gender: Male
    Nature: Lax
    Posts: 118
    Well, I took a look at your script, and rewrote it:

    Code:
    #dyn 0x740000
    #org @main
    checkflag 0x253
    if == jump @1
    jump @2
    
    #org @1
    lock
    faceplayer
    message @3
    callstd MSG_NORMAL
    fadescreen FADEOUT_BLACK
    disappear 0x3
    fadescreen FADEIN_BLACK
    setflag 0x251
    release
    end 
    
    #org @2
    lock
    faceplayer
    message @4
    callstd MSG_NORMAL
    release
    end
    
    #org @3
    = You may proceed.
    
    #org @4 
    = I'm sorry, but it's too dangerous\nup ahead without a Pok\emon. Maybe\lyou could borrow one?
    You don't need to use if twice, and lockall and releaseall should only be used when movement is involved (although it does not have a major effect on the script). Showmsg and waitbutton are also unnecessary, unless it's a level script (or something elaborate), so use callstd. Modify the script to your needs, and feel free to ask if you have any further questions/problems.
    __________________
    "You can't lie to the Moon!"

    The (self-appointed) co-leader of H.O.A.G.I.E.
    Reply With Quote