wc3edit.net

United Warcraft 3 map hacking!
It is currently March 12th, 2010, 4:26 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: 503
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
Ex-Moderator
User avatar

Joined: July 28th, 2008, 6:28 pm
Posts: 1309
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
Image
Spoiler for Quotes:
Code:
(16:34:55) GeorgeMots: but it doesnt matter, i ended up having sex with her cousin.. strip poker is always a good way to get laid

Code:
(11:57:49) Dekar: who is this?
(11:58:05) ChatBot: (Dakar) has been logged out (Kicked).
(11:58:07) (Deckharr): win
(11:58:10) ChatBot: (Deckharr) has been logged out (Kicked).
(11:58:17) Lanaya: win
(11:58:26) ChatBot: Tupac_Shakur logs into the Chat.

Code:
(06:12:36) 2Pac: lan00by's hawt.
(06:12:40) 2Pac: i would marry her.
(06:13:38) 2Pac: noes, i r in love with UndeadxAssassin, sorry.
(06:13:39) xxxlord: i see it pac lulz
(06:13:56) xxxlord: eww
(06:14:00) xxxlord: but hes all zombie

Code:
(19:41:50) vRisen: Owner 123
Good. map deprotector. Feel free to PM me with a deprotection request. VRisen is the master map deprotecter though.
(19:41:59) vRisen: I could make him suck my dick if I wanted to.
(19:42:07) Lanaya: Do it.
(19:42:24) Lanaya: i want pics

Code:
(20:32:20) Bartimaeus: Every time you post, Lanaya, some of my brain cells start to melt.
(20:32:24) Bartimaeus: :(
(20:32:31) Lanaya: same with jen :S

Code:
(19:40:45) Ozzapoo: Pork.?
(19:41:00) Lanaya: mmhm
(19:41:03) Lanaya: Narwhals?
(19:41:14) Ozzapoo: Mango?
(19:41:22) Lanaya: Badger?
(19:41:43) Ozzapoo: Cup?
(19:41:53) Lanaya: Girls?
(19:42:00) Ozzapoo: Crabs?
(19:42:32) Lanaya: Jen?
(19:42:47) Ozzapoo: Rape?
(19:42:51) Ozzapoo: Oh .
(19:42:52) Ozzapoo: No.
(19:42:53) Lanaya: Now?
(19:42:54) Ozzapoo: Don't respond to that.


Top
 Profile  
 
 Post subject: Re: Gold
PostPosted: June 28th, 2009, 2:11 pm 
Offline
Legacy Staff
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 2 guests


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)