View Single Post
  #22985    
Old October 18th, 2012 (12:25 PM).
borisjo's Avatar
borisjo borisjo is offline
Scripter (XSE, pokescript)
     
    Join Date: Mar 2011
    Gender: Male
    Posts: 9
    Quote:
    Originally Posted by Jambo51 View Post
    Level script type 5 triggers every time you refresh the OW screen (with, perhaps the exception of special 0x8E). There isn't one which only triggers after battle, but if you write your script well, that won't matter too much.
    Thank you for replying! But I have no idea how to make this levelscript type 5 to work, I've tried many things but the screen stays black when I come back to the map after a battle. I hope you know how I can solve this? I have added the script here:

    Spoiler:
    #dynamic 0x3C9E86

    #org @start
    setvar 0x7001 0x1
    setvar 0x8004 0xEC
    special2 0x800D 0x17C
    compare 0x800D 0x1
    if 0x1 goto @have
    setvar 0x8004 0xCC
    special2 0x800D 0x17C
    compare 0x800D 0x1
    if 0x1 goto @have
    setvar 0x8004 0xD7
    special2 0x800D 0x17C
    compare 0x800D 0x1
    if 0x1 goto @have
    release
    end

    #org @have
    lock
    msgbox @1 0x2
    fadescreen 0x1
    fadescreen 0x0
    warp 0x0 0x05 0xFF 0x1A 0x0E
    applymovement 0xFF @move

    #org @1
    = Attention! We have our\nlast member: \vh01!

    #org @move
    #raw 0x12
    #raw 0x12
    #raw 0x12
    #raw 0x12
    #raw 0x12
    #raw 0x12
    #raw 0x12
    #raw 0x12
    #raw 0xFE