I'm trying to create a requirement where a certain class of item can unlock a certain ability.
For example, items of class "Tools" will allow your worker to harvest resources. There are several items within the "Tools" class (eg. "Rusty Tools", "Solid Tools", etc.). I want the gather ability to be enabled when any of these items is carried.
The only option I was able to find is to just do a requirement like:
This works, however, as the list of items grows, so does the item tooltip. I would like the requirement to just say "Requires Tools" instead of a list of every possible tool.
You can activate an ability via a behavior easily, just add an Equip Behavior to the item that makes that ability enabled. So you would make X behavior named X and in the behavior modifications field of the behavior you would go to the ability tab (first one by default) and go to "Abilities Enabled" and add the ability you want to be enabled. Add the ability to the unit or all of the units you want to be capable of using said ability. then make a requirement that counts the behavior as =1 and add that requirements to the ability. This way all of you units who can gather have the ability but they cannot use the ability unless they have the behavior on, and the behavior is supplied via the item. Name the behavior what you want the requirement to say. So if you want the requirement to say "Requires Tools" then you would name the behavior "Tools". Now it might end up saying Requires Tools 1, but you can maybe change that by making the rquirements count the beavior as not = to 0 instead of = 1, this may make it only say Requires Tools but im not sure. Anyway this should work just fine for what you are looking for, Hope it helps.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Hey everyone,
I'm trying to create a requirement where a certain class of item can unlock a certain ability.
For example, items of class "Tools" will allow your worker to harvest resources. There are several items within the "Tools" class (eg. "Rusty Tools", "Solid Tools", etc.). I want the gather ability to be enabled when any of these items is carried.
The only option I was able to find is to just do a requirement like:
This works, however, as the list of items grows, so does the item tooltip. I would like the requirement to just say "Requires Tools" instead of a list of every possible tool.
Any ideas?
Thanks guys!
You can activate an ability via a behavior easily, just add an Equip Behavior to the item that makes that ability enabled. So you would make X behavior named X and in the behavior modifications field of the behavior you would go to the ability tab (first one by default) and go to "Abilities Enabled" and add the ability you want to be enabled. Add the ability to the unit or all of the units you want to be capable of using said ability. then make a requirement that counts the behavior as =1 and add that requirements to the ability. This way all of you units who can gather have the ability but they cannot use the ability unless they have the behavior on, and the behavior is supplied via the item. Name the behavior what you want the requirement to say. So if you want the requirement to say "Requires Tools" then you would name the behavior "Tools". Now it might end up saying Requires Tools 1, but you can maybe change that by making the rquirements count the beavior as not = to 0 instead of = 1, this may make it only say Requires Tools but im not sure. Anyway this should work just fine for what you are looking for, Hope it helps.