| 10-31-2004, 02:18 PM | #1 |
I have a problem with removing Heros from Taverns, by all means this should work in theory however I feel like I have missed something or done something wrong. I have a Unit Group called Taverns, to which I add all the Taverns: Events Time - Elapsed game time is 0.01 seconds Conditions Actions Unit-Group - Add Tavern 1 <gen> to Taverns Unit-Group - Add Tavern 2 <gen> to Taverns Unit-Group - Add Tavern 3 <gen> to Taverns Then when a Unit enters the Tavern Region it checks to see if it is a Hero, then it should remove the Unit Type of the Triggering Unit from all the Taverns. Events Unit - A unit enters Tavern Region <gen> Conditions ((Triggering unit) is A Hero) Equal to True Actions Unit Group - Pick every unit in Taverns and do (Actions) Loop - Actions Neutral Building - Remove (Unit-type of (Triggering unit)) from (Picked unit) Can anyone notice anything wrong to this? Or what I have done wrong ... |
| 10-31-2004, 02:41 PM | #2 |
Couldn't you just do... 'A unit is sold' 'Remove 'Sold Unit' From Tavern #' Or am I misinterperting what you're saying? |
| 10-31-2004, 02:58 PM | #3 |
Doesn't seem to want to work ... Untitled Trigger 001 Events Unit - A unit Sells a unit Conditions Actions Neutral Building - Remove (Unit-type of (Sold unit)) from Tavern 0167 <gen> |
| 10-31-2004, 04:32 PM | #4 | |
Quote:
also why do all you guys use this "Time - Elapsed game time is 0.01 seconds"-crap instead of map initialization? i know only one function that is bugged by map ini and that's the stuff about dialog buttons. |
| 10-31-2004, 04:45 PM | #5 | |
Quote:
|
| 11-01-2004, 01:17 AM | #6 |
Allows slower computers to get over the first lag before they hit all the loading of the variables. |
| 11-01-2004, 02:05 AM | #7 |
No, this is because Map Init creates all the units and stuff while the map is loading. Game Time means the game has started. You can't create a Leaderboard during Map Init because it has no where to put it. |
| 11-01-2004, 09:11 AM | #8 |
Regardless ... I cannot believe no body knows how to do this ... |
| 11-01-2004, 12:31 PM | #9 |
if you could explain better what exactly you are trying to do, or post the map, somebody could probably get it alot quicker. im not sure if you have 6 taverns set up n differant locations, or in the same region. do they all sell the same hero, do you want to check if it is the hero that has been sold once you want removed? id need more info to be able to help, thought others may not. |
| 11-01-2004, 07:23 PM | #10 |
Exactly what Cennev said, we can't help you if you don't elaborate on what you need help with... -- j |
| 11-02-2004, 05:42 PM | #11 |
I HAVE THE ANWSER. Do not put the units sold in the tavern via object editor. Instead add them with triggers such as: Code:
Events
Map initialization
Conditions
Actions
Wait 0.50 seconds
Neutral Build - Add Mountain King to all marketplaces with 1 in stock and a max stock of 1This will make it so when the hero is purchased, it will dissapear out of the marketplace. |
| 11-02-2004, 05:46 PM | #12 |
My way works too... |
