Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #dynamic 0xE40000
- #org @start
- lockall
- msgbox @woreoff 0x6
- compare (yourvar) 0x(ValueUsedForRepel)
- if 0x1 goto @repel
- compare (yourvar) 0x(ValueUsedForSuperRepel)
- if 0x1 goto @super
- compare (yourvar) 0x(ValueUsedForMaxRepel)
- if 0x1 goto @max
- releaseall
- end
- #org @max
- checkitem 0x54 0x1
- compare 0x800D 0x1
- if 0x4 goto @YMR
- goto @end
- #org @YMR
- msgbox @use 0x5
- compare 0x800D 0x1
- if 0x1 goto @use3
- releaseall
- end
- #org @use3
- setvar (yourvar) 0x(ValueUsedForMaxRepel)
- sound 0x2F
- msgbox @repelusemax MSG_SIGN
- removeitem 0x53 0x1
- setvar 0x4021 250
- release
- end
- #org @repelusemax
- = [player] used a Max Repel.
- #org @repelusesuper
- = [player] used a Super Repel.
- #org @super
- checkitem 0x53 0x1
- compare 0x800D 0x1
- if 0x4 goto @YSR
- goto @end
- #org @YSR
- msgbox @use 0x5
- compare 0x800D 0x1
- if 0x1 goto @use2
- releaseall
- end
- #org @use2
- setvar (yourvar) 0x(ValueUsedForSuperRepel)
- sound 0x2F
- msgbox @repelusesuper MSG_SIGN
- removeitem 0x53 0x1
- setvar 0x4021 200
- release
- end
- #org @woreoff
- = The Repel's effect wore off[.]
- #org @repel
- checkitem 0x56 0x1
- compare 0x800D 0x1
- if 0x4 goto @YR
- goto @end
- #org @end
- releaseall
- end
- #org @YR
- msgbox @use 0x5
- compare 0x800D 0x1
- if 0x1 goto @use1
- releaseall
- end
- #org @use1
- setvar (yourvar) 0x(ValueUsedForRepel)
- sound 0x2F
- msgbox @repeluse MSG_SIGN
- removeitem 0x56 0x1
- setvar 0x4021 100
- releaseall
- end
- #org @use
- = Would you like to use another one?
- #org @repeluse
- = [player] used a Repel.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement