|
River_God
Member
![*](https://www.pftq.com/forums/Themes/pq/images/star.gif) ![*](https://www.pftq.com/forums/Themes/pq/images/star.gif) ![*](https://www.pftq.com/forums/Themes/pq/images/star.gif) ![*](https://www.pftq.com/forums/Themes/pq/images/star.gif) ![*](https://www.pftq.com/forums/Themes/pq/images/star.gif)
Offline
![](https://www.pftq.com/forums/index.php?PHPSESSID=8ivvlt8b73nic02orembpv67b0&action=dlattach;attach=57;type=avatar)
Posts: 184
|
![](https://www.pftq.com/forums/Themes/pq/images/post/xx.gif) |
« Reply #31 on: August 30, 2007, 02:05:04 PM » |
|
OK I am back from my break and ready to script again.
I would love it if you took a look at this trigger. What it is supposed to do is cause a player to win if they have 2 cows in a certain area.
for (plflag=1; <=cNumberNonGaiaPlayers){ rmCreateTrigger("FlagsCaptured"+plflag); rmSwitchToTrigger(rmTriggerID("FlagsCaptured"+plflag)); rmAddTriggerCondition("Units in Area"); rmSetTriggerConditionParam("Player", plflag, true); rmSetTriggerConditionParam("UnitType", "Cow", true); rmSetTriggerConditionParam("Count", 2, true); rmAddTriggerEffect("Set Player Won"); rmSetTriggerEffectParam("Player", plflag, true); rmAddTriggerEffect("Shake Camera"); rmSetTriggerEffectParam("Duration", 5.0, true); rmSetTriggerEffectParam("Strength", 0.25, true); rmSetTriggerActive(true); }
I know I havn't the code that sais the area becuase I havn't decided the whole map yet. I was just wondering if this code makes any sense or am I just typing random words.
|
|
|
Logged
|
"I am not sure why people are so afraid of new ideas, I am afraid of the old ones" :p
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|