Elise39u / LaravelAvontuur

A remade of my kilk game in larvael
0 stars 0 forks source link

A Npc without a quest can`t work around the dialog system #12

Closed Elise39u closed 6 years ago

Elise39u commented 6 years ago

This is because the app check of the user is allowed to talk to a npc So the app ask about a quest for the check but the npc does not have it So behind the scenes the app crashes and won`t hide the story

Elise39u commented 6 years ago

Solved by adding this piece of code if($status == '[]') { echo json_encode(array("trick" => 'No quest detected', "Status" => "Unknown")); }