• Mods are now organized as resources. Use the Mods link above to browse for or submit a mod, tool, or prefab.

    The TFP Official Modding Forum Policy establishes the rules and guidelines for mod creators and mod users.

Add item under certain conditions? Create_item HasBuff

SickWolf

Refugee
Hi modders!

When I use an item, I'd like to give the player another item depending on the HasBuff condition.

I can use Create_item under <property class="Action0">, but I need to use effect_group/requirement too.

Is this possible? I searched the existing xml files but I didn't find anything like it.

Workflow:

Code:
- User use the item
- Check if the player have a specific buff
- Give item depending on that condition
thanks!

 
Back
Top