2023-11-26 02:09:56 -08:00
interact = [
[ 39 , 39 , "outer_king_palace" ]
]
npc = [
2023-12-24 22:39:14 -08:00
[ 8 , 66 , "j" , "j" , "jjakke" , "none" , "green_black" ]
2023-11-26 02:09:56 -08:00
]
map_script = "" "
if ( exists $ game_vars { jjakke } and $ game_vars { jjakke } = = 4 ) {
2023-12-24 22:39:14 -08:00
$ npcs { j } - > [ 5 ] = 'black_red' ;
2023-11-26 02:09:56 -08:00
}
"" "
[ npc_movements ]
none = [ 'w' ]
[ objects ]
outer_king_palace = "teleport('outer_king_palace', 9, 35) "
jjakke = "" "
if ( not exists $ game_vars { jjakke } ) {
$ game_vars { jjakke } = 1 ;
dialog ( 'King J.J. Akke' , qq ( Ah , yes a visitor to the crown , how quaint . ) ) ;
}
elsif ( $ game_vars { jjakke } = = 1 ) {
$ game_vars { jjakke } = 2 ;
dialog ( 'King J.J. Akke' , qq ( Hmm ? You ' re still here ? Ah yes , of course . \ nHere take this HP Potion . \ nNow go away , PEASENT . I mean , valued fellow rat . ) ) ;
item ( 'hp potion' ) ;
}
elsif ( $ game_vars { jjakke } = = 2 ) {
if ( exists $ game_vars { mom } and $ game_vars { mom } = = 4 ) { # ie, mom tasks you to kill the king
if ( $ hands eq 'lil grabbies' ) {
$ game_vars { jjakke } = 3 ;
dialog ( 'King J.J. Akke' , qq ( What 's that? You intend to kill me? ... Hahaha!\nYou can' t hurt me with your lil grabbies ! \ nYou better * SAVE * your life ! ) ) ; # fernando *will* die
} else {
$ game_vars { jjakke } = 3 ;
dialog ( 'King J.J. Akke' , qq ( What ' s that ? You intend to kill me ? . . . \ nWell , bring it ON ! ! ) ) ;
}
}
else {
dialog ( 'King J.J. Akke' , qq ( Go home little rat ; I ' ve given you items . \ nGo tell mommy what a great King I am . ) ) ;
}
}
elsif ( $ game_vars { jjakke } = = 3 ) {
battle ( 'King J.J. Akke' ) ;
quest_desc_add ( qq ( I killed the king for mom . I should go talk to her . ) , 'mom_quest' ) ;
if ( $ hands eq 'Cool Sword' ) {
dialog ( 'King J.J. Akke' , qq ( Dang . . . that ' s a cool sword . \ nx_x ) ) ;
}
else {
dialog ( 'King J.J. Akke' , qq ( I can ' t believe I died to such a . . . lame sword ! \ nx_x ) ) ;
}
2023-12-24 22:39:14 -08:00
$ npcs { j } - > [ 5 ] = 'black_red' ;
2023-11-26 02:09:56 -08:00
$ game_vars { jjakke } = 4 ;
$ game_vars { mom } = 5 ;
2023-12-24 22:39:14 -08:00
draw_npcs ( ) ; # force a redraw of King J.J. Akke
2023-11-26 02:09:56 -08:00
}
"" "