AIDef:Action/EventIncreasePorchItemAction: Difference between revisions

From ZeldaMods (Breath of the Wild)
Jump to navigation Jump to search
imported>Leoetlino
(import AI definitions from 1.5.0)
 
imported>Leoetlino
No edit summary
 
(One intermediate revision by the same user not shown)
Line 3: Line 3:
|type=Action
|type=Action
}}
}}
Adds an item to the inventory. The IsGet_ flag is automatically set.
Warnings:
* If the inventory is full, the item is silently dropped.
* If there aren't enough items to remove from the inventory, this function returns without doing anything. A custom loop with HasPorchItem + Demo_IncreasePorchItem is thus required to completely remove an item from the inventory.


== DynamicInstParams ==
== DynamicInstParams ==
Line 8: Line 14:
! Name !! Type !! Default value !! Description
! Name !! Type !! Default value !! Description
|-
|-
| PorchItemName || String ||  ||  
| PorchItemName || String ||  || Item to add to the inventory
|-
|-
| Value || Int ||  ||  
| Value || Int ||  || Number of {PorchItemName} to add (positive to increase, negative to decrease)
|-
|-
|}
|}

Latest revision as of 00:40, 24 March 2019

EventIncreasePorchItemAction
AI definition
Type Action

Adds an item to the inventory. The IsGet_ flag is automatically set.

Warnings:

  • If the inventory is full, the item is silently dropped.
  • If there aren't enough items to remove from the inventory, this function returns without doing anything. A custom loop with HasPorchItem + Demo_IncreasePorchItem is thus required to completely remove an item from the inventory.

DynamicInstParams

Name Type Default value Description
PorchItemName String Item to add to the inventory
Value Int Number of {PorchItemName} to add (positive to increase, negative to decrease)


Derived definitions

Demo_IncreasePorchItem (EventSystemActor)

No overridden parameters.