• 0

    posted a message on {Trigger} Allowing the creation of only ONE kind of unit (Like the Mothership)

    Yup, its uhm. The Lair and Hive train 4 heroes, the factory trains the same 4 heroes, and the robotics facility trains the same 4.

    Depending on your start location, you're able to build one of the four heroes. Problem is, you can build like 90 of the hero (if you have the money) and you're only supposed to be able to make one at a time.

    Posted in: Triggers
  • 0

    posted a message on {Trigger} Allowing the creation of only ONE kind of unit (Like the Mothership)

    Hey all, hopefully this will be the last time I bother you guys. :P

    I tried to clone the requirements for the mothership for my hero units so that you may only have one hero at a time. If your hero dies, you can respawn it, but you're only allowed to have one active at a time.

    More or less exactly like the mothership in any given melee map, where you can only have one mothership at a time.

    Basically, it didn't work out and I am looking for a quick and simple explaination on how I can set/make a requirement for my hero so you can only have one of him at a time.

    Any advice? Thanks in advance. :3

    Posted in: Triggers
  • 0

    posted a message on {Trigger}If Player 1 -> Starts in point 1 -> Allow unit to be trained

    I solved the issue. For some reason, a trigger variable wasn't showing up. The most important one I needed.

    Basically, your trigger should look like this if you're doing something similar to me:

    Events - Game - Map Initialization

    Local Variables - [Start Location of Player][1] [==] [Water]

    Actions - Tech Tree - [Disallow Gaia for Player] [1] Tech Tree - [Disallow.... etc etc. for all the other heroes I don't want that player to be able to make if they're in location Water.

    In the above, "Gaia" is the name of the hero I didn't want player 1 to be able to create if they started in Water's starting area.

    Water was the name of the start location, I renamed all the start locations when I started making the map. So, if you didn't name your locations, you're probably going to look for [Start Location of Player] [1] [==] [001] for your first start location.

    Hope that helps anyone google searching similar problems in the future. Thanks for the help Soulcarver. :3

    Posted in: Triggers
  • 0

    posted a message on {Trigger}If Player 1 -> Starts in point 1 -> Allow unit to be trained
    Quote from SouLCarveRR: Go

    no no... you increment the players upgrade status with a trigger when they select thier starting location.

    The player doesnt do anything with the "upgrade" you handle it behind the scene.

    how do you handle letting the player pick thier start location?

    I wasn't going to let them, basically when they start the map, as with all melee maps, it selects your spot for you and its more or less totally random.

    Posted in: Triggers
  • 0

    posted a message on {Trigger}If Player 1 -> Starts in point 1 -> Allow unit to be trained
    Quote from SouLCarveRR: Go

    oh ... heres a better idea

    create a dummy unit that is invisible and invulnerable.... you can then use a validator to see if thier hero building is in range of that dummy unit....

    so if you have 4 regions with 4 special heros... youd make 4 validators....

    you can then use this validator to make the button not even show at the training building..

    if you cant figure out the dummy unit in range of validator....

    you can make an "upgrade" and when the players pick a start spot.... you give them an upgade say "is fire element" you increment it with a trigger....

    then on the train hero building use a validator to make sure they have that upgrade trained

    I like the upgrade idea, but that puts me back at the problem of only allowing a spesific upgrade depending on which start location is picked. I guess the question is, how would I go about attaching a spesific upgrade (for example, "is fire element") to a starting point?

    Posted in: Triggers
  • 0

    posted a message on {Trigger}If Player 1 -> Starts in point 1 -> Allow unit to be trained
    Quote from SouLCarveRR: Go

    well sinces its a custom game I would suggest you yourself should handle the start points for the players.....

    you could create regions at each of the start points and do a if unit enters region if OR command center nexus hatchery do stuff for owner of unit.... but then turn this trigger off so it doesnt run multiple times

    thats not exactly as it would read but I hope it makes sense

    I have the start points down, the physical locations aren't the problem. Basically, I want so that when you pick a starting location, say spot 1, you start the game in that spot (as you would in any normal melee game) but you also gain the benefit of a spesific hero unit that you only get if you start in that spesific spot.

    Essentially the idea of the map is, each corner of the map is a different element, earth, air, fire or water. Point one is water, two is fire, three is air, and four is earth. If you start in point one (water), then you get water's hero unit to use in battle. If you start in fire's spot, you get fire's totally different hero. However, if you're fire you cannot build water's hero to use.

    Also, I like your idea. Pretty sneaking using regions like that, I'll see if I can give it a shot. Thanks for the quick response. :)

    Posted in: Triggers
  • 0

    posted a message on {Trigger}If Player 1 -> Starts in point 1 -> Allow unit to be trained

    The title pretty much says it all.

    I'm currently in the process of a map in which the player gains the ability to train a spesific hero depending on what start location you end up in. For example, if player 1 starts in point 2, then they get a melee hero, if they started in point 3, then they get a different kind of hero, etc.

    Basically, I've been fumbling around in triggers trying to figure out how to do this, there doesn't seem to be any kind of condition along the lines of, "If a player starts in a spesific start location" to go with "then they're allowed to train *insert hero here*."

    On top of that, I'm trying to make a requirement that you cannot have more than one of the hero unit at a time (similar to how you may only have one mothership in a regular melee game as Protoss).

    Does anyone have any ideas for how to do either of these?

    I'm assuming the first trigger should go something like, "If Player 1 -> Begins in Point 1 -> Allow *hero unit here*."

    Thanks in advance. :)

    EDIT: Just to be clear, I have the hero units already finished and they're all able to be made by the barracks, gateway, and hatchery/lair/hive. The problem is in allowing a player to only make -one- kind of hero unit based on their starting location.

    Posted in: Triggers
  • To post a comment, please or register a new account.