1,482
edits
imported>Terra Nova2 m (→Notes: typos) |
m (Convert source tags to syntaxhighlight) |
||
| Line 6: | Line 6: | ||
== Syntax == | == Syntax == | ||
< | <syntaxhighlight lang="papyrus"> | ||
int Function GetItemCount(Form akItem) native | int Function GetItemCount(Form akItem) native | ||
</ | </syntaxhighlight> | ||
== Parameters == | == Parameters == | ||
| Line 21: | Line 21: | ||
== Examples == | == Examples == | ||
< | <syntaxhighlight lang="papyrus"> | ||
if (Game.GetPlayer().GetItemCount(WeapTypeSwordKeyword) == 0) | if (Game.GetPlayer().GetItemCount(WeapTypeSwordKeyword) == 0) | ||
Debug.Trace("Player has no swords") | Debug.Trace("Player has no swords") | ||
endIf | endIf | ||
</ | </syntaxhighlight> | ||
<br/> | <br/> | ||
< | <syntaxhighlight lang="papyrus"> | ||
if (Game.GetPlayer().GetItemCount(SuperSecretPotionReference) == 0) | if (Game.GetPlayer().GetItemCount(SuperSecretPotionReference) == 0) | ||
Debug.Trace("Player doesn't have the super-secret potion") | Debug.Trace("Player doesn't have the super-secret potion") | ||
endIf | endIf | ||
</ | </syntaxhighlight> | ||
== Notes == | == Notes == | ||