Editing
TakeInventory
From Eternity Wiki
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
{{ACSFunction|description=Takes (removes) one or more items from player's inventory. |usage=void TakeInventory(str item_name, int amount) |parameters= *item_name: name of inventory [[item]] or [[power]] to remove *amount: how many to remove. Can be negative, which will remove all. |notes= If ''amount'' is 0, it will do nothing. If not activated by a given player, it will affect all players. For taking power directly by '''Power...''' name, it will reduce by the given tics. If it's infinite (including always berserk), it will just disable it. For taking health, it will never kill a player, just leave him/her at 1% health minimum. For taking ammo effects, it will take the amount multiplied by the pick-up amount. If you want to control exact ammo taking, look them up by the '''artifact''' name in [[EDF]]. For taking power by item effect name, it reduces the availability in tics, by multiplying by how much each pick-up provides. For berserk it always removes the power. For taking weapons by giver name, it removes the weapon and also whatever ammo was provided when picking one up. For taking backpacks, it will remove the ammo bonus, and: *if amount is less than -1 (e.g. -2 or less), then it will take all the ammo as well *if amount is exactly -1, only take away the bonus *if amount is strictly positive, take the ammo-per-backpack multiplied by that amount |id=ACS internal}}
Summary:
Please note that all contributions to Eternity Wiki are considered to be released under the GNU Free Documentation License 1.2 (see
Eternity Wiki:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Template used on this page:
Template:ACSFunction
(
edit
)
Navigation menu
Page actions
Page
Discussion
Read
Edit
History
Page actions
Page
Discussion
More
Tools
Personal tools
Not logged in
Talk
Contributions
Log in
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Search
Tools
What links here
Related changes
Special pages
Page information