• 0

    posted a message on Majesty-like building placement.

    Right, this is where I am:

    An scv is used to place the building. When the building is placed a trigger captures the event and cancels the order. The place where the building was supposed to be is then used to create the needed building. When the building is created its model is then changed to the "placement" one (green one) via action. The building is then rendered invincible and intargetable.

    The problems: I don't want to use an SCV. I want a building-builder. If I tie the ability to build to a building it cannot build because it cannot move. I don't want the green building to be the "actual" building. How do Blizzards make it just the silhouette?

    Posted in: UI Development
  • 0

    posted a message on Majesty-like building placement.

    Right... so as far as I understood the building-placement in sc2 is done through actors (should have guessed that really :) ), so I believe I need a building-placing actor to appear near my mouse when I "use a dialog element" and then I will need another actor to appear where I "place the building". Finally I will remember the specified coordinates for the building placed in a variable and tell my AI to send a worker there to build the frickin structure. When that starts the latter actor disappears.

    Now can anyone advice me on the names of the actors that I need?

    Yes, and if you could expand a little bit on the "warp-gate-force-select" and "hide-a-worker" comments I would greatly appreciate this. In the end I only need the right actors to appear at the right time in the right place (and disappear likewise) and I don't care how that is implemented.

    Posted in: UI Development
  • 0

    posted a message on Majesty-like building placement.

    Jesus people is there a way to make a game where I click on the map and a building appears there????

    Posted in: UI Development
  • 0

    posted a message on Majesty-like building placement.

    Any ideas? Can't quite understand what trigger reads the current mouse coordinates.

    Posted in: UI Development
  • 0

    posted a message on Majesty-like building placement.

    Right, I want to be able to place buildings like in Majesty series. This is how it should work: in my interface widow down below I should always have buttons responsible for construction. When I click on the needed building icon, my pointer should change it's form as it does when I issue an order to an SCV (say) to build something. When I then click on a suitable area, that place should then contain the green building silhouette till the end of the game. That's the mission for now. Please help me to implement it.

    In original SC2 you have to pick an SCV to do this but I need to be able to do this without an SCV. I saw an "Issue order" trigger in the editor, but, once again it demands an SCV to function. How to do it without an SCV?

    Posted in: UI Development
  • 0

    posted a message on How to attach variables to units in the Data Editor?

    Ty that helped.

    Posted in: Data
  • 0

    posted a message on How to attach variables to units in the Data Editor?

    Hi! Is it actually possible to attach variables to units in the Data Editor? For instance I need EACH Zergling to have (say) an integer variable attached to them, that I can manipulate in the trigger editor. Is that possible? Or do I need to create an array of integers and assign each Zergling an index in that array?

    So if a zergling was built on the map it already has it's own integer variable (say cash in its wallet :)) and I can manipulate it - that's the goal.

    Posted in: Data
  • 0

    posted a message on Majesty-like building placement.

    One more thing. When making a Majesty-style indirect control AI it is good to have variables attached to each unit-hero. So I can basically create a trigger that will ever so often cycle through my heroes and check each of their variables to decide what order to issue to them. The question is how to attach different variables to different units in the Editor? Is it possible to do it in the Data Editor or I need to create an array and synchronize it with the units? Like each new hero gets the place in the array where there are free cells for his variables? If it is possible to do it in the Data Editor it would be much more clean. So is there a way and what way is it?

    Posted in: Triggers
  • 0

    posted a message on Majesty-like building placement.

    Hi! I am new to mapster so please don't throw heavy things at me if I did something wrong posting this thread :).

    I basically want to ask how to implement a building placement system as in Majesty series. So you have a building (palace) which has a menu for building construction and when you order a building to be build and specify the place, the building is then being placed there with 1% HP. The rest of the HP is then being "constructed" by non-controllable workers. The only difference is that I want to make it more SC2-like: instead of the building being placed instantly (with 1%HP) I want a green silhouette to appear in that region and then the trigger-based AI will order nearby workers to go and build the thing.

    I would be very grateful if you could point me in the direction where I can read about this. Thank you.

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