wc3edit.net

United Warcraft 3 map hacking!
It is currently September 3rd, 2010, 3:01 pm

 
flexOptix compatible reconfigurable transceivers CWDM SFP Plus, CWDM SFP, CWDM XFP, CWDM GBIC, CWDM Mux DIN rail, CWDM Multiplexer DIN rail DWDM SFP Plus, DWDM XFP, DWDM Transceiver, 10 Gigabit SFP Plus, 10GBase XFP XR, 10 Gigabit XFP, compatible xfp, compatible sfp+, mini-GBIC

All times are UTC




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Gold
PostPosted: June 28th, 2009, 12:31 pm 
Offline
Forum Spammer
User avatar

Joined: November 21st, 2008, 9:36 am
Posts: 505
Title: Coleen!
I just wanted to ask how to make a gold trigger like in tree tag, every 9 seconds it gives you 5 gold and 7 lumber and it's in building for example.

A unit builds a resource house so it's a basic one then each resource house generates 5 gold and 7 lumber every 9 seconds.

Any Ideas please!

_________________
Image
Made By: Coleen or Me :)


Top
 Profile  
 
 Post subject: Re: Gold
PostPosted: June 28th, 2009, 1:04 pm 
Offline
Forum Staff
User avatar

Joined: July 28th, 2008, 6:28 pm
Posts: 1488
Title: Administrator
mmm

Code:
Add Farm
    Events
        Unit - A unit Finishes construction
    Conditions
        (Unit-type of (Constructed structure)) Equal to Resource House
    Actions
        Unit Group - Add (Constructed structure) to Unit_Group
        Set Player = (Owner of (Constructed structure))
        Trigger - Turn on Income

Code:
Remove Farm
    Events
        Unit - A unit Dies
    Conditions
        (Unit-type of (Dying unit)) Equal to Resource House
    Actions
        Unit Group - Remove (Dying unit) from Unit_group

Code:
Income
    Events
        Time - Every 9.00 seconds of game time
    Conditions
    Actions
        Player - Add (5 x (Number of units in Unit_Group)) to Player Current gold
        Player - Add (7 x (Number of units in Unit_Group)) to Player Current lumber


Income isn't initially on
Player is a player variable
and
Unit_Group... is a unit group variable

hope this helps.

_________________
Image
Quote:
(22:35:51) GeorgeMots: a gay just hiy on me...
(22:36:07) Lanaya: Good
(22:36:17) Lanaya: you look gay enough :O
(22:36:25) GeorgeMots: Fuck you!
(22:36:30) Lanaya: XD
(22:36:31) Lanaya: hahaha
(22:36:47) Lanaya: is he intoxicated? o.o
(22:37:01) GeorgeMots: no, he looks more like my sister
(22:37:16) Lanaya: great. no problem then right?


Top
 Profile  
 
 Post subject: Re: Gold
PostPosted: June 28th, 2009, 2:11 pm 
Offline
Forum Spammer
User avatar

Joined: August 5th, 2007, 1:38 pm
Posts: 507
Location: *Unknown*
Title: Gui Expert
Why don't you just do Loop 1-8( trees)

Pick every unit = (farm) then

Add (# of farms x 5) to Player(integer a) current gold
Add (# of farms x 7) to Player(integer a) current lumber

Do this for every type of farm, and change variables.


Top
 Profile  
 
 Post subject: Re: Gold
PostPosted: June 28th, 2009, 9:48 pm 
Offline
Forum Fanatic

Joined: October 16th, 2007, 7:32 pm
Posts: 327
Arabidnun wrote:
Why don't you just do Loop 1-8( trees)

Pick every unit = (farm) then

Add (# of farms x 5) to Player(integer a) current gold
Add (# of farms x 7) to Player(integer a) current lumber

Do this for every type of farm, and change variables.


lol thats what i told him to do 3 days ago over MSN...


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group

Privacy Policy Statement
Impressum (German)