How can i make a validator for an effect that checks if an upgrade is above a certain lvl?
I have a periodic effect that runs on a unit and if i do a upgrade it should have a validator to check what effect it should cast. Hard to explain but its all solved if there is a way to check if an upgrade have been made.
You need a Player Requirement type validator which then validates a requirement that counts your upgrades. An ingame example is IsDarkProtossResearched
Rollback Post to RevisionRollBack
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
I already tried that i dont get ti work at all. The require meant work (tested it on a button) i have put the requirement on USE and not show, does this matter at all ?
This works even tho i have not upgraded the upgrade enough (below 19) and the weird thing is that it it works on buttons.
Use is what you want. Dont know why it is not working. Easiest way to test this sort of thing is to add a dummy buff that adds +1 to a vital the unit lacks to a unit and see if the buff is disabled/removed. Try it with the validator linking to a requirement from ingame you know works and then using your one.
In short, its about my "repair station" that give energy to the reapir bots (+1) but aftera while does the repair bots use more energy then the repair station can deliver with +1 increasements. Atm i have a set of effect, +1 to repair bot and -1 to repair station. I now added 2 more effect +2 / -2. And at about upgrade lvl 20 i want to switch from +1 to +2 transfers. For this i need a validator that check what level my upgrade is on.
+1 checks so that its below 20, and +2 checks so its 20 or above.
So i have 1 requirement that i then have 2 validators for. 1 normal and one with inverted result.
Atm BOTH run on levels below 20 and both stop at levels above 20 :/
You can reap the header on all pictures what they are.
1. Validator for the +2 effect.
2. The requirement it checks.
3. Validator for the +1 effect (invert the result of validator in point 1.)
4. = same image as 1.
Somehow the requirement get reversed in the validator that check it and then i reversed again in the second validator so its totally upside down for some reason :/
As you can see, the effect using the correct validator.
Uploaded 3 more clear pictures with all info you can possible need to solve this. Why does the validators get completely reversed? Its easy just to switch the 2 validators on the effect but i wanna know why it is like this :/
How can i make a validator for an effect that checks if an upgrade is above a certain lvl?
I have a periodic effect that runs on a unit and if i do a upgrade it should have a validator to check what effect it should cast. Hard to explain but its all solved if there is a way to check if an upgrade have been made.
@Sherlia: Go
There is. Use a compare value validator. I don't remember the fields off the top of my head but I know it's pretty straightforward.
You need a Player Requirement type validator which then validates a requirement that counts your upgrades. An ingame example is IsDarkProtossResearched
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
https://www.sc2mapster.com/forums/resources/tutorials/179654-data-actor-events-message-texture-select-by-id
https://media.forgecdn.net/attachments/187/40/Screenshot2011-04-17_09_16_21.jpg
@DrSuperEvil: Go
I already tried that i dont get ti work at all. The require meant work (tested it on a button) i have put the requirement on USE and not show, does this matter at all ?
This works even tho i have not upgraded the upgrade enough (below 19) and the weird thing is that it it works on buttons.
Use is what you want. Dont know why it is not working. Easiest way to test this sort of thing is to add a dummy buff that adds +1 to a vital the unit lacks to a unit and see if the buff is disabled/removed. Try it with the validator linking to a requirement from ingame you know works and then using your one.
Try removing the tech tree cheat flag?
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
https://www.sc2mapster.com/forums/resources/tutorials/179654-data-actor-events-message-texture-select-by-id
https://media.forgecdn.net/attachments/187/40/Screenshot2011-04-17_09_16_21.jpg
@DrSuperEvil: Go
In short, its about my "repair station" that give energy to the reapir bots (+1) but aftera while does the repair bots use more energy then the repair station can deliver with +1 increasements. Atm i have a set of effect, +1 to repair bot and -1 to repair station. I now added 2 more effect +2 / -2. And at about upgrade lvl 20 i want to switch from +1 to +2 transfers. For this i need a validator that check what level my upgrade is on.
+1 checks so that its below 20, and +2 checks so its 20 or above.
So i have 1 requirement that i then have 2 validators for. 1 normal and one with inverted result.
Atm BOTH run on levels below 20 and both stop at levels above 20 :/
Whats that pic on the left of?
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
https://www.sc2mapster.com/forums/resources/tutorials/179654-data-actor-events-message-texture-select-by-id
https://media.forgecdn.net/attachments/187/40/Screenshot2011-04-17_09_16_21.jpg
@Sherlia: Go
I got it to work BUT the validators are reverted?? why?It does +1 above lvl 20 and +2 under lvl 20... i dont get it.
@Sherlia: Go
Its the 2 validators that checks the requirement. But for some reason they work exactly not as i want it.. why?
Probably has to do with that return = failure field so that it needs the requirement to return false to work.
So what validator type is it the one of the left pic?
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
https://www.sc2mapster.com/forums/resources/tutorials/179654-data-actor-events-message-texture-select-by-id
https://media.forgecdn.net/attachments/187/40/Screenshot2011-04-17_09_16_21.jpg
@DrSuperEvil: Go
You can reap the header on all pictures what they are.
1. Validator for the +2 effect.
2. The requirement it checks.
3. Validator for the +1 effect (invert the result of validator in point 1.)
4. = same image as 1.
Somehow the requirement get reversed in the validator that check it and then i reversed again in the second validator so its totally upside down for some reason :/
As you can see, the effect using the correct validator.
Uploaded 3 more clear pictures with all info you can possible need to solve this. Why does the validators get completely reversed? Its easy just to switch the 2 validators on the effect but i wanna know why it is like this :/
Sure it is not the Failure part of the Condition validator?
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
https://www.sc2mapster.com/forums/resources/tutorials/179654-data-actor-events-message-texture-select-by-id
https://media.forgecdn.net/attachments/187/40/Screenshot2011-04-17_09_16_21.jpg
@DrSuperEvil: Go
the Condition validator works, but its the first "original" validator that is inverted for some reason when it should not be.
I tested both of them and they work but totally wrong.
Is there some wierd flag i dont know about?
Any ideas?
STill need to know wht my validators get inverted .
There is always the simple fix where you could use a combine validator to invert it again ie double negation.
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
https://www.sc2mapster.com/forums/resources/tutorials/179654-data-actor-events-message-texture-select-by-id
https://media.forgecdn.net/attachments/187/40/Screenshot2011-04-17_09_16_21.jpg
@DrSuperEvil: Go
Yes thats kinda what i do but it feels silly to do that instead of solving the real problem.