Blifecondition: Difference between revisions

From ZeldaMods (Breath of the Wild)
Jump to navigation Jump to search
imported>BravelyPeculiar
No edit summary
imported>BravelyPeculiar
No edit summary
Line 4: Line 4:
'''.blifecondition''' files in [[Content/Actor|Actor]]/LifeCondition contain spawn and despawn conditions for actors.
'''.blifecondition''' files in [[Content/Actor|Actor]]/LifeCondition contain spawn and despawn conditions for actors.
</onlyinclude>
</onlyinclude>
== Parameter objects ==
== Parameter objects ==
=== InvalidWeathers ===
=== InvalidWeathers ===
Weathers that will cause the actor not to spawn.
Weathers that will cause the actor not to spawn.
{|class="wikitable"
{| class="wikitable"
! Key !! Type !! Description
! Key  
! Type  
! Description
|-
|-
| {{AampIndexedParam|key=Item%03d|start_idx=1}} || str64 || Weather name (e.g. HeavyRain)
| {{AampIndexedParam|key=Item%03d|start_idx=1}}  
| str64  
| Weather name (e.g. HeavyRain)
|}
|}


=== InvalidTimes ===
=== InvalidTimes ===
Time types that will cause the actor not to spawn.
Time types that will cause the actor not to spawn.
{|class="wikitable"
{| class="wikitable"
! Key !! Type !! Description
! Key  
! Type  
! Description
|-
|-
| {{AampIndexedParam|key=Item%03d|start_idx=1}} || str64 || Time name (e.g. Morning_B)
| {{AampIndexedParam|key=Item%03d|start_idx=1}}  
| str64  
| Time name (e.g. Morning_B)
|}
|}


=== DisplayDistance ===
=== DisplayDistance ===
{|class="wikitable"
{| class="wikitable"
! Key !! Type !! Description
! Key  
! Type  
! Description
|-
|-
| Item || float || Maximum distance to player (actor will despawn if the distance is greater than this value)
| Item  
| float  
| Maximum distance to player (actor will despawn if the distance is greater than this value)
|}
|}


=== AutoDisplayDistanceAlgorithm ===
=== AutoDisplayDistanceAlgorithm ===
{|class="wikitable"
{| class="wikitable"
! Key !! Type !! Description
! Key  
! Type  
! Description
|-
|-
| Item || str || Distance calculation algorithm (only "Bounding.Y" is supported {{check}})
| Item  
| str  
| Distance calculation algorithm (only "Bounding.Y" is supported {{check}})
|}
|}


=== YLimitAlgorithm ===
=== YLimitAlgorithm ===
{|class="wikitable"
{| class="wikitable"
! Key !! Type !! Description
! Key  
! Type  
! Description
|-
|-
| Item || str || Limit type ("NoLimit" or "LimitYDiff" {{check}})
| Item  
| str  
| Limit type ("NoLimit" or "LimitYDiff" {{check}})
|}
|}


=== DeleteWeathers ===
=== DeleteWeathers ===
Weathers that will cause the actor to despawn.
Weathers that will cause the actor to despawn.
{|class="wikitable"
{| class="wikitable"
! Key !! Type !! Description
! Key  
! Type  
! Description
|-
|-
| {{AampIndexedParam|key=Item%03d|start_idx=1}} || str64 || Weather name (e.g. HeavyRain)
| {{AampIndexedParam|key=Item%03d|start_idx=1}}  
| str64  
| Weather name (e.g. HeavyRain)
|}
|}


=== DeleteTimes ===
=== DeleteTimes ===
Time types that will cause the actor to despawn.
Time types that will cause the actor to despawn.
{|class="wikitable"
{| class="wikitable"
! Key !! Type !! Description
! Key  
! Type  
! Description
|-
|-
| {{AampIndexedParam|key=Item%03d|start_idx=1}} || str64 || Time name (e.g. Noon_A)
| {{AampIndexedParam|key=Item%03d|start_idx=1}}  
| str64  
| Time name (e.g. Noon_A)
|}
|}


== Examples ==
== Examples ==
=== Landmark10km ===
=== Landmark10km ===
<source lang="yaml">
<source lang="yaml">
Line 90: Line 121:
[[Category:File extensions]]
[[Category:File extensions]]
[[Category:File extensions (AAMP)]]
[[Category:File extensions (AAMP)]]
[[Category:Actor paramater files]]

Revision as of 17:33, 18 September 2018

blifecondition
Format AAMP
Version 0
Type xml
This article is about the structure in general. For actual values, check the GameROM or the pseudo-source.

.blifecondition files in Actor/LifeCondition contain spawn and despawn conditions for actors.


Parameter objects

InvalidWeathers 

Weathers that will cause the actor not to spawn.

Key Type Description
Item%03d str64 Weather name (e.g. HeavyRain)

InvalidTimes 

Time types that will cause the actor not to spawn.

Key Type Description
Item%03d str64 Time name (e.g. Morning_B)

DisplayDistance 

Key Type Description
Item float Maximum distance to player (actor will despawn if the distance is greater than this value)

AutoDisplayDistanceAlgorithm 

Key Type Description
Item str Distance calculation algorithm (only "Bounding.Y" is supported [check])

YLimitAlgorithm 

Key Type Description
Item str Limit type ("NoLimit" or "LimitYDiff" [check])

DeleteWeathers 

Weathers that will cause the actor to despawn.

Key Type Description
Item%03d str64 Weather name (e.g. HeavyRain)

DeleteTimes 

Time types that will cause the actor to despawn.

Key Type Description
Item%03d str64 Time name (e.g. Noon_A)

Examples

Landmark10km

!io
version: 0
type: xml
param_root: !list
  objects:
    DisplayDistance: !obj {Item: 10000.0}
    AutoDisplayDistanceAlgorithm: !obj {Item: Bounding.Y}
    YLimitAlgorithm: !obj {Item: NoLimit}
  lists: {} 

Animal_Night

!io
version: 0
type: xml
param_root: !list
  objects:
    InvalidWeathers: !obj {Item001: !str64 HeavyRain, Item002: !str64 HeavySnow, Item003: !str64 ThunderRain}
    InvalidTimes: !obj {Item001: !str64 Morning_B, Item002: !str64 Noon_A, Item003: !str64 Noon_B,
      Item004: !str64 Evening_A}
    DisplayDistance: !obj {Item: 0.0}
    AutoDisplayDistanceAlgorithm: !obj {Item: Bounding.Y}
    YLimitAlgorithm: !obj {Item: NoLimit}
  lists: {}