Register for free, and make this box disappear!

Welcome to the BF Forums! Register Now, It's Free!


Welcome to the BF Forums; your source for the latest video game news, strategies, discussions, and resources. Join over 66,000 like-minded gamers to chat about your interests in our community.

You are currently viewing the forums as a guest user, which limits your access to certain content, contests, downloads, and more. By joining our free community, you will be able to respond in discussions/articles, contact members privately (PM), participate in regular-scheduled contests, see less advertisements, and have access to many other features. Registration is quick, easy, and completely free. Whatever your game interest may be, you'll find information here where people realize that games are more than just poker online.


Have your questions answered. Share your thoughts about a topic. Take 2 minutes, Register Now!
BattleForums.com Blizzard Gaming Forums > Warcraft > Warcraft General > Warcraft Maps and Modifications

We're Half-Way There!! - BF Lotto: $50 Ebay or Amazon Gift Card - A Single Click is All It Takes...

Reply
 
Thread Tools Display Modes
Old 04-13-2004, 02:34 AM   #1 (permalink)
BattleForums Junior Member
 
Join Date: Apr 2004
Posts: 32
Icon5 Earn Warcraft Intrest!!??

Okay, i want to add a effect in a hero arena, that when you go near the *earn Intrest* (money Icon thingy(building)) on the map, that you will gain intrest on your money... kinda like a bank. What i want is a 7% increase on your money every... say 75 seconds that you are there, this is what i have so far.

Events-
Time - Every 20.00 seconds of game time
Conditions-
((Owner of(triggering unit)) is in 'team1') Equal to True
('BankT1Whole <gen> contains (triggering unit)) Equal to True
Actions
Player - Add (((Triggering player) Current gold) + (4/100)) to (Triggering players) Current gold


Is there another way to go about this? or am i atleast on the right track.. maybe my formula for percentage is wrong... or there is a way that i can choose a percentage with out the dividing crap!, thanks
answerson is offline   Reply With Quote
Beitrag Sponsored Links

__________________
Ads suck! Take 2 minutes to register for your free account, and GET RID OF THESE ADS!
Old 04-13-2004, 02:42 AM   #2 (permalink)
 
Join Date: Jun 2003
Location: Your pants
Age: 19
Posts: 2,836
hmm, have a region in front of the bank...
Event- Unit enters region
Conditions- dont really need them i dun think
Actions - Set players current Gold property equal to % higher.

Sumthin like that. No ned for condition really.
__________________
Notre Dame

Fighting Irish


www.ourimage.org
Our Music.. Our Shows..
Speaker is offline   Reply With Quote
Old 04-13-2004, 03:13 AM   #3 (permalink)
BattleForums Junior Member
 
Join Date: Apr 2004
Posts: 32
you think that would make since, but i didnt see a % thing..., and you cant set gold to higher.. you have to add gold to the players current amount, i mean i'm sure my triggers are close... i just don tknow what i'm missing.. but your not right, lol nice try though
__________________
answerson is offline   Reply With Quote
Old 04-13-2004, 03:44 AM   #4 (permalink)
Aya Matsuura is awesome
 
x42bn6's Avatar
 
Join Date: Nov 2002
Location: Trieste, Friuli-Venezia Giulia
Age: 20
Posts: 15,282
Player: Set player property
Set Gold of [triggering player] to (Round([Gold of [triggering player] * ((100 + (Interest rate))/100))

That would be a full interest rate, shorter too.

Nice thing is you can replace Interest rate with a variable so that the interest changes over time, or a penalty, or something, just change the variable.
__________________
* IM IN UR WIKI RVRTING UR EDITS


Last edited by x42bn6; 04-13-2004 at 03:47 AM.
x42bn6 is offline   Reply With Quote
Old 04-13-2004, 04:39 AM   #5 (permalink)
BattleForums Junior Member
 
Join Date: Apr 2004
Posts: 32
Set Gold of [triggering player] to (Round([Gold of [triggering player] * ((100 + (Interest rate))/100))


?? okay i cant fine the trigger that starts with the word 'Round' and why put ((*100*+ ( intrest rate))/100)) ?? not seeing how that will add 4 % to players current gold, even though my triggers doenst work , it still makes more sense to me
__________________
answerson is offline   Reply With Quote
Old 04-15-2004, 02:07 AM   #6 (permalink)
BattleForums Junior Member
 
Garthrs's Avatar
 
Join Date: Aug 2003
Location: Usually buried at work
Posts: 130
Event
Unit enters region
Condition
Unit equals whatever if anything
Action
Set (Boolean) Interest[player number of (owner of triggering unit)] = True


Then write one trigger
Event
Every 20 sec
Action (no condition)
Pick every player
If
Interest [player number of (picked player)] = true
Then
Set picked player current gold to (picked player) current gold = (picked player) current gold + ((picked player) current gold * (interest expressed in a .08 for 8 %))
Esle
do nada

Try that...
Garthrs is offline   Reply With Quote
Old 04-15-2004, 02:11 AM   #7 (permalink)
BattleForums Junior Member
 
Garthrs's Avatar
 
Join Date: Aug 2003
Location: Usually buried at work
Posts: 130
don't forget to add a unit leaves region trigger.

Sorry
Garthrs is offline   Reply With Quote
 
Reply

Get rid of all these ads! Take 30 seconds to register.

« World Editor Lag... BEGONE! | Maybe someone Hold the answer... »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


All times are GMT +1. The time now is 12:52 PM.



Powered by vBulletin® Version 3.7.2 | Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0