Register for free, and make this box disappear!

Welcome to the BF Forums! Register Now, It's Free!


Welcome to the BF Forums; your source for the latest video game news, strategies, discussions, and resources. Join over 66,000 like-minded gamers to chat about your interests in our community.

You are currently viewing the forums as a guest user, which limits your access to certain content, contests, downloads, and more. By joining our free community, you will be able to respond in discussions/articles, contact members privately (PM), participate in regular-scheduled contests, see less advertisements, and have access to many other features. Registration is quick, easy, and completely free. Whatever your game interest may be, you'll find information here where people realize that games are more than just poker online.


Have your questions answered. Share your thoughts about a topic. Take 2 minutes, Register Now!
BattleForums.com Blizzard Gaming Forums > Warcraft > Warcraft General > Warcraft Maps and Modifications

We're Half-Way There!! - BF Lotto: $50 Ebay or Amazon Gift Card - A Single Click is All It Takes...

Reply
 
Thread Tools Display Modes
Old 08-15-2004, 10:37 PM   #21 (permalink)
BattleForums Junior Member
 
SlayMaximus's Avatar
 
Join Date: Dec 2003
Location: Virginia
Posts: 64
I've spent several hours on this based on the comments in the thread and if I understand what you are doing, think the following triggers should work. I've also attached my working map so you can cut and paste - but you will need to remove the debugging messages, etc. Note I used "test" as the chat string to be matched and you may want to use "exact match" rather than "substring."

Type Test
Events
Player - Player 1 (Red) types a chat message containing test as A substring
Conditions
Actions
Game - Display to (All players) the text: Test Trigger Execut...
Set Number_of_Peasants = 0
Set Number_of_Not_Peasants = 0
Unit Group - Pick every unit in (Units currently selected by Player 1 (Red)) and do (Actions)
Loop - Actions
If ((Unit-type of (Picked unit)) Equal to Peasant) then do (Set Number_of_Peasants = (Number_of_Peasants + 1)) else do (Set Number_of_Not_Peasants = (Number_of_Not_Peasants + 1))
Game - Display to (All players) the text: ((String(Number_of_Peasants)) + Peasants Selected)
Game - Display to (All players) the text: ((String(Number_of_Not_Peasants)) + Non-Peasants Selected)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Number_of_Peasants Equal to 3
Number_of_Not_Peasants Equal to 0
Then - Actions
Unit - Create 1 Footman for Player 1 (Red) at (Position of (Random unit from (Units currently selected by Player 1 (Red)))) facing Default building facing degrees
Unit Group - Pick every unit in (Units currently selected by Player 1 (Red)) and do (Actions)
Loop - Actions
Unit - Explode (Picked unit)
Special Effect - Create a special effect attached to the overhead of (Last created unit) using Abilities\Spells\Undead\DeathCoil\DeathCoilSpecial Art.mdl
Else - Actions
Do nothing


Let me know if that's not what you are looking for or if I can do anything else. I enjoyed the challenge!
Attached Files
File Type: w3x hellthrone.w3x (18.6 KB, 5 views)
SlayMaximus is offline   Reply With Quote
Beitrag Sponsored Links

__________________
Ads suck! Take 2 minutes to register for your free account, and GET RID OF THESE ADS!
 
Reply

Get rid of all these ads! Take 30 seconds to register.

« Mapmaking Copyrights | Where is the hack forum? »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


All times are GMT +1. The time now is 05:48 AM.



Powered by vBulletin® Version 3.7.2 | Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0