Editing EDF item effects and inventory/Weapons-branch

From Eternity Wiki
Jump to navigationJump 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.

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:
Define what happens when an item is picked up and used (and eventually, dropped from the inventory - this is not complete yet).
'''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 eventually, used or dropped from the inventory - this is not complete yet).


There are many different types of item effect definitions:
There are many different types of item effect definitions:
{{Backto|EDF item effects and inventory}}
===artifact===
===artifact===
An artifact is an item which, when collected, goes into the player's inventory.
An artifact is an item which, when collected, goes into the player's inventory.
Line 14: Line 14:
                       // -1 if this field should not apply at all
                       // -1 if this field should not apply at all
   sortorder      <int> // key used for sorting the player's inventory
   sortorder      <int> // key used for sorting the player's inventory
   icon          <str> // name of icon graphic for invbar
   icon          <str> // name of icon graphic for invbar (currently unused)
   usesound      <str> // sound made when item is used
   usesound      <str> // sound made when item is used (currently unused)
   useeffect      <str> // name of item effect to use for activation
   useeffect      <str> // name of item effect to use for activation (unused)
  useaction      <action function> // codepointer and arguments called e.g. A_GauntletAttack(1)
    
    
   [+-]undroppable      // if +, cannot be dropped from inventory
   [+-]undroppable      // if +, cannot be dropped from inventory
Line 23: Line 22:
   [+-]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
  [+-]noshareware      // if +, non-shareware
    
    
   // artifacttype determines what sort of artifact this is.   
   // artifacttype determines what sort of artifact this is.   
Line 59: Line 57:
                       // armor, the item cannot be picked up at all
                       // armor, the item cannot be picked up at all
                        
                        
   [+-]alwayspickup    // item is picked up even when unneeded (e.g. Armor Bonus)
   [+-]alwayspickup    // item is picked up even when unneeded (ie Armor Bonus)
   [+-]additive        // if +, adds to the current amount of armor
   [+-]bonus          // if +, is a bonus (adds to current armor type without
  [+-]setabsorption  // if +, sets absorption values (savefactor & savedivisor)
                      // changing the protective qualities)
  }
  }
===ammoeffect===
===ammoeffect===
Line 88: Line 86:
  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
  // Note that you can specify as many ammogiven properties as you want in a single weapongiver
   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.
  }
  }
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: