Continue story and add random dialogues

This commit is contained in:
Shadow15510 2021-11-23 17:33:02 +01:00
parent 1e85c94d27
commit fd3f504247
2 changed files with 6 additions and 2 deletions

View File

@ -35,6 +35,8 @@ maps = (
# Asci functions
def npc(data, stat):
from random import choice
npc_data = (
asgard_npc,
vanaheim_npc,
@ -59,7 +61,8 @@ def npc(data, stat):
event = npc_data[data[1]](data, stat)
if not event:
return [0, "Hmm ?"]
msg = ("Hmm ?", "Besoin de quelque chose ?", "Vous cherchez quelqu'un ?", "Vous etes... ?", "Oui ?")
return [0, choice(msg)]
elif type(event) == tuple:
issue = fight(stat, event[0], event[1])

View File

@ -97,7 +97,8 @@ def niflheim_npc(data, stat):
if coords == (57, 31):
if stat[8] == 2: return {
7: [1, "Oui ? [VOUS LUI DONNEZ LA LETTRE, L'ESPRIT VOUS REGARDA SANS PARAITRE ETONNE ET S'EN EMPARA.] Notre... Ami commun vous envoie de loin. [SUR CES MOTS L'ESPRIT SE RETOURNA ET TRAVERSA LE SOL DE TERRE, VOUS LAISSANT DESEMPARE.]"],
"base": [0, "[VOUS REGARDEZ LE SOL SANS COMPRENDRE.]"],
7: [1, "Asufaith, besoin de quelque chose ? [VOUS LUI DONNEZ LA LETTRE, L'ESPRIT VOUS REGARDA SANS PARAITRE ETONNE ET S'EN EMPARA.] Notre... Ami commun vous envoie de loin. [SUR CES MOTS L'ESPRIT SE RETOURNA ET TRAVERSA LE SOL DE TERRE, VOUS LAISSANT DESEMPARE.]"],
}