| 06-28-2006, 03:13 AM | #2 |
My guess is that the problem lies within the second trigger, "add to score". Maybe it's the "Owner of dying unit is playing" thingy, that is if you test the map by just clicking the test map button. I really have no idea, just a quick thought. |
| 06-28-2006, 03:48 AM | #3 |
Have you tried using AND in the conditions? Have you also tried to make the if then else chart flow? Example: (condition) AND (condition) or in your case: ((Owner of (Dying unit)) slot status) Equal to Is playing AND (Owner of (Killing unit)) Equal to Player 1 (Red) or even better: The first condition of the trigger is: ((Owner of (Dying unit)) slot status) Equal to Is playing This will make it a lot easier to read and you don't have to copy/paste as much. Example: If (condition) then (actions) else If (next condition) then (actions) else ... else Do nothing This will make the trigger run a lot faster because if it is for Player 1 then it will skip the rest of the else ifs. Just a tip. Edit: Sorry, but I don't like using the "new" code tags. One more thing, if you set a variable to something; use it. You did: Set Score = (Last created multiboard) Use it in context and the multiboard should run just fine (if you use the tips I wrote, it should work really well). |
| 06-28-2006, 03:51 AM | #4 |
nope, it ant that, i tested it with out that condition and tested it with other people... i dont no is happening! ill rep you if u gan find the problem![]() |
| 06-28-2006, 04:27 AM | #5 |
First off, your second trigger is so inefficent and can be done in one if statement: Trigger: Your last trigger can be done in 3 lines using a loop. Your Problem is very Obvious: Your last trigger uses Last Created Multiboard but that trigger is not on the same stack as the trigger where you first initalized score. Thus, replace all of the Last Created Multiboards with your score variable and viola. |
| 06-28-2006, 04:41 AM | #6 |
Wow! That trigger is even more efficient than the one I told him to use. Oh well...I just hope he remembers to use else ifs when he really needs it. |
| 06-28-2006, 04:56 PM | #7 |
with the multiboard, to make it more efficient use Trigger: the row 0 mean that the text is in every row you have. you can use this with the 3rd trigger you posted too |
| 06-28-2006, 05:04 PM | #8 |
Instead of having the last trigger run every 1 sec, you can use a "run trigger" at the end of trigger 2 instead, dunno it's just a alternative, might not be good if it dies alot of units all the time |
| 06-28-2006, 05:45 PM | #9 |
ok... this is what i have now, but, when i test it, all the names in the multiboard are "player" including mine.. and i take out the condition "if owner of dieing units is = to playing" thing and it stays at 0 even when i kill... Trigger: Trigger: Trigger: and i added this Trigger: |
| 06-28-2006, 05:55 PM | #10 | |
Quote:
Change this: Trigger: Multiboard - Set the text for Score item in column 1, row 0 to (Name of (Player((Integer A))))Trigger: Multiboard - Set the text for Score item in column 1, row (Integer A) to (Name of (Player((Integer A))))EDIT: And this: Trigger: Multiboard - Set the text for Score item in column 2, row 0 to (String(kills[(Integer B)])Trigger: Multiboard - Set the text for Score item in column 2, row (Integer B) to (String(kills[(Integer B)])EDIT2: And for further triggers: row 0 always checks ALL ROWS !!! column 0 always checks ALL COLUMNS !!! That should do it... Can perhaps also someone look at my thread to help me too? Link: http://www.wc3campaigns.net/showthread.php?t=84734 |
| 06-28-2006, 06:28 PM | #11 |
well...names are ok... but the the number of kills on the score board, say nothing. red (me worldedit when i test it) number of kills is 0 even when i kill, and every one elses i dont even see a zero.... not even for the computer... heres my edited again triggers Trigger: Trigger: |
| 06-28-2006, 07:34 PM | #12 |
Do you test the map from WE or do you start WC3 and test it from there? I suggest you always run WC3, search for your map and start it from there to test it, otherwise there are many problems. I think you can also change some things that it works for running the test from WE, but AFAIK there are generally problems with this way of testing unless you change anything... This could be your problem, but it also might be something else... |
| 06-28-2006, 07:40 PM | #13 |
In the first trigger, you forgot to change row 0 to row Integer A Trigger: And I think the other two trigger can be turned into this one: Trigger: |
| 06-29-2006, 07:33 PM | #14 |
thx guys i took all your advice and the thing dident work, but i tried taking the reincarnation out of the unit and it worked... so, i dont feel like starting another tread so.. how can i revive my unit using triggers? i see theres a revive hero but the unit ant a hero, i cant create another one of the same units at the potion of dieing unit cause i have triggers set for that units.. |
