Modificações:Dados de Eventos

Fonte: Stardew Valley Wiki
Saltar para a navegação Saltar para a pesquisa
Robin building.png
“Ainda tenho muito trabalho a fazer”
— Robin

Tradução incompleta

Este artigo ou seção não foi completamente traduzido para o português. Você está convidado a ajudar na sua construção editando-o
Última edição por Margotbean em 2022-05-28 18:41:04.

Índice

Esta página explica como o jogo armazena e analisa os dados do evento. Este é um guia avançado para desenvolvedores de mod.

Fonte

Os eventos são armazenados em Content\Data\Events\*.xnb (um arquivo por local), que pode ser desempacotado usando XNB Extract.

Aqui estão os dados brutos para eventos de salão a partir de 1.3.27 para referência (excluindo cabeçalhos XNB):

Código 
40/f Elliott 1000/p Gus/t 1500 2200: "playful/11 20/farmer 14 24 0 Elliott -30 -30 0 Clint 18 22 2 Marnie 9 22 3 Pam 7 18 1 Lewis 8 22 1 Pierre 4 22 2 Demetrius 3 23 1 Gus 14 18 2 Emily 16 18 3/skippable/move farmer 0 -3 3/faceDirection Pierre 1 true/move farmer -3 0 0/faceDirection Pierre 2 true/move farmer 0 -1 0/faceDirection Marnie 0 true/faceDirection Gus 3/speak Gus \"Oi.  anoto o seu pedido.\"/faceDirection Gus 2/move Emily 2 0 1/faceDirection Marnie 3 true/pause 800/move Emily -2 0 0/pause 1000/faceDirection Clint 3 true/move Emily 2 0 1/warp Elliott 14 24/playSound doorClose/pause 500/move Elliott 0 -3 3/faceDirection farmer 2 true/move Elliott -2 0 0/move Elliott 0 -1 0/faceDirection farmer 1/faceDirection Elliott 3/speak Elliott \"Oi, @! Que surpresa agradável!#$b#Eu ia parar para relaxar após uma sessão de oito horas de escrita.$h\"/pause 400/faceDirection Elliott 1/speak Elliott \"Garçom! Duas de suas melhores cervejas, por favor!^Garçom! Dê-me sua melhor cerveja. E traga um pouco de vinho para esta senhorita!\"/faceDirection Gus 3/faceDirection farmer 0/speak Gus \"...$u\"/move Gus 3 0 0/move Gus 0 -1 0/faceDirection Emily 2/playSound openBox/pause 400/playSound Milking/move Pam -6 0 0/move Gus 0 1 3/move Gus -5 0 2/faceDirection Elliott 0/pause 500/speak Gus \"Aqui está, senhor.$u\"/pause 500/faceDirection Elliott 3/faceDirection farmer 1/speak Elliott \"$q 28376 null#Espere. Proponho um brinde! À...#$r 28376 25 event_toast4#Á Vila Pelicanos!#$r 28376 50 event_toast2#À nossa amizade!#$r 28376 -10 event_toast1#À nossa saúde#$r 28376 -50 event_toast3#A seu fim!\"/faceDirection Elliott 2/faceDirection farmer 2/pause 900/showFrame Elliott 16/animate Elliott false false 120 16 17 18 19 19 18 18 19 19 18 18 19 19 18 18 19 19 18 18 17 16/pause 500/farmerEat 346/pause 900/pause 1100/stopAnimation farmer/faceDirection farmer 1/speak Elliott \"*Hic*... Que coisa forte...$h\"/pause 800/animate Elliott false false 400 20 21 22 21 20 21 22 21 20 21 22 21 20 21 22 21 16/pause 1000/faceDirection farmer 1/pause 800/faceDirection farmer 2/animate farmer false true 100 102 103/pause 1000/globalFade/viewport -1000 -1000/pause 600/stopAnimation farmer/end warpOut" #!String
    96/f Gus 1000/f Pam 500/p Gus: "jaunty/10 21/farmer -100 -100 0 Gus 10 21 2 Pam -101 -101 0/skippable/pause 200/emote Gus 28/pause 500/playSound doorClose/warp farmer 14 24/pause 500/faceDirection Gus 1 true/move farmer 0 -3 3/speak Gus \"Ah, olá, colega.^Oi, @.\"/pause 500/faceDirection Gus 2/move farmer -3 0 2/pause 800/faceDirection farmer 3/pause 400/emote farmer 8/pause 700/speak Gus \"Aaah... eu estava dando uma olhada no faturamento do mês passado... e não está nada bom, @.$s#$b#E o pior... e eu odeio dizer isso, porque ela é minha amiga... é a Pam! Ela não paga  semanas!...$s#$b#Mas não consigo cobrá-la. Sei que ela vai ficar ofendida, e não quero ferir os sentimentos dela.$s\"/pause 600/faceDirection Gus 1/speak Gus \"@, você precisa me ajudar!$s\"/stopMusic/pause 500/playSound doorClose/warp Pam 14 24/move Pam 0 -3 3/faceDirection Gus 1 true/faceDirection farmer 1/emote Gus 16/speak Pam \"Olá!$h#$b#Gus... Estou com muita sede, se é que você me entende.\"/emote Gus 28/speak Gus \"Err... Bem, está certo, Pam.$s\"/emote Gus 28/pause 700/emote Pam 8/pause 400/speak Pam \"$q 207 null#@, o que está acontecendo aqui?#$r 207 -50 event_credit1#Você precisa pagar a sua conta agora!#$r 208 15 event_credit2#O saloon não está indo bem financeiramente\"/pause 400/faceDirection Pam 1/emote Pam 12/speak Pam \"...$u#$b#Bem, então acho que é melhor eu pagar essa conta.$s\"/move Pam -2 0 0/move Pam 0 -1 3/move Pam -2 0 2/faceDirection Gus 0/faceDirection farmer 3/playSound money/pause 500/speak Gus \"Obrigado, Pam!$h\"/pause 500/faceDirection Gus 1/speak Gus \"E obrigado, @.$u\"/pause 500/faceDirection Gus 0/speak Gus \"Agora, deixa eu pegar a sua cerveja, Pam.$h\"/friendship Gus 50/end dialogue Gus \"Obrigado por sua ajuda, @. Esse dinheiro vai ser de grande ajuda para o saloon.\"" #!String
    97/f Clint 750/t 1900 2300/d Tue Wed Thu Fri Sat Sun: "none/4 18/farmer 14 24 0 Clint 4 19 2 Emily 10 11 0 Gus 15 18 1 Shane 7 18 1/skippable/move farmer 0 -3 3/emote Clint 28/pause 500/move Clint 0 -1 3/move Clint -3 0 0/pause 500/playSound openBox/pause 150/playSound shiny4/pause 400/playMusic desolate/move Clint 3 0 2/move Clint 0 1 2/move farmer -3 0 0/move farmer 0 -1 3/faceDirection Shane 2 true/move farmer -3 0 3/faceDirection Shane 1 true/move farmer -3 0 3/faceDirection Clint 1/speak Clint \"Oi, @... se importaria de se juntar a mim?\"/pause 400/faceDirection farmer 0/pause 800/faceDirection farmer 3/faceDirection Clint 2/speak Clint \"Deixe-me dizer o que está na minha cabeça.$u#$b#Tenho uma sorte terrível com mulheres, @... Aaah...$s#$b#Sou um cara muito legal se você me conhecer, juro!$u\"/pause 500/faceDirection farmer 0/emote farmer 28/pause 500/faceDirection farmer 3/speak Clint \"Todas as garotas parecem gostar de você, @...^Você é uma garota, @...\"/speak Clint \"$q 211 null#Tem alguma dica?^Que tipo de conselho você pode me dar?#$r 211 25 event_advice1#Impressione as mulheres com sua força e charme#$r 211 25 event_advice1#Aja loucamente, para manter o suspense#$r 211 0 event_advice2#Aja naturalmente... seja você mesmo#$r 211 50 event_advice1#Trate mulheres da mesma forma que homens\"/speed Emily 4/move Emily -6 0 2/speed Emily 2/move Emily 0 4 2/doAction 4 16/playSound openBox/stopMusic/move Emily 0 3 1/move Emily 1 0 2/move Emily 0 1 3/pause 400/pause 700/speak Emily \"Oi, Clint. Que posso fazer por você hoje à noite?$h\"/pause 600/faceDirection Clint 1/pause 200/speak Clint \"Sim!\"/pause 300/speak Clint \"Err... Quero dizer, quero o Queijo Grande. Com molho extra, por favor.$s#$b#...$u\"/faceDirection Clint 3/faceDirection Emily 2/pause 300/faceDirection Clint 2/speak Emily \"Oi, @.\"/pause 300/faceDirection farmer 0/faceDirection Clint 1/speak Clint \"Err... *caham*. O-obrigado, Emily. Por... pegar meu pedido.#$b#Hã... Emily? Eu estava... *gulp*... Estava me perguntando se...$h\"/pause 300/faceDirection Emily 3/emote Emily 8/pause 400/speak Emily \"Sim, Clint?$u\"/pause 500/emote Clint 28/pause 1200/speak Clint \"... Deixa para lá.$s\"/faceDirection Clint 0/playMusic sadpiano/pause 300/faceDirection Emily 2/pause 300/faceDirection Emily 3/pause 500/move Emily 0 -1 1/move Emily 1 0 1/faceDirection Shane 3/speak Emily \"Oi, Shane! Aqui está a sua bebida.$h\"/pause 300/faceDirection Shane 1/pause 400/addObject 8 17 346 1/playSound woodyStep/pause 400/faceDirection Shane 3/pause 300/faceDirection Clint 1/speak Shane \"Obrigado, Emily!$h#$b#Então... Como está indo o seu turno?\"/speak Emily \"Está indo bem! Obrigado por perguntar, Shane!$h#$b#Você tem novas histórias de galinha para mim?\"/pause 600/emote Clint 28/pause 500/faceDirection Clint 2/pause 800/speak Clint \"*Aaah...*$s#$b#Estou perdido...$s\"/end warpOut" #!String
    911526/f Alex 2500/t 1900 2200/n joshMessage: "gusviolin/-1000 -1000/farmer 5 5 1 Gus 10 6 2 Alex 9 5 3 Emily 9 17 2/skippable/showFrame 117/showFrame Alex 39/positionOffset farmer 12 8/positionOffset Alex -12 0/animate Gus false true 723 16 17/viewport 7 4 true/pause 23000/stopAnimation Gus/pause 1000/faceDirection Gus 3/speak Alex \"Obrigado, Gus. Isso foi ótimo.\"/move Gus 0 1 1/move Gus 1 0 2/move Gus 0 1 2/doAction 11 9/move Gus 0 3 1/move Gus 12 0 3 true/speak Alex \"Isso é muito legal... Nunca jantei aqui antes.\"/pause 1000/emote Alex 40/speak Alex \"Hã... então... Reservei esta sala particular para que pudéssemos falar...$l\"/warp Emily 11 11 true/playSound woodyStep/move Emily 0 -4 3/move Emily -4 0 0/move Emily 0 -1 0/speak Emily \" Um linguine com creme de cogumelo para o sr. @.^E tenho uma salada de couve e nozes para a senhorita.#$b#E um bife grelhado para Alex.^E um bife grelhado para o cavalheiro.\"/playSound woodyHit/specificTemporarySprite joshDinner/speak Alex \"Obrigado.\"/move Emily 4 0 2/move Emily 0 5 1/move Emily 11 0 1 true/speak Alex \"Então, o que eu queria dizer era...$9\"/playMusic musicboxsong/speak Alex \"*Gulp.*$s\"/pause 600/speak Alex \"Bem, quando nos vimos pela primeira vez, logo me senti atraído por você. Foi confuso... Nunca senti isso por ninguém.$l^Quando conheci você pela primeira vez, achei você uma gracinha.$l#$b#Ficava pensando 'não é certo se sentir assim por outro homem'.$l^Normalmente, quando gosto de alguém, supero muito rápido.$l\"/pause 800/speak Alex \"Mas meu coração estava me dizendo outra coisa.^Com você, essa atração  crescia.$l\"/pause 400/emote Alex 40/pause 600/question fork1 \"#Sinto o mesmo.#Sinto muito... Não sinto isso por você.\"/pause 400/fork rejectJosh/speak Alex \"...$l#$b#Não acredito que demorou tanto para dizermos isso um para o outro.$l\"/emote Alex 32/pause 800/animate Alex false false 400 40 41 41 40 41 41 40 41 41 40 41 41 40/pause 800/playSound eat/pause 800/playSound eat/pause 800/playSound eat/pause 800/playSound gulp/pause 400/speak Alex \"Huum... esse bife está maravilhoso. Você consegue sentir esse cheiro?$10\"/eyes 1 -4000/animate Alex false false 400 40 41 41 40 41 41 40/pause 1000/specificTemporarySprite alexDiningDog/playSound dogWhining/pause 1000/globalFade/viewport -1000 -1000/pause 6000/end dialogue Alex \"...$l\"" #!String
    rejectJosh: "pause 100/playMusic none/shake Alex 2000/emote Alex 28/speak Alex \"... Ah...$s#$b#Eu... eu sinto muito se deixei você sem graça...$s\"/pause 2000/speak Alex \"Já não estou mais com fome...$s\"/viewport move 1 1 5000/globalFade/viewport -1000 -1000/pause 4000/end dialogue Alex \"...$l\"" #!String
    195099/f Shane 2500/f Sebastian 2500/f Sam 2500/f Harvey 2500/f Alex 2500/f Elliott 2500/o Abigail/o Penny/o Leah/o Emily/o Maru/o Haley/o Shane/o Harvey/o Sebastian/o Sam/o Elliott/o Alex/e 911526/e 528052/e 9581348/e 43/e 384882/e 233104/i 446/k 195013: "playful/-1000 -1000/farmer 27 19 1 Sam 36 20 1 Sebastian 37 19 2 Harvey 39 19 2 Shane 40 17 2 Elliott 41 19 2 Alex 42 20 3/animate Shane false true 200 20 20 20 20 20 20 20 20 20 20 21 22 23 24 24 24 24 23 22 21 20 20 20 20/pause 1000/message \"Por algum motivo, você decidiu colocar a mão no bolso...\"/pause 500/message \"Você tocou no  de coelho e sentiu um alívio...\"/move farmer 5 0 1 true/viewport 37 19 true/move false/pause 500/faceDirection Sam 3 true/faceDirection Elliott 3 true/faceDirection Harvey 3 true/faceDirection Alex 3 true/faceDirection Shane 3 true/faceDirection Sebastian 3 true/textAboveHead Sam \"Ei!\"/textAboveHead Alex \"O que houve?\"/textAboveHead Shane \"Ah, ei\"/pause 2000/move farmer 3 0 1/emote farmer 32/pause 500/speak Harvey \"Você chegou bem na hora do primeiríssimo torneio de bola 8 da Vila Pelicano!\"/pause 500/speak Elliott \"Não se preocupe, eu também nunca joguei.$h\"/pause 500/speak Shane \"É fácil, você  precisa colocar mostarda na bola branca...$h\"/pause 500/fade/viewport -1000 -1000/pause 1500/message \"Você jogou uma rodada de sinuca com os rapazes.\"/pause 1000/message \"Sebastian ganhou, claro... mas foi bem divertido!\"/pause 500/end" #!String
    195013/f Shane 2500/f Sebastian 2500/f Sam 2500/f Harvey 2500/f Alex 2500/f Elliott 2500/o Abigail/o Penny/o Leah/o Emily/o Maru/o Haley/o Shane/o Harvey/o Sebastian/o Sam/o Elliott/o Alex/e 911526/e 528052/e 9581348/e 43/e 384882/e 233104/k 195099: "playful/-1000 -1000/farmer 27 19 1 Sam 36 20 1 Sebastian 37 19 2 Harvey 39 19 2 Shane 40 17 2 Elliott 41 19 2 Alex 42 20 3/animate Shane false true 200 20 20 20 20 20 20 20 20 20 20 21 22 23 24 24 24 24 23 22 21 20 20 20 20/move farmer 5 0 1 true/viewport 37 19 true/move false/pause 500/startJittering/faceDirection farmer 2 true/animate farmer false true 100 94/jump farmer/pause 2000/stopAnimation farmer/showFrame farmer 0/stopJittering/playSound thudStep/faceDirection farmer 3 true/showFrame farmer 7 true/startJittering/faceDirection Sam 3 true/faceDirection Elliott 3 true/faceDirection Harvey 3 true/faceDirection Alex 3 true/faceDirection Shane 3 true/faceDirection Sebastian 3 true/textAboveHead Sam \"Não tão rápido!\"/textAboveHead Alex \"Espera!\"/textAboveHead Shane \"Pare!\"/pause 3000/stopJittering/showFrame farmer 6 true/pause 500/faceDirection farmer 1/move farmer 3 0 1/playMusic none/emote farmer 28/pause 500/speak Sam \"Nunca achou que encontraria todos os seus 'namorados' em um mesmo lugar,  @?$a\"/pause 500/speak Harvey \"Você nos enganou, fez com que achássemos que nos amava...$s^@... Eu achei que você queria se casar e criar uma família comigo... O que eu fiz de errado?$s\"/pause 500/speak Shane \"O último pedacinho de esperança que eu tinha foi completamente destruído... Obrigado, @. Está feliz agora?$s\"/pause 500/speak Alex \"@? Eu achei que... Achei que nós éramos 'perfeitos um para o outro'... Mas você estava me usando?$s^Por que está olhando para *mim*? Você acha que eu vou te salvar?$a\"/pause 500/speak Elliott \"Pela primeira vez eu fiquei sem palavras... $a\"/pause 500/playMusic wedding/speak Sam \"Bem, não vamos aceitar mais abusos!$a^Agora nós sabemos da verdade! E não vamos tolerar isto!$a\"/textAboveHead Alex \"É isso mesmo!\"/pause 500/speak Sebastian \"Bem? O que você tem a dizer em sua defesa?$a\"/pause 1000/question fork1 \"#Sinto muito... eu errei.#Pessoal, calma! Eu posso explicar...#\"/fork choseToExplain/pause 500/textAboveHead Alex \"Claro...\"/pause 500/speak Shane \"Boa tentativa, mas não foi o suficiente...$a\"/pause 1000/playMusic none/speak Sam \"...então tomamos uma decisão... não é, galera?$u\"/pause 500/speak Harvey \"...sim.$s\"/speak Elliott \"Com certeza.$a\"/pause 1000/jump Sam/jump Sebastian/jump Elliott/jump Shane/jump Alex/jump Harvey/pause 1000/speak Sam \"Nós vamos ignorar você!$a\"/faceDirection farmer 2 true/animate farmer false true 100 94/jump farmer/playSound slimedead/pause 2000/fade/viewport -2000 -2000/dump guys 3/end warpOut" #!String
    choseToExplain: "pause 100/textAboveHead Shane \"Eu duvido...\"/pause 500/resetVariable/question fork2 \"#Vocês cobravam muito de mim! Era muito difícil dizer 'não'!#Pierre me pressionou! Ele queria vender mais buquês!#(Começa a chorar)/pause 100/fork crying/textAboveHead Sam \"Mentira!\"/textAboveHead Alex \"Sim!\"/speak Elliott \"Não culpe outras pessoas por seus erros! Você  está perdendo ainda mais o nosso respeito...$a\"/pause 1000/faceDirection Sam 2/playMusic none/speak Sam \"...Acho que tomamos uma decisão... certo, rapazes?$u\"/pause 500/speak Harvey \"...sim.$s\"/speak Sebastian \"Com certeza.$a\"/faceDirection Sam 3/pause 1000/jump Sam/jump Sebastian/jump Elliott/jump Shane/jump Alex/jump Harvey/pause 1000/jump Sam/jump Sebastian/jump Elliott/jump Shane/jump Alex/jump Harvey/pause 1000/jump Sam/jump Sebastian/jump Elliott/jump Shane/jump Alex/jump Harvey/pause 1000/speak Sam \"Nós vamos ignorar você!$a\"/faceDirection farmer 2 true/animate farmer false true 100 94/jump farmer/playSound slimedead/pause 2000/fade/viewport -2000 -2000/dump guys 4/end warpOut" #!String
    crying: "pause 100/faceDirection farmer 0/emote farmer 28/pause 1000/emote Harvey 12 true/emote Sebastian 12 true/emote Shane 12 true/emote Sam 12 true/emote Elliott 12 true/emote Alex 12 true/speak Harvey \"Isso não vai funcionar! Você não vai se aproveitar de nossa compaixão desta vez!$a\"/speak Alex \"Vou assumir que este é  mais um jogo seu...$a^Típico...$a\"/pause 100/speak Sebastian \"Você precisa assumir a responsabilidade pelo que fez...$a\"/pause 1000/faceDirection Sam 2/playMusic none/speak Sam \"...Acho que tomamos uma decisão... certo, rapazes?$u\"/pause 500/speak Harvey \"...sim.$s\"/speak Sebastian \"Com certeza.$a\"/faceDirection Sam 3/pause 1000/jump Sam/jump Sebastian/jump Elliott/jump Shane/jump Alex/jump Harvey/pause 1000/jump Sam/jump Sebastian/jump Elliott/jump Shane/jump Alex/jump Harvey/pause 1000/jump Sam/jump Sebastian/jump Elliott/jump Shane/jump Alex/jump Harvey/pause 1000/speak Sam \"Nós vamos ignorar você!$a\"/faceDirection farmer 2 true/animate farmer false true 100 94/jump farmer/playSound slimedead/pause 2000/fade/viewport -2000 -2000/dump guys 4/end warpOut" #!String

Pré-condições do evento

Cada evento possui uma chave que inclui um ID de evento e todas as condições prévias. As pré-condições do evento incluem qualquer número dos seguintes argumentos (separado por /). Por exemplo, as pré-condições do evento de corações do Clint no Saloon são 97/f Clint 750/t 1900 2300/d Tue Wed Thu Fri Sat Sun, cujo (conforme as tabelas abaixo) significa evento #97, requer 3 corações com Clint, entre 7pm e 11pm na segunda-feira.

Notas:

  • 'Nome do NPC' significa seu nome interno em inglês, não o nome de exibição traduzível.
  • A maioria dos textos diferencia maiúsculas de minúsculas (e.g., Mon não é o mesmo que mon).
  • A logística do jogo para esses códigos está em GameLocation::checkEventPrecondition.

Contexto

Estes verificam a hora atual, data, clima, etc. Eles não são específicos do jogador.

sintaxe condição prévia
A <dialogo ID> O evento de diálogo especial com o ID fornecido está não em andamento. Isso pode ser um evento ID personalizado, mas esses são os do jogo IDs: cc_Begin, cc_Boulder, cc_Bridge, cc_Bus, cc_Complete, cc_Greenhouse, cc_Minecart, dumped_Girls, dumped_Guys, Introduction, joja_Begin, pamHouseUpgrade, pamHouseUpgradeAnonymous, secondChance_Girls, secondChance_Guys, willyCrabs.
F Hoje não é dia de festival.
d <dia da semana> Hoje não é um dos dias especificados (pode especificar vários dias). Valores válidos: Mon Tue Wed Thu Fri Sat Sun.
r <número> Uma verificação de probabilidade aleatória, onde <número> é a probabilidade entre 0 e 1 (e.g., 0.2 for 20% chance).
v <nome> Esse especifico NPC não está invisível (independentemente de estarem na tela).
w <clima> Clima atual <clima>. Valores válidos: rainy, sunny.
y <ano> Se <ano> é 1, deve estar no ano 1. Caso contrário, ano deve ser pelo menos este valor.
z <estação> A estação atual "não" é <estação>.

Jogador Atual

Esses verificam o jogador atual (aquele que está jogando esta instância do jogo).

sintaxe condição prévia
D <nome> Atual jogador está namorando o nome do NPC dado.
J Atual jogador finalizou o Armazém Joja.
M <número> O jogador atual tem ao menos esse tanto de dinheiro.
S <ID nota secreta> Atual jogador viu o Nota secreta com tal ID.
a <x> <y> O jogador atual está nessa posição do ladrilho.
b <número> O jogador atual chegou ao piso inferior das Minas pelo menos esse tanto de vezes.
c <número> O jogador atual tem pelo menos tantos slots de inventário livre.
e <evento ID> O jogador atual viu o evento especificado (pode conter multiplos IDs de evento).
f <nome> <número> Jogador atual tem pelo menos <número> pontos de amizade com o <nome> NPC. Pode especificar vários pares de nomes e números, caso em que o jogador deve atender a todos eles.
g <gênero> Atual jogador é do gênero específico (male or female).
h <pet> Atual jogador não tem um pet, e suas preferências <pet> ("cat" or "dog").
i <item ID> Atual jogador tem o item específico em seu inventário.
j <number> Atual jogador jogou mais que <número> dias.
k <evento ID> Jogador atual não viu esse evento (Pode conter multíplos IDs de evento).
l <carta ID> Jogador atual não recebeu essa carta postal ou sinalizador não postal.
m <número> O jogador atual ganhou pelo menos esse tanto dinheiro (independentemente de quanto ele tenha atualmente).
n <carta ID> O jogador atual recebeu essa carta postal ou sinalizador não postal.
o <nome> Jogador atual não está casado com este NPC.
p <nome> O NPC especificado está na localização do jogador atual.
q <dialogo ID> O jogador atual escolheu a resposta dada em um diálogo. Pode conter vários IDs de diálogo; nesse caso, todos devem ter sido selecionados.
s <item ID> <número> O jogador atual enviou pelo menos <number> do item especificado. Pode especificar vários pares de itens e números; nesse caso, todos eles devem ser atendidos.
t <min tempo> <max tempo> A hora atual está entre as horas especificadas.
u <dia do mês> O dia atual do mês é um dos valores especificados (pode conter vários dias).
x <evento ID> <carta ID> Para o jogador atual: marque o ID especificado como visto, adicione a letra especificada ao e-mail de amanhã e marque falso (para que o evento não seja acionado).

Jogador anfitrião

Eles verificam o jogador host (aquele que está executando uma fazenda multijogador, não necessariamente o jogador atual). Se for single-player, este é sempre o jogador atual.

sintaxe condição prévia
C O jogador anfitrião não terminou o Centro Comunitário ou ainda não viu a grande reabertura.
H O jogador atual é o jogador anfitrião.
Hl <carta ID> O jogador anfitrião não recebeu essa carta de correio ou sinalizador de não correio.
Hn <carta ID> O jogador anfitrião recebeu essa carta de correio ou sinalizador de não correio.
*l <carta ID> O jogador anfitrião e o jogador atual não receberam essa carta ou sinalizador de não correio.
*n <carta ID> O jogador anfitrião e o jogador atual receberam essa carta ou sinalizador de não correio.

Event scripts

Formato Básico

Todo evento tem um valor This specifies what happens in the event — everything from lighting and music to NPC movement and dialogue. The script consists of multiple commands separated by / characters.

Todo script deve começar com três comandos nessa ordem exata:

index syntax description
0 <music ID> The background music or ambient background track to play. Can be changed later using playMusic <newmusic>, or stopped entirely using stopMusic. This can also be none (which stops any existing music and uses the default ambient background noise for the location), or continue (which keeps playing the current background song).
1 <x> <y> The tile coordinates the camera should center on at the start of the event.
2 <npc ID> <x> <y> <direction> Initialises an NPC's starting tile position and direction. The NPC ID can be farmer or an NPC name like Abigail.

Those three commands may be followed by any sequence of the following commands:

command description
addBigProp <x> <y> <object ID> Adds an object at the specified tile from the TileSheets\Craftables.png sprite sheet.
addConversationTopic <ID> Starts an active dialogue event with the given ID and a length of 4 days.
addCookingRecipe <recipe> Adds the specified cooking recipe to the player.
addCraftingRecipe <recipe> Adds the specified crafting recipe to the player.
addFloorProp <prop index> <x> <y> [solid width] [solid height] [display height] Add a non-solid prop from the current festival texture. Default solid width/height is 1. Default display height is solid height.
addLantern <row in texture> <x> <y> <light radius> Adds a glowing temporary sprite at the specified tile from the Maps\springobjects.png sprite sheet. A light radius of 0 just places the sprite.
addMailReceived <letter ID> Set a letter as received.
addObject <x> <y> <row in texture> [layer] Adds a temporary sprite at the specified tile from the Maps\springobjects.png sprite sheet.
addProp <prop index> <x> <y> [solid width] [solid height] [display height] Add a solid prop from the current festival texture. Default solid width/height is 1. Default display height is solid height.
addQuest <quest ID> Add the specified quest to the quest log.
addTemporaryActor <character> <sprite width> <sprite height> <tile x> <tile y> <facing> [breather] [Character|Animal|Monster] [animal name] Add a temporary actor. 'breather' is boolean. The category determines where the texture will be loaded from, default is Character. Animal name only applies to animal.
addToTable <x> <y> <object ID> Places on object on the furniture at a position. If the location is FarmHouse, then it will always be placed on the initial table.
addTool <Sword|Wand> Adds either a Battered Sword or Return Scepter to the player's inventory. The Battered Sword is unobtainable in vanilla and is incomplete and not implemented.
advancedMove <npc> <loop> <x y>... Set multiple movements for an NPC. You can set True to have NPC walk the path continuously. Example: /advancedMove Robin false 0 3 2 0 0 2 -2 0 0 -2 2 0/
ambientLight <r> <g> <b> Modifies the ambient light level, with RGB values from 0 to 255. Note that it works by removing colors from the existing light ambience, so ambientLight 1 80 80 would reduce green and blue and leave the light with a reddish hue.
animalNaming Show the animal naming menu if no other menu is open. Uses the current location as Coop. Appears to only work for 'hatched' animals.
animate <actor> <flip> <loop> <frame duration> <frames...> Animate a named actor, using one or more <frames> from their sprite sheet, for <frame duration> milliseconds per frame. <flip> indicates whether to flip the sprites along the Y axis; <loop> indicates whether to repeat the animation until stopAnimation is used.
attachCharacterToTempSprite <actor> Attach an actor to the most recent temporary sprite.
awardFestivalPrize Awards the festival prize to the winner for the easter egg hunt and ice fishing contest.
awardFestivalPrize <item type> Awards the specified item to the player. Possible item types are "pan", "sculpture", "rod", "sword", "hero", "joja", and "slimeegg".
broadcastEvent TODO: Explain broadcastEvent.
catQuestion Trigger question about adopting your pet.
cave Trigger the question for the farm cave type. This will work again later, however changing from bats to mushrooms will not remove the mushroom spawning objects.
changeLocation <location> Change to another location and run the remaining event script there.
changeMapTile <layer> <x> <y> <tile index> Change the specified tile to a particular value.
changePortrait <npc> <portrait> Change the NPC's portrait to be from "Portraits/<actor>_<sprite&gt".
changeSprite <actor> <sprite> Change the actor's sprite to be from "Characters/<actor>_<sprite>".
changeToTemporaryMap <map> [pan] Change the location to a temporary one loaded from the map file specified by <map>. The [pan] argument indicates the tile coordinates to pan to (defaults to 0, 0).
changeYSourceRectOffset <npc> <offset> Changes the NPC's vertical texture offset. Example: changeYSourceRectOffset Abigail 96 will offset her sprite sheet, showing her looking left instead of down. This persists for the rest of the event. This is only used in Emily's Clothing Therapy event to display the various outfits properly.
characterSelect Seemingly unused. Sets Game1.gameMode to 5 and Game1.menuChoice = 0.
cutscene <cutscene> Activate a cutscene. See cutscene list. (TODO: Pull list from my event editor)
doAction <x> <y> Acts as if the player had clicked the specified x/y coordinate and triggers any relevant action. It is commonly used to open doors from inside events, but it can be used for other purposes. If you use it on an NPC you will talk to them, and if the player is holding an item they will give that item as a gift. doAction activates objects in the main game world (their actual location outside of the event), so activating NPCs like this is very tricky, and their reaction varies depending on what the player is holding.
dump <group> Starts the special "cold shoulder" and "second chance" dialogue events for the given group (women if group is girls and men if it is anything else.) The cold shoulder event has an id of dumped_Girls or dumped_Guys and lasts 7 days; the second chance event has an id of secondChance_Girls or secondChance_Guys and lasts 14 days. During open beta testing of version 1.3 there was a second parameter which determined the amount of hearts lost, but support for that parameter was removed before release.
elliotbooktalk Elliot book talk.
emote <actor> <emote ID> Make the given NPC name perform an emote, which is a little icon shown above the NPC's head. Emotes are stored in Content\TileSheets\emotes.xnb (see list of emotes).
end Ends the current event by fading out, then resumes the game world and places the player on the square where they entered the zone. All end parameters do this by default unless otherwise stated.
end bed Same as end, but warps the player to the x/y coordinate of their most recent bed. This does not warp them to the farmhouse, only to the x/y coordinate of the bed regardless of map.
end beginGame Used only during the introduction sequence in the bus stop event. It sets the game mode to playingGameMode, warps the player to the farmhouse (9, 9), ends the current event, and starts a new day.
end credits Not used in any normal events. Clears debris weather, changes the music to wedding music, sets game mode to creditsMode and ends the current event.
end dialogue <NPC> <"Text for next chat"> Same as end, and additionally clears the existing NPC dialogue for the day and replaces it with the line(s) specified at the end of the command. Example usage: end dialogue Abigail "It was fun talking to you today.$h"
end dialogueWarpOut <NPC> <"Text for next chat"> See end dialogue and end warpOut.
end invisible <NPC> Same as end, and additionally turns the specified NPC invisible (cannot be interacted with until the next day).
end invisibleWarpOut <NPC> See end invisible and end warpOut.
end newDay Ends both the event and the day (warping player to their bed, saving the game, selling everything in the shipping box, etc).
end position <x> <y> Same as end, and additionally warps the player to the map coordinates specified in x y.
end warpOut Same as end, and additionally finds the first warp out of the current location (second warp if male and in the bathhouse), and warps the player to its endpoint.
end wedding Used only in the hardcoded wedding event. Changes the character's clothes back to normal, sets Lewis' post-event chat to "That was a beautiful ceremony. Congratulations!$h", and warps the player to their farm.
extendSourceRect <actor> reset Resets the actors sprite.
extendSourceRect <actor> <horizontal> <vertical> [ignoreUpdates] TODO: Explain Character.extendSourceRect
eyes <eyes> <blink> Change the player's eyes.
faceDirection <actor> <direction> [continue] Make a named NPC face a direction. If no parameter is supplied for [continue], the game will pause.
fade [fadeOut] If 'fadeOut' is not specified, it will fade in. (?)
farmerAnimation <anim> Briefly sets the farmer's sprite to <anim> for a variable (depending on sprite) interval. Only used once in vanilla events. Using showFrame farmer <sprite> twice (to set a new frame and back) is more powerful as it lets you control the interval using pause n.
farmerEat <object ID> Make the player eat an object
fork <event ID> [req] End the current command script and starts a different script with the given ID, but only if the [req] condition is met. The [req] condition can be a mail ID or dialogue answer ID; if not specified, it checks if the specialEventVariable1 variable was set (e.g., by a question command). The new script should have the same format as a normal event script, but without the mandatory three start fields.
friendship <npc> <amount> Add the given number of friendship points with the named NPC. (There are 250 points per heart.)
globalFade [speed] Fade to black at a particular speed (default 0.007). If no speed is specified, the event will continue immediately; otherwise, it will continue after the fade is finished. The fade effect disappears when this command is done; to avoid that, use the viewport command to move the camera off-screen.
globalFadeToClear [speed] Fade to clear (unfade?) at a particular speed (default 0.007). If no speed is specified, the event will continue immediately; otherwise, it will continue after the fade is finished.
glow <r> <g> <b> <hold> Make the screen glow once, fading into and out of the <r> <g> <b> values over the course of a second. If <hold> is true it will fade to and hold that color until stopGlowing is used.
grandpaCandles Do grandpa candles
grandpaEvaluation Do grandpa evaluation
grandpaEvaluation2 Do grandpa evaluation (manually resummoned)
halt Make everyone stop.
hospitaldeath
itemAboveHead [type] Show an item above the player's head. The [type] can be "pan", "hero", "sculpture", "joja", "slimeEgg", "rod", "sword", or "ore". If no item is specified, then they will 'hold' nothing?
jump <actor> [intensity] Make a the named NPC jump. The default intensity is 8.
loadActors <layer> Load the actors from a layer in the map file.
mail <letter ID> Queue a letter to be received tomorrow (see Content\Data\mail.xnb for available mail).
message "<text>" Show a dialogue box (no speaker). See dialogue format for the <text> format.
minedeath TODO.
move <actor> <x> <y> <facing> <continue> Make a named NPC move by the given tile offset from their current position (along one axis only), and face the given direction when they're done. To move along multiple axes, you must specify multiple move commands. By default the event pauses while a move command is occurring, but if <continue> is set to true the movement is asynchronous and will run simultaneously with other event commands.
pause <duration> Pause the game for the given number of milliseconds.
playMusic <track> Play the specified music track ID. If the track is 'samBand', the track played will change depend on certain dialogue answers (76-79).
playSound <sound> Play a given sound ID from the game's sound bank.
playerControl Give the player control back.
positionOffset <actor> <x> <y> Offset the position of the named NPC by the given number of pixels. This happens instantly, with no walking animation.
proceedPosition <actor> TODO: Explain
question null "<question>#<answer1>#<answer2>" Show a dialogue box with some answers and an optional question. When the player chooses an answer, the event script continues with no other effect.
question fork<answer index> "<question>#<answer 0>#<answer 1>#..." Show a dialogue with some answers and an optional question. When the player chooses the answer matching the fork<answer index> (like fork0 for the first answer), the specialEventVariable1 variable is set. Usually followed by a fork command.
removeItem <object ID> Remove the first of an object from a player's inventory.
removeObject <x> <y> Remove the prop at a position.
removeQuest <quest ID> Remove the specified quest from the quest log.
removeSprite <x> <y> Remove the temporary sprite at a position.
removeTemporarySprites Remove all temporary sprites.
removeTile <x> <y> <layer> Remove a tile from the specified layer.
resetVariable Set the first event variable to false.
rustyKey Gives the player the rusty key. (Sewer key)
screenFlash <alpha> Flashes the screen white for an instant. An alpha value from 0 to 1 adjusts the brightness, and values from 1 and out flashes pure white for x seconds.
setRunning Set the player as running.
shake <actor> <duration> Shake the named NPC for the given number of milliseconds.
showFrame farmer flip Flip the farmer's current sprite along the Y axis. TODO: Behavior with farmer looks strange?
showFrame <actor> <frame ID> Set the named NPC's current frame in their Content\Characters\*.xnb spritesheet. Note that setting the farmer's sprite only changes parts of the sprite (some times arms, some times arms and legs and torso but not the head, etc). To rotate the whole sprite, use faceDirection farmer <0/1/2/3> first before modifying the sprite with showFrame.
showRivalFrame <frame> Set the 'rival' actor's sprite to a specific frame.
skippable Allow skipping this event.
speak <character> "<text>" Show dialogue text from a named NPC; see dialogue format.
specificTemporarySprite <sprite> [other params] Shows the given temporary sprite. Parameters change depending on the sprite.
speed farmer <modifier> Add a speed modifier to the farmer. TODO: for the next action only?
speed <actor> <speed> Sets the named NPC's speed (default speed is 3). Not applicable to the farmer. TODO: for the next action only?
splitSpeak <actor> "<text>" Dialogue, but chosen based on previous answer. ('~' is the separator used.)
startJittering Make the player start jittering.
stopAdvancedMoves Stop movement from advancedMove.
stopAnimation farmer Stop the farmer's current animation.
stopAnimation <actor> <end frame> Stop the named NPC's current animation. Not applicable to the farmer.
stopGlowing Make the screen stop glowing.
stopJittering Make the player stop jittering.
stopMusic Stop any currently playing music.
stopRunning Make the farmer stop running.
stopSwimming <actor> Make an actor stop swimming.
swimming <actor> Make an actor start swimming.
switchEvent <event ID> Changes the current event (ie. event commands) to another event in the same location.
taxvote Trigger voting for or against a 3% shipping tax. (No effect on game?)
temporarySprite <x> <y> <row in texture> <animation length> <animation interval> <flipped> <loop count> Create a temporary sprite with the given parameters.
textAboveHead <actor> "<text>" Show a small text bubble over the named NPC's head with the given text; see dialogue format.
tutorialMenu Show the tutorial menu if no other menu is open.
updateMinigame <event data> Send an event to the current minigame.
viewport move <x> <y> <duration> Pan the the camera in the direction (and with the velocity) defined by x/y for the given duration in milliseconds. Example: "viewport move 2 -1 5000" moves the camera 2 pixels right and 1 pixel up for 5 seconds.
viewport <x> <y> [true [unfreeze]|clamp [true|unfreeze]] Instantly reposition the camera to center on the given X, Y tile position. TODO: explain other parameters.
waitForKey <key> <message on finish> TODO: Explain
waitForOtherPlayers Wait for other players (vanilla MP).
warp <actor> <x> <y> Warp the named NPC to a position to the given X, Y tile coordinate. This can be used to warp characters off-screen.
weddingSprite <frame> Sets the actor known as 'WeddingOutfits' to a particular frame.

Some commands are broken or unusable:

command description
grabObject <object ID> Broken. Triggers a generic animation. The item ID is ignored and the item isn't added.
end busIntro Supposed to start the bus intro scene, presumably the one that was cut before release.

Directions

When event commands refer to a facing direction, they'll use one of these values:

Value Meaning
0 looking up
1 looking right
2 looking down
3 looking left

Dialogue format

See Modding:Dialogue#Format.

See also