Introduction to justify my noobiness : I recently started to mess with the editor and have gotten pretty serious with it. There are some small things I can't seem to get over and tried asking around but seemed to be ignored. A friend referred me to SC2Mapster so here I am, please be gentle with me.
So far the things I want to do in the trigger editor are
Make player specific pings, pings only 1 player can see
Give control of a unit in proximity, like the Warcraft taverns
Make the computer cast spells, I made snipe cost nothing and removed attack and the computer still wouldn't use snipe
Random Number Generator? Seems to me cycle is the RNG thing but haven't got to test it out yet
Lock mini map for certain players, similar to the specific pings
Make it so all units in a region teleport to a point
That's all I really know how to do, and I'm sure someone else knows the rest.
Rollback Post to RevisionRollBack
I am largely inactive, but I am still around. Feel free to poke me if you need some help, just be warned that I only really come back if I need help and/or if I'm posting a new map/library.
Thanks for the info on shop and RNG! However I'm not looking to make every ghost on my map decide to use snipe via event. I have seen the computer AI's use snipe and other abilities and thought if I enabled campaign AI, the same would work but no such luck. Do you know how to make the computer utilize any of the default skills?
Well, you could make an event that if a unit enters the proximity of the unit it will cast it. AI is a lot more difficult for me than most other things.
Really, if you're just looking at a basic auto-cast, though, order the unit to move and such (or create your own little AI brain) and then if a unit is within range cast abilities based on priority.
As far as priority goes, all you need to do is create an array of abilities, add each ability in (again, according to priority [so an ability that you want to be cast over all others would be [1]), and then have the computer cast at the prioritized unit.
Advanced AI isn't my bag so if that's what you're looking for I won't be able to help you. There are a couple of people on here who I am sure can create an advanced AI or help even, but they are few and far between and don't regularly check the forums to the best of my knowledge.
Rollback Post to RevisionRollBack
I am largely inactive, but I am still around. Feel free to poke me if you need some help, just be warned that I only really come back if I need help and/or if I'm posting a new map/library.
Not a problem and don't worry, I know the feeling sometimes. You'll find SC2mapster to be fast and generally helpful when you post questions as no doubt you'll see your other questions answered either within the day or the next couple.
There are times where you might need to bump or won't get a full answer, but there's also the IRC channel where most of the more advanced users hang and if you can tolerate waiting for a few hours there's generally help to be had there too.
Rollback Post to RevisionRollBack
I am largely inactive, but I am still around. Feel free to poke me if you need some help, just be warned that I only really come back if I need help and/or if I'm posting a new map/library.
1) This is "Create Ping Face Point" or "Create Ping facing Angle". You can set what player group this ping is visible too, so this can be a team, allies of a player, or a single player (there is a function to convert a player to player group).
2) This is found in the data editor, specifically the Interact Ability. When casted, it gives control of the unit to the target. To create a War 3 Tavern, you would make the building have the Interact Ability and have it set to autocast, with an appropriate auto cast range. You can have it so any number of players can control it or only 1 (Exclusive flag).
3) This is 3 fold. First you must make sure the controller for the player is set to Computer in Player Properties. 2nd you need to enable the Campaign AI, this is a trigger action in the AI category. Finally, you need to define the ability in the data editor Tactical AI. The tactical AI will instruct how the AI uses the ability, using validators to determine valid targets (in additon to the ability normal targeting restrictions). You can also assign a Target Find to the Tactical AI, this will allow the AI to choose how to use the Ability best (For example, the High Templar will never attempt to storm a single unit, it will make sure it hits at least 3 or 4, depending on difficulty), This target finds can also be run through validators.
4) There are 2 trigger functions that will let you get a random integer or random real, and you can set the range. The key thing to remember is that since they are functions, they will only show up in the action list if you are using it as part of comparision operation in a condition or you are modifiying/setting a variable of the correct type, or using it in a place where the GUI expects the correct type (say like, pick each integer, you could have it pick from random ranges)
5) This would be Pick Each Unit in Unit Group. In the place where it wants the unit group, you would put Units in Region matching Condition, and assing the region. Then for the action, use the Move command, for the picked unit, to the point you want.
Hope that helps
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Introduction to justify my noobiness : I recently started to mess with the editor and have gotten pretty serious with it. There are some small things I can't seem to get over and tried asking around but seemed to be ignored. A friend referred me to SC2Mapster so here I am, please be gentle with me.
So far the things I want to do in the trigger editor are
Please help!
@KingOfFate: Go
Give control of a unit in proximity, like the Warcraft taverns
Make the computer cast spells, I made snipe cost nothing and removed attack and the computer still wouldn't use snipe
Basically
Random Number Generator? Seems to me cycle is the RNG thing but haven't got to test it out yet
That's all I really know how to do, and I'm sure someone else knows the rest.
@Yaksmanofage: Go
Thanks for the info on shop and RNG! However I'm not looking to make every ghost on my map decide to use snipe via event. I have seen the computer AI's use snipe and other abilities and thought if I enabled campaign AI, the same would work but no such luck. Do you know how to make the computer utilize any of the default skills?
@KingOfFate: Go
Well, you could make an event that if a unit enters the proximity of the unit it will cast it. AI is a lot more difficult for me than most other things.
Really, if you're just looking at a basic auto-cast, though, order the unit to move and such (or create your own little AI brain) and then if a unit is within range cast abilities based on priority.
As far as priority goes, all you need to do is create an array of abilities, add each ability in (again, according to priority [so an ability that you want to be cast over all others would be [1]), and then have the computer cast at the prioritized unit.
Advanced AI isn't my bag so if that's what you're looking for I won't be able to help you. There are a couple of people on here who I am sure can create an advanced AI or help even, but they are few and far between and don't regularly check the forums to the best of my knowledge.
@Yaksmanofage: Go Thanks again. You have no idea how happy your quick responses make me. Sc2 forums take decades.
@KingOfFate: Go
Not a problem and don't worry, I know the feeling sometimes. You'll find SC2mapster to be fast and generally helpful when you post questions as no doubt you'll see your other questions answered either within the day or the next couple.
There are times where you might need to bump or won't get a full answer, but there's also the IRC channel where most of the more advanced users hang and if you can tolerate waiting for a few hours there's generally help to be had there too.
@Yaksmanofage: Go
Definitely going to check that out. Thanks again.
Alrighty, I think I can each of these
1) This is "Create Ping Face Point" or "Create Ping facing Angle". You can set what player group this ping is visible too, so this can be a team, allies of a player, or a single player (there is a function to convert a player to player group).
2) This is found in the data editor, specifically the Interact Ability. When casted, it gives control of the unit to the target. To create a War 3 Tavern, you would make the building have the Interact Ability and have it set to autocast, with an appropriate auto cast range. You can have it so any number of players can control it or only 1 (Exclusive flag).
3) This is 3 fold. First you must make sure the controller for the player is set to Computer in Player Properties. 2nd you need to enable the Campaign AI, this is a trigger action in the AI category. Finally, you need to define the ability in the data editor Tactical AI. The tactical AI will instruct how the AI uses the ability, using validators to determine valid targets (in additon to the ability normal targeting restrictions). You can also assign a Target Find to the Tactical AI, this will allow the AI to choose how to use the Ability best (For example, the High Templar will never attempt to storm a single unit, it will make sure it hits at least 3 or 4, depending on difficulty), This target finds can also be run through validators.
4) There are 2 trigger functions that will let you get a random integer or random real, and you can set the range. The key thing to remember is that since they are functions, they will only show up in the action list if you are using it as part of comparision operation in a condition or you are modifiying/setting a variable of the correct type, or using it in a place where the GUI expects the correct type (say like, pick each integer, you could have it pick from random ranges)
5) This would be Pick Each Unit in Unit Group. In the place where it wants the unit group, you would put Units in Region matching Condition, and assing the region. Then for the action, use the Move command, for the picked unit, to the point you want.
Hope that helps