Nevermind I got it to work.... I had made 3 turrets, 2 of them put up that error and the other 1 did not. So I deleted everything for the two that did not work and then duplicated the one that did work and renamed and changed everything and now it works fine.
Ok... it's still not working my actions go like this:
If
And
Conditions
Current Wave Iteration==Number of Waves
(Number of Living Units in (Any units in (Entire Map) owned by player 5 matching Excluded: Missile, Dead, Hidden, with at most Any Amount))==0
Lives>0
Then
UI - Display "YOU WIN! CONGRATULATIONS!" for (All Players) to Subtitle Area
General - Wait 3.0 Game Time Seconds
Game - End game in Victory for player 1 (Show dialogs, Show score screen)
Game - End game in Victory for player 2 (Show dialogs, Show score screen)
Game - End game in Victory for player 3 (Show dialogs, Show score screen)
Game - End game in Victory for player 4 (Show dialogs, Show score screen)
Else
I have it under the event of Map Initialization, I am not sure if that is the problem, but all I know is that it is not working. I have another if string under the spawn trigger that says:
If
Current Wave Iteration==Number of Waves
Then
Trigger - Turn (Current Trigger) Off
Timer - Hide Timer Window for (Active Players)
Else
Timer - Start Timer as a One Shot timer that will expire in 50.0 Game seconds
Timer - Set Title for Timer Window to "Next Wave In:"
It works fine so i know that the Current Wave Iteration==Number of Waves is not the problem. If you think the problem is the even I put the victory trigger under, can you give me a suggestion as to what event to put it under?
Is there a condition that I can make is so that amount of unit owned by a certain player == 0. I am working on a tower defense and want to make it so that if the current level == number of levels and there are no units owned by player 5 on the map, then victory. But I cannot figure out how!! I figured out how to make it so that the current level == number of levels (I just used variables), i just can't figure out how to get it to detect that there are no units on the map owned by player 5. Can someone help?
0
Nevermind I got it to work.... I had made 3 turrets, 2 of them put up that error and the other 1 did not. So I deleted everything for the two that did not work and then duplicated the one that did work and renamed and changed everything and now it works fine.
0
when I place my tower in the editor it says
[10/30/2011 12:42:15 PM] Warning: Invalid attach method [Unavailable] in AttachQuery[Methods=Invalid LinkInvalid LinkInvalid LinkInvalid LinkInvalid LinkInvalid LinkInvalid LinkInvalid LinkInvalid Lin Fallback=IGNORE].
When I build it in the actual game the tower appears okay but it still says:
Invalid LinkInvalid LinkInvalid LinkInvalid LinkInvalid LinkInvalid LinkInvalid LinkInvalid LinkInvalid Lin Fallback=IGNORE
Anyone know what the problem is? I am thinking I messed something up in the data editor, but I cannot figure out what.
0
It Worked. Thanks!
0
Ok... it's still not working my actions go like this:
If And Conditions Current Wave Iteration==Number of Waves (Number of Living Units in (Any units in (Entire Map) owned by player 5 matching Excluded: Missile, Dead, Hidden, with at most Any Amount))==0 Lives>0 Then UI - Display "YOU WIN! CONGRATULATIONS!" for (All Players) to Subtitle Area General - Wait 3.0 Game Time Seconds Game - End game in Victory for player 1 (Show dialogs, Show score screen) Game - End game in Victory for player 2 (Show dialogs, Show score screen) Game - End game in Victory for player 3 (Show dialogs, Show score screen) Game - End game in Victory for player 4 (Show dialogs, Show score screen) Else
I have it under the event of Map Initialization, I am not sure if that is the problem, but all I know is that it is not working. I have another if string under the spawn trigger that says:
If Current Wave Iteration==Number of Waves Then Trigger - Turn (Current Trigger) Off Timer - Hide Timer Window for (Active Players) Else Timer - Start Timer as a One Shot timer that will expire in 50.0 Game seconds Timer - Set Title for Timer Window to "Next Wave In:"
It works fine so i know that the Current Wave Iteration==Number of Waves is not the problem. If you think the problem is the even I put the victory trigger under, can you give me a suggestion as to what event to put it under?
0
Is there a condition that I can make is so that amount of unit owned by a certain player == 0. I am working on a tower defense and want to make it so that if the current level == number of levels and there are no units owned by player 5 on the map, then victory. But I cannot figure out how!! I figured out how to make it so that the current level == number of levels (I just used variables), i just can't figure out how to get it to detect that there are no units on the map owned by player 5. Can someone help?