Editing EDF item effects and inventory/Weapons-branch
From Eternity Wiki
Jump to navigationJump to search
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
'''REMOVE THIS WARNING AT A LATER DATE: Much of this page is in-development features, from inventory-branch-2016, and its successor: weapons-branch. This exists solely for the purpose of easily moving this article back over when weapons-branch is to be merged back into master, and should under no circumstances be used as a reference.''' | |||
Define what happens when an item is picked up and used (and eventually, dropped from the inventory - this is not complete yet). | Define what happens when an item is picked up and used (and eventually, dropped from the inventory - this is not complete yet). | ||
Line 17: | Line 19: | ||
usesound <str> // sound made when item is used | usesound <str> // sound made when item is used | ||
useeffect <str> // name of item effect to use for activation | useeffect <str> // name of item effect to use for activation | ||
[+-]undroppable // if +, cannot be dropped from inventory | [+-]undroppable // if +, cannot be dropped from inventory | ||
Line 23: | Line 24: | ||
[+-]keepdepleted // if +, will remain in inventory with amount of zero | [+-]keepdepleted // if +, will remain in inventory with amount of zero | ||
[+-]fullamountonly // if +, cannot pickup unless full amount is needed | [+-]fullamountonly // if +, cannot pickup unless full amount is needed | ||
// artifacttype determines what sort of artifact this is. | // artifacttype determines what sort of artifact this is. | ||
Line 60: | Line 60: | ||
[+-]alwayspickup // item is picked up even when unneeded (e.g. Armor Bonus) | [+-]alwayspickup // item is picked up even when unneeded (e.g. Armor Bonus) | ||
[+-] | [+-]bonus // if +, is a bonus (adds to current armor type without | ||
// changing the protective qualities) | |||
} | } | ||
===ammoeffect=== | ===ammoeffect=== | ||
Line 88: | Line 88: | ||
weapongiver <name> | weapongiver <name> | ||
{ | { | ||
weapon <str> // Name of a weaponinfo to give to the player | weapon <str> // Name of a weaponinfo to give to the player | ||
ammogiven <ammo>, <amount> [, <dropammount> [, <dmammount> [, <coopweaponsstay>]]] // Ammo type artifact given, and the amounts | ammogiven <ammo>, <amount> [, <dropammount> [, <dmammount> [, <coopweaponsstay>]]] // Ammo type artifact given, and the amounts | ||
// given based on how it was picked up. If the | // given based on how it was picked up. If the | ||
// last three are left blank, only "amount" is used. | // last three are left blank, only "amount" is used. | ||
} | } |