| 09-03-2004, 11:00 AM | #1 |
Can anyone please tell me on how to accomplish the following, I really can't go further with my map until I implement this. Hero Spawning How do I make it so that upon choosing a hero from a tavern located in the corner of the map, the selected hero is spawned and the camera jumps to it at a specified region? Like the kind of feature you see in DOTA games? Modifying Triggers In Game Vague I know, but I am trying to make it so that upon the purchase of a "global upgrade" similar to teching, that certain triggers would be turned off and others turned on. Thanks for any and all help!!! ~Cheers ![]() |
| 09-03-2004, 11:29 AM | #2 |
easy... make variables for all your units by doing this (if your a newb)... Make variable for arthas (for example) go to the golden X and click that. Then click the green x and type in arthas (for example) as the variable name. Then for variable type go to unit (unit). (Do this for every unit you are going to use). Events: A unit finishes training a unit. Conditions: Triggering unit equal to Arthas (for example) Actions: Set Arthas (the variable you created) equal to last trained Instantly Move Arthas (the variable you created) to region w/e Pan camera for player (w/e player) to center of (whereever) |
| 09-03-2004, 12:40 PM | #3 | |
Quote:
Thanks for the response, but I am having problems... I have: Event: Unit - A unit Finishes training a unit But for conditions, I can't find anyway to set the trigger unit equal to my variable. I made the variable named my hero with the type as unit... But no matter what condition I check, I can't find anyone that allows me to put "Triggering unit equal to my variable." All I can set is unit types for classification check :/ |
| 09-03-2004, 01:09 PM | #4 |
Thanks, one more question though: How do you set hero select times to zero? I.e: remove the delay it takes before you are able to buy a hero? I am not using any default triggers, and its on a unit with no build cooltime on a custom tavern made off a peasent, so no tavern stats should be causing it... >_< |
| 09-03-2004, 01:18 PM | #5 |
Guess I responded prematurely.. with this trigger: Event: Unit - A unit Finishes training a unit Condition: (Triggering unit) Equal to FelStalker Action: Set FelStalker = (Last created unit) Unit - Move FelStalker instantly to (Center of HMNAttackOrcBase <gen>) Camera - Pan camera for (Owner of (Triggering unit)) to (Center of HMNAttackOrcBase <gen>) over 0.00 seconds It just spawns the hero at the tavern... without taking it anywhere. And it overrides my hero color settings to the player that selected it >_< Whats wrong? |
| 09-03-2004, 03:50 PM | #6 |
I'm not quite sure on this but try something like Untitled Trigger 001 Events Unit - A unit Sells a unit Conditions ((Selling unit) is A structure) Equal to True ((Sold unit) is A Hero) Equal to True Actions Set hero = (Sold unit) Unit - Move hero instantly to (Center of (Playable map area)) Camera - Pan camera for (Owner of (Sold unit)) to (Center of (Playable map area)) over 2.00 seconds The set hero part is a variable, just incase u didn't know. I hope that helps a little ![]() one more thing when ur setting the variable thing in ur original trigger... set felstalker = (last created unit) It might help if u change last created unit to (sold unit) i'm not 100% on this but w/e. |
| 09-03-2004, 03:55 PM | #7 | |
Quote:
I'm sorry for spamming on the message board but.... i needed to see what u wrote while typing. Event: Unit - A unit Finishes training a unit Condition: (Triggering unit) Equal to FelStalker Here's your problem Action: Set FelStalker = (Last created unit) Unit - Move FelStalker instantly to (Center of HMNAttackOrcBase <gen>) Camera - Pan camera for (Owner of (Triggering unit)) to (Center of HMNAttackOrcBase <gen>) over 0.00 seconds It shouldn't be triggering unit for one... because then WC looks at it as the Tavern that trained it. 2nd problem is the variable thing. |
| 09-03-2004, 04:06 PM | #8 | |
Quote:
What should I put instead of that then? |
| 09-03-2004, 04:10 PM | #9 | |
Quote:
Condition: (Triggering unit) Equal to FelStalker change that to Condition: (sold unit) Equal to Felstalker |
| 09-03-2004, 04:48 PM | #10 | |
Quote:
Just tried that didn't work... still spawned hero right at the tavern ... For a recap: Event: Unit - A unit Finishes training a unit Condition: (Sold unit) Equal to FelStalker Action: Set FelStalker = (Last created unit) Unit - Move FelStalker instantly to (Center of HMNAttackOrcBase <gen>) Camera - Pan camera for (Owner of (Triggering unit)) to (Center of HMNAttackOrcBase <gen>) over 0.00 seconds I also added a change unit color to brown (instead of the default player1 red) to see if the trigger was even going off... and it didn't change color. I'm clueluess`( ![]() |
| 09-03-2004, 04:49 PM | #11 | |
Quote:
***Also, how do you remove the initial delay of buying heroes? So I don't have to wait over a minute each time to check to see it worked :/ |
| 09-03-2004, 04:59 PM | #12 | |
Quote:
i don't know how to do that, i could figure it out but i'm kinda in a hurry right now... but the problem with the other hting is ur event.... it says unit finishes training a unit... it should be unit sells a unit... or something along that line try that also the color thing...... there might be a trigger... unit- change (sold unit)'s color to (color) ALSO!!!!! make sure u change the action to set felstalker as (sold unit) or soemthing like that.... last created unit will not work... i don't belive so ne ways. ALSO ALSO!!!!!! sorry about all this adding but make sure u don't use triggering unit in this.. it will not work.. use sold unit for everything, or a variable. |
| 09-03-2004, 05:10 PM | #13 | |
Quote:
Changing the event to Unit - A unit Sells a unit still doesn't fix it :o Neither does changing the Action to: Set FelStalker = (Sold unit) |
| 09-03-2004, 05:13 PM | #14 | |
Quote:
so it should look like this Event: Unit - A unit sells a unit Condition: (Sold unit) Equal to FelStalker Action: Set FelStalker = (sold unit) Unit - Move FelStalker instantly to (Center of HMNAttackOrcBase <gen>) Camera - Pan camera for (Owner of (sold unit)) to (Center of HMNAttackOrcBase <gen>) over 0.00 seconds i have to go now i'll be back on later good luck :god_help_us: :god_help_us: |
| 09-03-2004, 05:25 PM | #15 |
Got it to work... but I didn't use any variables :/ |
