Making income

thenoobmaper

New Member
Reaction score
2
Ive been wondering how to make income for citizen units. Im currently using a "healing" tax paying abilty, I.E when a unit casts "pay taxes" (heal) abilty the owner gets 10 gold and the units life is set to 98%, causing a loop.
If somebody can figure out a way to make a villager-builder type income please help me because it would be of great help

Thanks :D
 

NiKaNoRoU_GR

New Member
Reaction score
115
EVENTS:
a unit begins casting an ability
CONDITIONS:
ability being cast equal to healing tax
ACTIONS:
Add +10 (property) to X player's current gold
Set life of (triggering unit) to percentage of 98
 

Andrewgosu

The Silent Pandaren Helper
Reaction score
716
Actually,

Code:
Events
Starts the effect of an ability
Conditions
Ability being cast "your ability here"
Actions
Add +10 (property) to X player's current gold
Set life of (triggering unit) to percentage of 98

"a unit begins casting an ability" tends not to work sometimes, or at all.:p
 

thenoobmaper

New Member
Reaction score
2
Sorry

NONONo thats what i already have! i want one that doesnt require an ability to be cast and pays automaticly!

Thank you anyways though :)
 

NiKaNoRoU_GR

New Member
Reaction score
115
Events
Every X seconds of game time
Conditions
Actions
Add +10 (property) to X player's current gold
 

thenoobmaper

New Member
Reaction score
2
Ok heres what i mean

I want the owner of the unit to get 10 gold every 30 seconds PER citizen unit, without having to cast an ability!

plz help me out! :)
 

NiKaNoRoU_GR

New Member
Reaction score
115
Events
Every 30 seconds of game time
Conditions
Total number of unit type (citizens is equal to 1)
Actions
Add +10 (property) to X player's current gold
 

thenoobmaper

New Member
Reaction score
2
:cool: thank you!!!! i shouldve know that, but is there an alternate way to do that without so many triggers? cause that would take forever, with all the combinations and 12 player slots. thatd be like 1000 triggers lol :confused:
 

thenoobmaper

New Member
Reaction score
2
If there isnt an alternate way could you at least tell me where to find the condition for that lol? what is it under?
 

Rabarber

You can change this now in User CP.
Reaction score
94
Code:
Number of units in (Player Group) * 20

Should do it.
 

Rabarber

You can change this now in User CP.
Reaction score
94
Its not a condition! It's a Arithmetic Real/Integer!

Remove all conditions and set the players gold to my trigger string.
 

thenoobmaper

New Member
Reaction score
2
ok sorry im a newb mapper (as the name says) but would this be under events? and if so whats the name of it? :confused:
 

Rabarber

You can change this now in User CP.
Reaction score
94
It would be under actions. Use my action string instead of the ammount of gold given to the player.
 

thenoobmaper

New Member
Reaction score
2
im getting confused. Ok. Is the event for this under "map inintialzation"?
And when i paste what you wrote to the amout of gold given, a 0 is just shown in the place where your code should be. :nuts:
 

Rabarber

You can change this now in User CP.
Reaction score
94
Don't double post.

You can't copy/paste text from what people have written. You will have to copy it manually.
 

thenoobmaper

New Member
Reaction score
2
yeah but is the event for this "map initialization?"

And would ur code go under "add to current gold" or "set current gold"?
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top