#  ![](https://www.realm667.com/media/kunena/topic_icons/realm667_repo/user/rep_approved.png) \[UPDATE\] Blood Amulet

##

- **Blue Shadow**
- ![Blue Shadow's Avatar](https://www.realm667.com/media/kunena/core/svg/person.svg) Topic Author
- Administrator
- ![Administrator](https://www.realm667.com/media/kunena/ranks/rank_20_barrel.png)

 Less More- Posts: 1131
-
-
-

   8 years 3 months ago [\#6910](#6910) by Blue Shadow  *[\[UPDATE\] Blood Amulet](https://www.realm667.com/forum/closed-submissions/1124-update-blood-amulet#6910 "Updated submission:

Changes:

* Converted the code from DECORATE + ACS to ZScript.
* The item operates on one of two modes, with #2 being the default:

* Ammo is given for all supported ammo types by the item (original behavior).
* Ammo is given for ammo types used by the weapon the player is equipped with.

* Reduced the ammo gain by half.
* The sustained damage is now the actual damage the player received, and not the difference in their health between now and the previous tic.

* The item ignores self-inflicted damage.
* While active, the item's icon is displayed on the HUD.

* Disabled the screen blend.
* The item is no longer rendered fully bright.

* Utilized the LANGUAGE lump for the pickup message and tag.
* In addition to the description in the tag, the item's name is also included.

Download:

https://www.dropbox.com/s/qmxnam2ifos5iig/BloodAmulet.zip?dl=1")* was created by *Blue Shadow*

 Updated submission: [ Blood Amulet](https://www.realm667.com/index.php/en/item-store-mainmenu-169-61042/powerups-a-artifacts-mainmenu-170-4162/1522-blood-amulet)

Changes: - Converted the code from DECORATE + ACS to ZScript.
- The item operates on one of two modes, with #2 being the default:

    1. Ammo is given for all supported ammo types by the item (original behavior).
    2. Ammo is given for ammo types used by the weapon the player is equipped with.
- Reduced the ammo gain by half.
- The sustained damage is now the actual damage the player received, and not the difference in their health between now and the previous tic.
- The item ignores self-inflicted damage.
- While active, the item's icon is displayed on the HUD.
- Disabled the screen blend.
- The item is no longer rendered fully bright.
- Utilized the LANGUAGE lump for the pickup message and tag.
- In addition to the description in the tag, the item's name is also included.

Download:

https://www.dropbox.com/s/qmxnam2ifos5iig/BloodAmulet.zip?dl=1

Please [Log in](https://www.realm667.com/component/users/login?return=aHR0cHM6Ly93d3cucmVhbG02NjcuY29tL2ZvcnVtL2Nsb3NlZC1zdWJtaXNzaW9ucy8xMTI0LXVwZGF0ZS1ibG9vZC1hbXVsZXQ=&Itemid=2662) or [Create an account](https://www.realm667.com/component/users/registration?Itemid=2662) to join the conversation.

- **Gothic**
- ![Gothic's Avatar](https://www.realm667.com/media/kunena/avatars/resized/size144/users/avatar320.png?1619787674)
- Moderator
- ![Moderator](https://www.realm667.com/media/kunena/ranks/rank_20_barrel.png)

 Less More- Posts: 1329
-
-
-

   5 years 11 months ago [\#8571](#8571) by Gothic  Replied by *Gothic* on topic *[\[UPDATE\] Blood Amulet](https://www.realm667.com/forum/closed-submissions/1124-update-blood-amulet#8571 "Updated submission:

Changes:

* Converted the code from DECORATE + ACS to ZScript.
* The item operates on one of two modes, with #2 being the default:

* Ammo is given for all supported ammo types by the item (original behavior).
* Ammo is given for ammo types used by the weapon the player is equipped with.

* Reduced the ammo gain by half.
* The sustained damage is now the actual damage the player received, and not the difference in their health between now and the previous tic.

* The item ignores self-inflicted damage.
* While active, the item's icon is displayed on the HUD.

* Disabled the screen blend.
* The item is no longer rendered fully bright.

* Utilized the LANGUAGE lump for the pickup message and tag.
* In addition to the description in the tag, the item's name is also included.

Download:

https://www.dropbox.com/s/qmxnam2ifos5iig/BloodAmulet.zip?dl=1")*

 Seems to be working fine.
Also, are LANGUAGE lumps allowed? I though that was up to the user to define.

Please [Log in](https://www.realm667.com/component/users/login?return=aHR0cHM6Ly93d3cucmVhbG02NjcuY29tL2ZvcnVtL2Nsb3NlZC1zdWJtaXNzaW9ucy8xMTI0LXVwZGF0ZS1ibG9vZC1hbXVsZXQ=&Itemid=2662) or [Create an account](https://www.realm667.com/component/users/registration?Itemid=2662) to join the conversation.

- **Blue Shadow**
- ![Blue Shadow's Avatar](https://www.realm667.com/media/kunena/core/svg/person.svg) Topic Author
- Administrator
- ![Administrator](https://www.realm667.com/media/kunena/ranks/rank_20_barrel.png)

 Less More- Posts: 1131
-
-
-

   5 years 11 months ago [\#8574](#8574) by Blue Shadow  Replied by *Blue Shadow* on topic *[\[UPDATE\] Blood Amulet](https://www.realm667.com/forum/closed-submissions/1124-update-blood-amulet#8574 "Updated submission:

Changes:

* Converted the code from DECORATE + ACS to ZScript.
* The item operates on one of two modes, with #2 being the default:

* Ammo is given for all supported ammo types by the item (original behavior).
* Ammo is given for ammo types used by the weapon the player is equipped with.

* Reduced the ammo gain by half.
* The sustained damage is now the actual damage the player received, and not the difference in their health between now and the previous tic.

* The item ignores self-inflicted damage.
* While active, the item's icon is displayed on the HUD.

* Disabled the screen blend.
* The item is no longer rendered fully bright.

* Utilized the LANGUAGE lump for the pickup message and tag.
* In addition to the description in the tag, the item's name is also included.

Download:

https://www.dropbox.com/s/qmxnam2ifos5iig/BloodAmulet.zip?dl=1")*

> Gothic wrote: Also, are LANGUAGE lumps allowed? I though that was up to the user to define.

They can be used, as long as existing strings are not replaced. With GZDoom nowadays supporting multiple languages, using them should be encouraged, I'd say.

As for the update itself, I had put it on hold until I get around to changing the way the event handler's variable is initialized, as the way it's currently done is wrong, from what I've learned later.

Please [Log in](https://www.realm667.com/component/users/login?return=aHR0cHM6Ly93d3cucmVhbG02NjcuY29tL2ZvcnVtL2Nsb3NlZC1zdWJtaXNzaW9ucy8xMTI0LXVwZGF0ZS1ibG9vZC1hbXVsZXQ=&Itemid=2662) or [Create an account](https://www.realm667.com/component/users/registration?Itemid=2662) to join the conversation.

- **Blue Shadow**
- ![Blue Shadow's Avatar](https://www.realm667.com/media/kunena/core/svg/person.svg) Topic Author
- Administrator
- ![Administrator](https://www.realm667.com/media/kunena/ranks/rank_20_barrel.png)

 Less More- Posts: 1131
-
-
-

   5 years 11 months ago [\#8589](#8589) by Blue Shadow  Replied by *Blue Shadow* on topic *[\[UPDATE\] Blood Amulet](https://www.realm667.com/forum/closed-submissions/1124-update-blood-amulet#8589 "Updated submission:

Changes:

* Converted the code from DECORATE + ACS to ZScript.
* The item operates on one of two modes, with #2 being the default:

* Ammo is given for all supported ammo types by the item (original behavior).
* Ammo is given for ammo types used by the weapon the player is equipped with.

* Reduced the ammo gain by half.
* The sustained damage is now the actual damage the player received, and not the difference in their health between now and the previous tic.

* The item ignores self-inflicted damage.
* While active, the item's icon is displayed on the HUD.

* Disabled the screen blend.
* The item is no longer rendered fully bright.

* Utilized the LANGUAGE lump for the pickup message and tag.
* In addition to the description in the tag, the item's name is also included.

Download:

https://www.dropbox.com/s/qmxnam2ifos5iig/BloodAmulet.zip?dl=1")*

 Okay, the submission should be good to go. To resolve the issue, I opted to make two event handlers, one for each mode.

Please [Log in](https://www.realm667.com/component/users/login?return=aHR0cHM6Ly93d3cucmVhbG02NjcuY29tL2ZvcnVtL2Nsb3NlZC1zdWJtaXNzaW9ucy8xMTI0LXVwZGF0ZS1ibG9vZC1hbXVsZXQ=&Itemid=2662) or [Create an account](https://www.realm667.com/component/users/registration?Itemid=2662) to join the conversation.

- **Gothic**
- ![Gothic's Avatar](https://www.realm667.com/media/kunena/avatars/resized/size144/users/avatar320.png?1619787674)
- Moderator
- ![Moderator](https://www.realm667.com/media/kunena/ranks/rank_20_barrel.png)

 Less More- Posts: 1329
-
-
-

   5 years 11 months ago [\#8590](#8590) by Gothic  Replied by *Gothic* on topic *[\[UPDATE\] Blood Amulet](https://www.realm667.com/forum/closed-submissions/1124-update-blood-amulet#8590 "Updated submission:

Changes:

* Converted the code from DECORATE + ACS to ZScript.
* The item operates on one of two modes, with #2 being the default:

* Ammo is given for all supported ammo types by the item (original behavior).
* Ammo is given for ammo types used by the weapon the player is equipped with.

* Reduced the ammo gain by half.
* The sustained damage is now the actual damage the player received, and not the difference in their health between now and the previous tic.

* The item ignores self-inflicted damage.
* While active, the item's icon is displayed on the HUD.

* Disabled the screen blend.
* The item is no longer rendered fully bright.

* Utilized the LANGUAGE lump for the pickup message and tag.
* In addition to the description in the tag, the item's name is also included.

Download:

https://www.dropbox.com/s/qmxnam2ifos5iig/BloodAmulet.zip?dl=1")*

 [ Updated](https://www.realm667.com/index.php/en/item-store-mainmenu-169-61042/powerups-a-artifacts-mainmenu-170-4162/1522-blood-amulet)

Please [Log in](https://www.realm667.com/component/users/login?return=aHR0cHM6Ly93d3cucmVhbG02NjcuY29tL2ZvcnVtL2Nsb3NlZC1zdWJtaXNzaW9ucy8xMTI0LXVwZGF0ZS1ibG9vZC1hbXVsZXQ=&Itemid=2662) or [Create an account](https://www.realm667.com/component/users/registration?Itemid=2662) to join the conversation.

[Powered by](https://www.realm667.com/forum/credits) [Kunena Forum](https://www.kunena.org)
