List of Script Variables: Difference between revisions

Happylappy (talk | contribs)
RRad (talk | contribs)
 
(6 intermediate revisions by 2 users not shown)
Line 241: Line 241:
|Pink Celebi
|Pink Celebi
|D23P11A\um19
|D23P11A\um19
|Used in both Celebi talk scripts for the player to probe deeper about her not minding that she gets to spend more time with grovyle.
|Used in both Celebi talk scripts for the player to probe deeper about her not minding that she gets to spend more time with Grovyle.
|-
|-
|29-40
|29-40
Line 326: Line 326:
|Partner
|Partner
|Various
|Various
|Somewhat unclear. Seems to be some kind of game progress, possibly whether or not the partner has (through some means) told the hero that they want to check back on Sharpedo Bluff for Grovyle. Spawns a trigger in T02P02A if enabled.
|Used during the main story (Main 22, before Brine Cave) to remember if the partner has told the hero they want to check back on Sharpedo Bluff for Grovyle. If enabled, this flag will activate related R-button partner dialogue and prevent the player from triggering the same "Let's go check out Sharpedo Bluff!" dialogue in T01P02A if it has already been triggered in T01P01A.
|-
|-
|122
|122
Line 615: Line 615:


DUNGEON_ENTER_INDEX is a more reliable tracker of the dungeon ID.   
DUNGEON_ENTER_INDEX is a more reliable tracker of the dungeon ID.   
If not 215, PROCESS_SPECIAL_DUNGEON_HAD_REQUEST_DONE will assume no missions were completed without checking DUNGEON_ENTER_INDEX. 


=== 0x28 - DUNGEON_ENTER_MODE ===
=== 0x28 - DUNGEON_ENTER_MODE ===
Line 635: Line 637:
|-
|-
|9
|9
|Escape Orb Used
|Escape Orb Used (Or mission cleared and left mid-dungeon)
|-
|-
|Other
|Other
Line 798: Line 800:


=== 0x3a - FRIEND_SUM ===
=== 0x3a - FRIEND_SUM ===
Unknown
When called by LoadScriptVariableValue(), will always return 1. Seems unused outside of this.


=== 0x3b - UNIT_SUM ===
=== 0x3b - UNIT_SUM ===
Unknown
In a switch case, will return the number of pokemon in the active team. Cannot be written to, only read. Skytemple's Variable reader will mistakenly read this as zero, as the script variable slot itself is unused, and the number of team members is a hardcoded return from LoadScriptVariable.


=== 0x3c - CARRY_GOLD ===
=== 0x3c - CARRY_GOLD ===
Line 822: Line 824:


=== 0x42 - HERO_TALK_KIND ===
=== 0x42 - HERO_TALK_KIND ===
Determines which of kind of dialogue the hero will use. In base game, only 4 and 5 are used for HERO_TALK_KIND, but with something like StarterMenuTool (or QuizMenuTool) these can be assigned to more custom values.  
Determines the kind of dialogue the hero will use. In the base game, only 4 and 5 are used for HERO_TALK_KIND, but with something like StarterMenuTool (or QuizMenuTool) these can be assigned to more custom values.
 
Only 2 line differences exist in the entirety of the base game's used English script. However, HERO_TALK_KIND is more heavily used to switch between masculine and feminine dialogue in other languages, particularly in the Japanese and Spanish scripts, with some lighter use seen in the French and Italian scripts.
{| class="wikitable"
{| class="wikitable"
!Value
!Value
Line 830: Line 834:
|4
|4
|Male Pokemon
|Male Pokemon
|Masculine Pronouns
|Masculine dialogue
|-
|-
|5
|5
|Female/Genderless Pokemon
|Female/Genderless Pokemon
|Feminine Pronouns
|Feminine dialogue
|}
|}


=== 0x43 - PARTNER_TALK_KIND ===
=== 0x43 - PARTNER_TALK_KIND ===
Determines which of kind of dialogue the partner will use. In base game, only 1, 2, and 3 are used for PARTNER_TALK_KIND, but with something like StarterMenuTool (or QuizMenuTool) these can be assigned to more custom values.  
Determines the kind of dialogue the partner will use. In the base game, only 1, 2, and 3 are used for PARTNER_TALK_KIND, but with something like StarterMenuTool (or QuizMenuTool) these can be assigned to more custom values. The base game assigns types 1 and 3 to a list of 10 specific species IDs using the [[Starter List#Partner Personalities (PARTNER_TALK_KIND)|PARTNER_TALK_KIND_TABLE]].
 
While the dialogue differences are generally subtle in the English script, the Japanese and Spanish scripts in particular use this system to switch between distinctly masculine and feminine ways of speaking.
{| class="wikitable"
{| class="wikitable"
!Value
!Value
Line 846: Line 852:
|-
|-
|1
|1
|Squirtle, Totodile, Chimchar, Meowth or Munchlax
|Male Squirtle, Totodile, Chimchar, Meowth or Munchlax
|More "bold" dialogue-wise
|More "bold" dialogue-wise
|No more wimping out. I have to be brave today.
|No more wimping out. I have to be brave today.
|-
|-
|2
|2
|All other Male Species
|Default (all other male species in the base game)
|Less "bold" dialogue-wise
|Less "bold" dialogue-wise
|This is it. I have to steel my courage today.
|This is it. I have to steel my courage today.
|-
|-
|3
|3
|All female Species
|Female Vulpix, Eevee, Chikorita, Torchic or Skitty (all female species in the base game)
|Least "bold" dialogue-wise
|Least "bold" dialogue-wise
|This is it. Today I’m going to be brave.
|This is it. Today I’m going to be brave.
Line 865: Line 871:


=== 0x45 - CONFIG_COLOR_KIND ===
=== 0x45 - CONFIG_COLOR_KIND ===
The aura bow color determined by the personality quiz at the beginning of the game. Only ever used by wigglytuff to determine the color of aura bow given to the player.
The aura bow color determined by the personality quiz at the beginning of the game. Only ever used by Wigglytuff to determine the color of the aura bow given to the player.


=== 0x46 - ROM_VARIATION ===
=== 0x46 - ROM_VARIATION ===
Line 1,014: Line 1,020:


=== 0x5c - EVENT_LOCAL ===
=== 0x5c - EVENT_LOCAL ===
Used as scratch paper by the base game, and is reset between scripts.
Used as scratch paper by the base game, and is reset between acting scripts.


=== 0x5d - DUNGEON_EVENT_LOCAL ===
=== 0x5d - DUNGEON_EVENT_LOCAL ===
Line 1,040: Line 1,046:
Unlikely to be a backup flag. Conveniently sized for item_GetVariable to extract the item ID and metadata.
Unlikely to be a backup flag. Conveniently sized for item_GetVariable to extract the item ID and metadata.


Used somewhere in Sky Peak
Used exclusively by the debug town. Unused in the context of vanilla EoS.


=== 0x65 - ITEM_BACKUP_KUREKURE ===
=== 0x65 - ITEM_BACKUP_KUREKURE ===