# Combining ups\_based\_armor with other use\_action

**URL:** <https://discourse.cataclysmdda.org/t/combining-ups-based-armor-with-other-use-action/23171>\
**Category:** The Toolbox\
**Created:** [April 7, 2020, 9:32am UTC](https://discourse.cataclysmdda.org/t/combining-ups-based-armor-with-other-use-action/23171 "2020-04-07T09:32:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rioM1](https://avatars.discourse-cdn.com/v4/letter/r/ba9def/32.png) [@rioM1](https://discourse.cataclysmdda.org/u/rioM1)\
**Post date:** [April 7, 2020, 9:32am UTC](https://discourse.cataclysmdda.org/t/combining-ups-based-armor-with-other-use-action/23171/1 "2020-04-07T09:32:44Z")

</div>

I’m trying to mod in an armor that can both cloak and teleport, which means adding both the use\_action teleport and ups\_based\_armor (with ACTIVE\_CLOAKING flag similar to the existing FB51 optical cloak).

The problem is that when I select the 2nd action to activate the cloak, the teleportation also triggers (which I assume is probably because all use\_action check for the activated state every turn after testing with adding additional use\_action).

I’m kinda hitting a wall on figuring out how to make both work together. So far, the only workaround I have is separating the armor into 2 transform states with their own use\_action, but it is kinda clunky like that.

---

<div class="post-metadata">

**Author:** ![Zhilkin](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/zhilkin/32/3749_2.png) [@Zhilkin](https://discourse.cataclysmdda.org/u/Zhilkin)\
**Post date:** [April 7, 2020, 10:19am UTC](https://discourse.cataclysmdda.org/t/combining-ups-based-armor-with-other-use-action/23171/2 "2020-04-07T10:19:13Z")

</div>

If two separate iuse actions are triggered by same cause it is a bug that should be fixed and it can also be an just an unimplemented feature that should be implemented.

---

<div class="post-metadata">

**Author:** ![rioM1](https://avatars.discourse-cdn.com/v4/letter/r/ba9def/32.png) [@rioM1](https://discourse.cataclysmdda.org/u/rioM1)\
**Post date:** [April 7, 2020, 7:34pm UTC](https://discourse.cataclysmdda.org/t/combining-ups-based-armor-with-other-use-action/23171/3 "2020-04-07T19:34:46Z")

</div>

Thank for the insight. I think I figure out the cause.  
It seems that the bug is caused by changing the item to the TOOL\_ARMOR type instead of ARMOR.  
I had assumed that TOOL\_ARMOR is the correct type to put activatable armors under.  
My item finally works once I make the conversion. Not exactly sure why as I could not find any related tidbit in the source code.  
I’ll be raising this issue on github then.
