| 09-20-2003, 06:51 PM | #1 |
I need an event but don't have that option... unit-type XXX when mana is equal or greater than 100X actions... i can't set unit-type in events... how to solve? |
| 09-20-2003, 07:22 PM | #2 |
Unit - Unit's mana becomes equal to But this only works for a specific unit. If you want a trigger that runs for all units, you need to make a periodic event which pickes every unit which has mana less than or equal to 0, then run the actions for the picked unit. Don't make the period event less than 1 second because otherwise it will lag horribly. |
| 09-20-2003, 07:31 PM | #3 | |
Quote:
Isn't there any other way? because this would lag the game and it's also a long trigger for all players... |
| 09-20-2003, 07:35 PM | #4 |
sorry, there's no other way. as long as you don't have too many (say 10 if you want to push it), 1 second periodic triggers don't particularly lag the game, unless someone has a 28kbit/s modem (in which case the game would lag anyway). With the amount of people who have broadband or cable, I wouldn't worry. But like I said, never use a less than 1 second periodic event trigger in multiplayer maps. It probably won't even start. |
| 09-20-2003, 08:04 PM | #5 |
well, actually I tried and can't do such a trigger: periodic event which pickes every unit which has mana less than or equal to 0, then run the actions for the picked unit pickes every unit which has mana less than or equal to 0 that's action before condition...? please be more specified.... |
| 09-20-2003, 08:10 PM | #6 |
Use less than 1 for the comparisson. It's a unit group action. Pick all units (units in matching condtion) and do actions to the picked units. |
| 09-20-2003, 09:59 PM | #7 |
yeah. i thought it was obvious. |
| 09-21-2003, 04:14 AM | #8 |
You guys says this so obvious but I tried doing this trigger many times, and still can't get to put all the things I need this to work! Use less than 1 for the comparisson. ====> yeah, but it doesn't allow me to specify "what" less than 1.....! It's a unit group action. Pick all units (units in matching condtion) =====> Can't choose anything I need there?! Would anyone show me how to write the complete trigger? darn it...... spent long time on this one already.... pff.... |
| 09-21-2003, 01:14 PM | #9 |
Please help.... I know there's trigger expert here.... |
| 09-21-2003, 01:18 PM | #10 |
no offence intended, but if you don't understand the posts in this thread, then maybe you shouldn't be trying something oo complicated for you. Start small. You need to mess about with all sorts of trigger to understand them. Just because I'm nice, give me an hour and I'll have a map up that does what you want. But next time you load up WE, actaully take an hour or so to look at all the triggers. If you do that, you'll understand them much better. |
| 09-21-2003, 01:55 PM | #11 |
When you're at the matching condition part, you need to do a 'real comparissonn' Real - unit property - mana of (picked unit) less than 1 Then do the action you want to the picked unit. |
