mirror of
https://forgejo.xatacraft.ru/Sunshine/mkxp-sunshine.git
synced 2026-08-20 05:49:55 +00:00
Name checks
Checks for the name the player inputs, so that niko can have unique dialogue for each situation.
This commit is contained in:
parent
d884cbc2a6
commit
da01da31e7
1 changed files with 24 additions and 0 deletions
|
|
@ -7,6 +7,30 @@ module Script
|
|||
logpos($game_player.y, $game_player.real_y, $game_player.direction == 2)
|
||||
end
|
||||
|
||||
def self.is_name_swear
|
||||
test_string = $game_oneshot.player_name.downcase
|
||||
if ["fuck", "shit", "ass", "cock", "damn", "penis", "tiddy", "titty", "cunt", "fag", "whore"].any? { |swear| test_string.include? swear }
|
||||
return true
|
||||
end
|
||||
return false
|
||||
end
|
||||
|
||||
def self.is_name_niko
|
||||
test_string = $game_oneshot.player_name.downcase
|
||||
if test_string == "niko"
|
||||
return true
|
||||
end
|
||||
return false
|
||||
end
|
||||
|
||||
def self.is_name_like_niko
|
||||
test_string = $game_oneshot.player_name.downcase
|
||||
if ["nico", "nikko", "nicco", "nikoh", "nicoh"].any? { |name| test_string.include? name }
|
||||
return true
|
||||
end
|
||||
return false
|
||||
end
|
||||
|
||||
def self.eve_x(name)
|
||||
for event in $game_map.events.values
|
||||
if event.name == name
|
||||
|
|
|
|||
Loading…
Reference in a new issue