Alright well the array idea sort of makes sense for tracking the items (I'm a little inexperienced with the trigger editor), so thanks for that! But I'm not really sure how to incorporate that into the calculation of the distance of the materials from the building that creates it. If anyone can explain this to me or provide a good tutorial it would really be appreciated!
I have, what seems like to me a simple problem, but given my understanding of the editor I cannot figure it out. My trigger is as follows: I need a trigger which can take items from the ground (after a button has been clicked on a building) and combine them, remove the items, and replace them with a new item, also on the ground. For example, if I have an armory which I will use to create an iron ingot, once the "Create Iron Ingot" button has been clicked, it will check that a metal scrap and a flint rock are within two range of the armory.
Basically my problem is that I don't know how to check that the required items (metal scrap and flint rock) are within two range of the armory. And then after that, how to delete those two items from the game, and how to create a new item within 1 range of the armory.
If there is any way for you to help me, it would be greatly appreciated!
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Thank you very much! That is exactly what I needed. Thanks for both of your help
Alright well the array idea sort of makes sense for tracking the items (I'm a little inexperienced with the trigger editor), so thanks for that! But I'm not really sure how to incorporate that into the calculation of the distance of the materials from the building that creates it. If anyone can explain this to me or provide a good tutorial it would really be appreciated!
I have, what seems like to me a simple problem, but given my understanding of the editor I cannot figure it out. My trigger is as follows: I need a trigger which can take items from the ground (after a button has been clicked on a building) and combine them, remove the items, and replace them with a new item, also on the ground. For example, if I have an armory which I will use to create an iron ingot, once the "Create Iron Ingot" button has been clicked, it will check that a metal scrap and a flint rock are within two range of the armory.
Basically my problem is that I don't know how to check that the required items (metal scrap and flint rock) are within two range of the armory. And then after that, how to delete those two items from the game, and how to create a new item within 1 range of the armory.
If there is any way for you to help me, it would be greatly appreciated!