• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Simple income trigger

Level 18
Joined
Dec 17, 2009
Messages
1,114
Introduction
I'm still a complete noob so, please comment this triggering [GUI] tutorial sorry i got no images:con:



Requirements

-Only basic triggering knowledge

Triggering


It's time to start triggering

You must create a building(like storage house something like that).

Then edit the description of the building to income _ gold and _ lumber.

Then start triggering with like this
(NOTE: The building is your 1st building, so, do not make different building in the 3 parts of this triggering.

Income

Events
->>A unit Finishes construction
->>Time - Every _.__ Second of game time
Conditions
->>(Unit Type of (Constructed structure)) Equal to The building
Actions
->>Player - Add _ to (Triggering player) current gold/lumber

And next you must create a trigger to stop , IF the building is destroyed, here it is

Destroyed

Events
->>A unit Dies
Conditions
->>(Unit Type of (Dying Unit)) Equal to The Building
Actions
->>Turn off Income


Okay, now the "Income" trigger will turn off if the building is destroyed, and the third part will be the activator again.

Income Activator

Events
->>A unit Finishes construction
Conditions
->>(Unit Type of (Constructed structure)) Equal to The building
Actions
->>Turn on Income

HOORAAY!!!:grin:

Now your trigger should work, if it has any bugs, please post the bugs and if all of you, find it "not good" please post your comments!
 
Last edited:
Level 9
Joined
Nov 4, 2007
Messages
931
You should 1) get rid of your second post, double posting isn't allowed, and 2) don't ask for rep, it is frowned upon, and you may get what you ask for, just not the kind you'd like.
 
Top