2023-11-26 02:09:56 -08:00
|
|
|
interact = [
|
|
|
|
[ 26, 32, "mountain_village" ],
|
|
|
|
]
|
|
|
|
npc = [
|
2023-12-24 22:39:14 -08:00
|
|
|
[14,33,"S", "cool_sword","cool_sword", "none", "magenta_black"]
|
2023-11-26 02:09:56 -08:00
|
|
|
]
|
|
|
|
map_script = """
|
|
|
|
if (exists $game_vars{cool_sword} and $game_vars{cool_sword} == 1) {
|
2023-12-24 22:39:14 -08:00
|
|
|
delete $npcs{cool_sword};
|
2023-11-26 02:09:56 -08:00
|
|
|
}
|
|
|
|
"""
|
|
|
|
[npc_movements]
|
|
|
|
none = ['w']
|
|
|
|
|
|
|
|
[objects]
|
|
|
|
mountain_village = "teleport('mountain_village', 8, 44)"
|
|
|
|
cool_sword = """
|
|
|
|
if (exists $game_vars{cool_sword}) {
|
|
|
|
dialog('',qq(You're not cool enough to pull this sword.\nMaybe the next life? (1/3 chance after all)));
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
my $chance = int rand 3; # maxs at 2; 0, 1, 2
|
|
|
|
if ($chance == 2) {
|
|
|
|
dialog('Cool Sword',qq(Woah. You're Cool. I'll let you wield me));
|
|
|
|
item(qq(Cool Sword));
|
2023-12-24 22:39:14 -08:00
|
|
|
delete $npcs{cool_sword};
|
2023-11-26 02:09:56 -08:00
|
|
|
$game_vars{cool_sword} = 1;
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
dialog('Cool Sword',qq(You're not Cool. ... This life. Be gone.));
|
|
|
|
$game_vars{cool_sword} = 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
"""
|