|
Post by Bali on Jul 23, 2006 23:53:41 GMT 1
I making a 10 way Tower defense-like map, but am new to map making. Everything is working fine except one thing: my levels trigger. I am using two enemies because the region where the lives are lost is behind the region for the spawn's mover. The problem with doing that is that I can't have the trigger's event be for one of the enemy's food to become less than or equal to zero, since the other enemy's food might be more than zero. That would cause a premature release of the next level.
I was wondering is there was any way of combining the two enemies into one group for the event. I'm thinking a variable that includes both enemies, and using it as the variable for the event. The problem is that none of the variables (player, player group) that I have tried using work in the player properties event.
Am I trying futility for something that can't be done? Or is it possible? If it is, please tell me how. If it isn't, what would you suggest me to do?
|
|
|
Post by Ghost on Jul 24, 2006 8:18:18 GMT 1
are you yousing 2 enemies for attackers?? if yes, try with 1 only, if you can't use 1 enemy, could you explain why?
|
|
|
Post by Bali2 on Jul 24, 2006 15:55:33 GMT 1
Yes, I'm using two enemies for the attackers. I tried using one enemy before. The problem is that the region that holds the movement trigger is in front of the region hat holds the -lives region. All the enemies are moving straight forward, not to the same defeat point. If I use just one emeny then the units won't make it to the -lives region.
I know I could use triggers that turn on and off the movement trigger, but I want to see if there's a way to do it that won't needed as many triggers. Though, if you feel that's that better way, I'll change it.
|
|
|
Post by Ghost on Jul 24, 2006 18:12:00 GMT 1
could you upload map on rapidshare.de or send it to my mail (darkghost66@o2.pl) , if you would see it it would be a lot better, and no wriez i wont steal your map
|
|
|
Post by Bali3 on Jul 24, 2006 18:25:06 GMT 1
I e-mailed it to you.
|
|
|
Post by Ghost on Jul 24, 2006 20:48:11 GMT 1
what about using 'and' condition??
like current food of player 12 brown equal to 0 and current food of player 11 green equal to 0
or number of units owned by player 11 and player 12 (same as above) try with this
|
|
|
Post by Bali on Jul 24, 2006 21:34:01 GMT 1
I could do that, but I was hoping to be able to do something with the event, not the conditions.
|
|
|
Post by Ghost on Jul 24, 2006 21:39:25 GMT 1
whats wrong with event?? or what you mean?
|
|
|
Post by Bali on Jul 24, 2006 21:54:30 GMT 1
I wanted do what what you said with the "and" condition, but use it in the event. Eh, it doesn't matter now, I have something worked out. That did give me an idea. I have the event as: Player Brown's food become less than or equal to zero for for my next level trigger. I also have another tigger with the same event. The action for that sets "dgfood", an integer variable I had to make for this, to zero. And whenever a new level starts, "dgfood" is set to 1. I tested it out, and it worked like I hoped for.
|
|
|
Post by Ghost on Jul 24, 2006 22:21:37 GMT 1
if you need any more help just ask and feel free to register *goes back to get help with this d**n jass code...*
|
|