AIDef:Action/LinkTagBaseAction: Difference between revisions

From ZeldaMods (Breath of the Wild)
Jump to navigation Jump to search
imported>Leoetlino
imported>Leoetlino
Line 10: Line 10:
| SaveFlag || String ||  || Save flag (optional)
| SaveFlag || String ||  || Save flag (optional)
|-
|-
| MakeSaveFlag || Int || 0 || Which save flag to actually use:
| MakeSaveFlag || Int || 0 || Which save flag to actually use<ref>0x7100D39B50</ref><ref>0x7100D39964</ref>:
* 0: Use the specified SaveFlag.
* 0: Use the specified SaveFlag.
* 1: Use <code>Clear_%s</code> % (current map name).
* 1: Use <code>Clear_%s</code> % (current map name).
Line 20: Line 20:
| NoChangeSignal || Bool || False ||  
| NoChangeSignal || Bool || False ||  
|-
|-
| SaveFlagOnOffType || Int || 0 || Which action should be taken for boolean LinkTags with IncrementSave set to false:
| SaveFlagOnOffType || Int || 0 || Which action should be taken for boolean LinkTags with IncrementSave set to false:<ref>0x7100D38820</ref>{{check}}
* 0: Set or clear the flag depending on the LinkTag type. (Set for LinkTagAnd, LinkTagNAnd, LinkTagXOr; Clear for LinkTagOr, LinkTagNOr and in any other case)
* 0: Set or clear the flag depending on the LinkTag type. (Set for LinkTagAnd, LinkTagNAnd, LinkTagXOr; Clear for LinkTagOr, LinkTagNOr and in any other case)
* 1: Set the flag.
* 1: Set the flag.

Revision as of 21:51, 23 February 2019

LinkTagBaseAction
AI definition
Type Action

MapUnitInstParams

Name Type Default value Description
SaveFlag String Save flag (optional)
MakeSaveFlag Int 0 Which save flag to actually use[1][2]:
  • 0: Use the specified SaveFlag.
  • 1: Use Clear_%s % (current map name).
  • 2: Use Open_%s % (closest dungeon name, based on the player's position).
  • 3: Use MainField_%s_%u % (object UnitConfigName, object HashId).
IncrementSave Bool False Increment the GameData flag instead of setting or clearing it. If true, the GameData flag must be an s32 flag.
NoChangeSignal Bool False
SaveFlagOnOffType Int 0 Which action should be taken for boolean LinkTags with IncrementSave set to false:[3][check]
  • 0: Set or clear the flag depending on the LinkTag type. (Set for LinkTagAnd, LinkTagNAnd, LinkTagXOr; Clear for LinkTagOr, LinkTagNOr and in any other case)
  • 1: Set the flag.
  • 2: Clear the flag.

StaticInstParams

Name Type Default value Description
CheckType Int LinkTag type[4]:
  • 0: And
  • 1: Or
  • 2: NAnd
  • 3: NOr
  • 4: XOr
  • 5: Count
  • 6: Pulse
  • 7: None

Derived definitions

Root (LinkTagXOr)

Name Value
CheckType 4

Root (LinkTagOr)

Name Value
CheckType 1

Root (LinkTagNOr)

Name Value
CheckType 3

Root (LinkTagAnd)

Name Value
CheckType 0

Root (LinkTagNAnd)

Name Value
CheckType 2
  1. 0x7100D39B50
  2. 0x7100D39964
  3. 0x7100D38820
  4. LinkTag::init (Switch 1.5.0 0x7100D379F8)