| 03-01-2005, 08:39 PM | #1 |
Well I want to know a lot : How are damage calculated? ie : there are three stats for the damage. How does it works? What is really one second in the game? (with the game speed... Wait 1 second? is always the same or change ?) There is a maximum amount of thread per player if we don't explicite a thread creation, noone will be create? (I mean only the map maker will create thread with the native function I-can't-remember-the-right-name ?) There is a way to destroy a unit after she has attacked? The only way I see, it is using a WAIT but the units attacking are different so the time will depend on the unit... and the speed can be changed with spells too so... arrrrggghhhhh :\ last question : we can set array with: nameArray[index] = value but there is not a wayy to make more than 1 like with {5,6,6} in other langage... Thanks for all answers |
| 03-02-2005, 06:57 PM | #2 |
There is a way to destroy a unit after she has attacked? -- figure out what the unit is attacking, and make a trigger with the event that that unit takes damage. check the source of the damage. |
| 03-03-2005, 05:46 AM | #3 | |
Quote:
|
| 03-03-2005, 08:57 PM | #4 |
yes that's why i said figure out what unit (singular) is being attacked, and make a trigger (dynamically), etc |
| 03-04-2005, 09:44 PM | #5 | |
Quote:
You mean : the unit is attacked -> event = i create the second trigger the unit takes damages -> event : remove the source of damage? Could be great, but I am not good enough to make that so help would be good (In fact I gess I could but with the worst way and memory leak....) I have one problem with this: the unit attacking are dummies so they attack the quikest... Could be the creation of my second trigger to late ?* if so how could I delete it? Thanks *What if the unit is already dead/ or if the unit attacking have a attack of 0? PS : I have never tried to create/destroy trigger dynamicaly In fact even static I use the trigger editor and then I translate to JASS.... o_O |
