Linha 21: |
Linha 21: |
| | | |
| ==Pré-condições do evento== | | ==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 <tt>/</tt>). Por exemplo, as pré-condições do evento de corações do Clint's Saloon são <code>97/f Clint 750/t 1900 2300/d Tue Wed Thu Fri Sat Sun</code>, which (per the tables below) means ''event #97, requires 3 hearts with Clint, between 7pm and 11pm on Monday''. | + | 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 <tt>/</tt>). Por exemplo, as pré-condições do evento de corações do Clint no Saloon são <code>97/f Clint 750/t 1900 2300/d Tue Wed Thu Fri Sat Sun</code>, which (per the tables below) significa ''evento #97, requer 3 corações com Clint, entre 7pm e 11pm na segunda-feira''. |
| | | |
− | Notes:
| + | Notas: |
− | * 'NPC name' means their internal English name, not the translatable display name. | + | * 'Nome do NPC' significa seu nome interno em inglês, não o nome de exibição traduzível. |
| * Most text is case-sensitive (e.g. <tt>Mon</tt> is not the same as <tt>mon</tt>). | | * Most text is case-sensitive (e.g. <tt>Mon</tt> is not the same as <tt>mon</tt>). |
| * The game's logic for these codes is in <tt>GameLocation::checkEventPrecondition</tt>. | | * The game's logic for these codes is in <tt>GameLocation::checkEventPrecondition</tt>. |
Linha 170: |
Linha 170: |
| | | |
| ==Event scripts== | | ==Event scripts== |
− | ===Basic format=== | + | ===Formato Básico=== |
− | Each event has a value which is the event script. 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 <tt>/</tt> characters.
| + | 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 <tt>/</tt> characters. |
| | | |
− | Every script must start with three commands in this exact order:
| + | Todo script deve começar com três comandos nessa ordem exata: |
| | | |
| {| class="wikitable" | | {| class="wikitable" |