| 01-08-2005, 12:36 AM | #1 |
i need a trigger that gives u X amount of Wood from game time moring to midnight.. from 1 building like Genisis those type of games when the building is destroyed it sends no income in wood per the day every midnight it collects from the buildings that give out wood like selected type not buildings already in the game this is a important trigger in my map i realy need this please reply :\ |
| 01-08-2005, 03:28 AM | #2 | |
Quote:
explain it |
| 01-08-2005, 08:23 AM | #3 |
It means if X amount of the building is created and the trigger makes it give 10 wood per building at midnight in game time is what im asking like i have 10 farms each farms gives 10 wood per midnight get it? if not ever play castle builder or warlords,genisis those games |
| 01-08-2005, 11:27 AM | #4 |
Dunno if this is what you meant but: One variable: TempWoodGroup = UnitGroup Code:
WoodHouse
Events
Game - The in-game time of day becomes Equal to 18.00
Conditions
Actions
Set TempWoodGroup = (Units in (Playable map area)((Unit-type of (Matching unit)) Equal to [color=Blue]Farm[/color]))
Unit Group - Pick every unit in TempWoodGroup and do (Actions)
Loop - Actions
Player - Add 10 to (Owner of (Picked unit)) Current lumber
Custom script: call DestroyGroup( udg_TempWoodGroup )just change the farm to your building and it should work.. |
| 01-08-2005, 02:47 PM | #5 |
Guest | here is you answer its actually really really simple. Events Unit - A unit owned by Player 1 (Red) Finishes construction Conditions (Unit-type of (Constructed structure)) Equal to Lumber Income Increaser Actions Set Player_1s_Lumber_Income = (Player_1s_Lumber_Income + 100) That is how to get there income increased but if the structure dies this would be the trigger Events Unit - A unit owned by Player 1 (Red) Dies Conditions (Unit-type of (Dying unit)) Equal to Lumber Income Increaser :) Set Player_1s_Lumber_Income = (Player_1s_Lumber_Income - 100) Try hard m8 ![]() |
| 01-08-2005, 08:29 PM | #6 |
Thanks usally people dont help =D |
