I am attempting to remake an old classic map and i need to know how to do it within triggers. if you have the time show me the triggers. i am in need of some help. (parasite) map. Edited: i wasn't really clear first time so ill be clear now... i need the triggers that tell the difference between alien and human triggers im not sure entirely how to do this but i suspect it has something to do with stuff like attributes... and detecting them but i don't know what triggers i need so can someone help?
Please explain further exactly what you need or are trying to do? I don't think it's possible to make a lie detector or dna tester in the SC2 editor, lol.
I imagine the parasited player needs to have a certain variable set for them, and the trigger checks for that variable...and if it reads positive, then it does whatever it needs to do...such as say: 'Hey, this thing pretending to be a human is actually a violent and carnivorous alien."
Please explain further exactly what you need or are trying to do? I don't think it's possible to make a lie detector or dna tester in the SC2 editor, lol.
<</quote>>
well... i want to be able to detect the difference between aliens and humans. so i need the triggering for it can you help?
You could use custom values. When you select the alien, set the alien unit's custom value(e.g index 0 but you could use another index if you want) to 1 or something. Then you can have an if check like: "If custom value[0] for *Unit* == 1". If it's true, it's an alien, otherwise it's a human.
I am attempting to remake an old classic map and i need to know how to do it within triggers. if you have the time show me the triggers. i am in need of some help. (parasite) map. Edited: i wasn't really clear first time so ill be clear now... i need the triggers that tell the difference between alien and human triggers im not sure entirely how to do this but i suspect it has something to do with stuff like attributes... and detecting them but i don't know what triggers i need so can someone help?
I'm remaking a similar gameplay, too (though I'm slow as hell and probably won't finish it, it's just pure entertainment rather than a serious project).
The DNA tester was pretty easy to do: an array with a value for each player. When you use the "detect dna ability" (which in turn can only be used over heroes, units the players use as their character) it checks the value and returns the result with an error percentage.
I did it by adding all infected players to a player group. This player group can be used in a variety of other functions as well, so it would save you some extra effort in the future.
I did it by adding all infected players to a player group. This player group can be used in a variety of other functions as well, so it would save you some extra effort in the future.
What he said. Make a player group called "Infested". Then add the infested player(s) to it. Then when a player uses the machine, check and see if they are in that group.
Rollback Post to RevisionRollBack
Feel free to Send me a PM if you have any questions/concerns!
To post a comment, please login or register a new account.
I am attempting to remake an old classic map and i need to know how to do it within triggers. if you have the time show me the triggers. i am in need of some help. (parasite) map. Edited: i wasn't really clear first time so ill be clear now... i need the triggers that tell the difference between alien and human triggers im not sure entirely how to do this but i suspect it has something to do with stuff like attributes... and detecting them but i don't know what triggers i need so can someone help?
@SkedarLord: Go
Please explain further exactly what you need or are trying to do? I don't think it's possible to make a lie detector or dna tester in the SC2 editor, lol.
I imagine the parasited player needs to have a certain variable set for them, and the trigger checks for that variable...and if it reads positive, then it does whatever it needs to do...such as say: 'Hey, this thing pretending to be a human is actually a violent and carnivorous alien."
@SkedarLord: Go
Please explain further exactly what you need or are trying to do? I don't think it's possible to make a lie detector or dna tester in the SC2 editor, lol. <</quote>>
well... i want to be able to detect the difference between aliens and humans. so i need the triggering for it can you help?
@Sephiex: Go
i know but i need more information.
TO BOTH OF YOU IM CHANGING POST... k
You could use custom values. When you select the alien, set the alien unit's custom value(e.g index 0 but you could use another index if you want) to 1 or something. Then you can have an if check like: "If custom value[0] for *Unit* == 1". If it's true, it's an alien, otherwise it's a human.
I'm remaking a similar gameplay, too (though I'm slow as hell and probably won't finish it, it's just pure entertainment rather than a serious project).
The DNA tester was pretty easy to do: an array with a value for each player. When you use the "detect dna ability" (which in turn can only be used over heroes, units the players use as their character) it checks the value and returns the result with an error percentage.
Pretty easy code :).
I did it by adding all infected players to a player group. This player group can be used in a variety of other functions as well, so it would save you some extra effort in the future.
What he said. Make a player group called "Infested". Then add the infested player(s) to it. Then when a player uses the machine, check and see if they are in that group.