HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Bounty/Income Script

07-09-2007, 12:48 PM#1
xlime
HI, im having trouble doing a income script for my map, I've set bounty on for all
and

when spawnbox finishes training a unit then action

if unittype of sold unit equals grandpa then set income player nomber of owner of sold unit = income player nimber of owner of sold unit + 1 else do nothing

And the thing that gives the value of the integer income variable
event = every 20 second

for each integer a form 1 to 4 do player add income integer a to player integer a current gold

and some strings saying what income you got... so ? is this wrong sorry for not using tags but don't know how xD
07-09-2007, 12:58 PM#2
Histenchist
You have to do something with you're post, maby upload a test map?
Because as it looks now; we cannot help you.
07-09-2007, 05:36 PM#3
TheSecretArts
Trigger:
Income
Collapse Events
A Unit is trained
Collapse Conditions
Training Unit is equal to Spawnbox is true
Collapse Actions
Collapse If Unit Type of Trained Unit is equal grandpa is true Then (Actions) else do Else (Actions)
Collapse Actions (Then)
Set PlayerIncome[Owner of (Sold Unit)] equals PlayerIncome[Owner Of (Sold Unit)] + 1
Collapse Actions (Else)
Do Nothing
Collapse For Each (Integer A) between 1 and 4, do (actions)
Collapse Actions (Then)
Player - Add PlayerIncome[Integer A] to player[Integer A] current gold
Game - Display Text To Player[Integer A], "You got "+PlayerIncome[Integer A]+" gold"


Is that what your trying to do?