Skip to content

Commit

Permalink
Add an extra alert with random dialogue misconfigurations
Browse files Browse the repository at this point in the history
  • Loading branch information
EnAppelsin committed Jul 17, 2018
1 parent 1a09dc9 commit ff6b344
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Randomiser/RandomDialogue.lua
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,11 @@ if IsModEnabled("RandomiserDialogue") then
if hasFolder then
GetFiles(RandomDialoguePool, "/GameData/RandomDialogue/", ".rsd", 1)
RandomDialoguePoolN = #RandomDialoguePool
DebugPrint("Loaded " .. RandomDialoguePoolN .. " dialogue files.")
if RandomDialoguePoolN == 0 then
Alert("RandomiserDialogue was enabled, but no dialogue files were loaded.")
else
DebugPrint("Loaded " .. RandomDialoguePoolN .. " dialogue files.")
end
else
Alert("RandomiserDialogue was enabled, but no RandomDialogue folder was found.")
end
Expand Down

0 comments on commit ff6b344

Please sign in to comment.