wc3campaigns
WC3C Homepage - www.wc3c.netUser Control Panel (Requires Log-In)Engage in discussions with other users and join contests in the WC3C forums!Read one of our many tutorials, ranging in difficulty from beginner to advanced!Show off your artistic talents in the WC3C Gallery!Download quality models, textures, spells (vJASS/JASS), systems, and scripts!Download maps that have passed through our rigorous approval process!

Go Back   Wc3C.net > Warcraft III Modding > Developer's Corner > Triggers & Scripts
User Name
Password
Register Rules Get Hosted! Chat Pastebin FAQ and Rules Members List Calendar



Reply
 
Thread Tools Search this Thread
Old 09-30-2010, 10:18 AM   #1
Viktory
User
 
Join Date: May 2010
Posts: 25

Viktory has little to show at this moment (0)

Information Initialization trigger not working.

Hello, I am making a map in which you can play as the naga and there is something wrong with the following trigger:
Trigger:
Collapse NagaRed
Collapse Events
Player - Player 1 (Red) types a chat message containing -naga as An exact match
Conditions
Collapse Actions
Set NagaRed = True
-------- This trigger definitely works - end of story. I checked it myself --------
Collapse Initialization
Collapse Events
Time - Elapsed game time is 10.00 seconds
Conditions
Collapse Actions
Trigger - Turn off NagaRed <gen>
Trigger - Turn off NagaBlue <gen>
Trigger - Turn on Defeat <gen>
Trigger - Turn on Victory <gen>
Melee Game - Create starting units (for all players)
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
NagaRed Equal to True
Collapse Then - Actions
Collapse Unit Group - Pick every unit in (Units owned by Player 1 (Red) matching (((Triggering unit) is A peon-type unit) Equal to True)) and do (Actions)
Collapse Loop - Actions
Unit - Replace (Picked unit) with a Mur'gul Slave using The old unit's relative life and mana
Collapse Unit Group - Pick every unit in (Units owned by Player 1 (Red) matching (((Triggering unit) is A town-hall-type unit) Equal to True)) and do (Actions)
Collapse Loop - Actions
Unit - Replace (Picked unit) with a Temple of Tides using The old unit's relative life and mana
Else - Actions
Melee Game - Use melee time of day (for all players)
Melee Game - Limit Heroes to 1 per Hero-type (for all players)
Melee Game - Give trained Heroes a Scroll of Town Portal (for all players)
Melee Game - Set starting resources (for all players)
Melee Game - Remove creeps and critters from used start locations (for all players)
Melee Game - Run melee AI scripts (for computer players)
Collapse Player Group - Pick every player in (All players matching (((Picked player) slot status) Equal to Is playing)) and do (Actions)
Collapse Loop - Actions
Player Group - Add (Picked player) to PlayersAlive
Instead of creating Naga units, it makes normal ones.

I use an unmodified WE. End of story. I will not switch.
Viktory is offline   Reply With Quote
Sponsored Links - Login to hide this ad!
Old 09-30-2010, 12:37 PM   #2
WaterKnight
User
 
Join Date: Oct 2007
Posts: 35

WaterKnight has little to show at this moment (4)

Default

The elapsed game time event does not provide a Triggering unit. You probably meant Matching unit which is used in group pick conditions to refer to the unit that should be checked to get through. Picked unit is then used in the group loop actions. Analogically, this counts for player forces.
WaterKnight is offline   Reply With Quote
Old 09-30-2010, 06:18 PM
syrathia
This message has been deleted by syrathia.
Old 09-30-2010, 09:21 PM   #3
Viktory
User
 
Join Date: May 2010
Posts: 25

Viktory has little to show at this moment (0)

Default

Thanks waterknight, I was tired at the time, no wonder I missed it.

+rep
Viktory is offline   Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off


All times are GMT. The time now is 04:32 PM.


Affiliates
The Hubb The JASS Vault Clan WEnW Campaign Creations Clan CBS GamesModding Flixreel Videos

Powered by vBulletin (Copyright ©2000 - 2019, Jelsoft Enterprises Ltd).
Hosted by www.OICcam.com
IT Support and Services provided by Executive IT Services