Income Probleme

nicolas

New Member
Reaction score
2
hi, i want to make this cind of a trigger that if player 1 red has only 1 ''type of building'' then he only gets 300 gold income though if he has 1 type of that building and 1 type of that building he gets 600 gold income (if the player 1 red defeads a players main base he will get his main base and his income will increase) but how can i make a trigger without making it like this every 100 seconds Condition: player 1 red owns ''type 1 building'' actions: give player 1 red 300 gold, event: every 100 sec condition player 1 red owns ''building type 1'' and player 1 owns ''building type 2'' actions: give player red 600 gold. if i need to make it like this i will have like a 1000000 triggers, so is there a way to make a good trigger of it! (so i wont have to make a 100 triggers) ?
 
Hmm, sounds like you could do a trigger with a bunch of 'If/Then/Else' type actions...

Events: Every (however often you want income) seconds
C:
A:
If player 1 has x type of buildings
Then give player 1 y amount of gold
Else do nothing
If player 1 has x type of building1 and x type of building2

So on and so forth, but that's just my take on it...Might be wrong, but you'll just have to give it a shot, won't ya? :D
 
hehe yeah but what if it is like if player 1 have x type of building and x type 2 of building and x type 3 of building :P?
 
When I said 'so on and so forth' that meant I think you can keep doing that for as many different income types as you want. Now, don't get mad if it doesn't work, because I'm not 100% sure it will...That just seemed to be the easiest answer in mind. If Acehart or Ryoko find something simpler: Take their advice over mine! :D
 
Pick every unit owned by "player" of type "some type": add gold

You'll need this for every possible building type.
So, either, a bunch of triggers,
or. one trigger with a couple of those loops inside.

Or, you could make a unit-type array, put all the buildings in it,
then loop through the array...
 
Rofl, heh, told ya they were smarter then me :P
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • Ghan Ghan:
    Probably inflates their numbers so they look better to advertisers.
  • The Helper The Helper:
    Yeah google does not filter those bots. I remember when Apex was doing Google ads I saw the same IPs in there as I was seeing here - google is totally tracking all those bots as traffic and most google traffic, at least ours, was all bots
  • The Helper The Helper:
    oh wow, i bet i can post x links now and do the webp pics now giggity
  • The Helper The Helper:
    ahh anubis blocks anyone that has javascript turned off
  • The Helper The Helper:
    Robot: HTTP client library - i love the new robot :)
  • The Helper The Helper:
    New Science News Forum and it starts out with 420 threads :)
  • The Helper The Helper:
    Technical Support forum name changed To Technology News, there is now a Tech, sci/tech and science forums now :)
  • The Helper The Helper:
    Happy Saturday! Hope everyone has a fantastic weekend!
  • Ghan Ghan:
    We are now on Ubuntu 24.04. Had some issues with the style after the OS/PHP upgrade but now resolved.
    +1
  • Ghan Ghan:
    PHP 8.3 now live
    +1
  • The Helper The Helper:
    Weekend went by too fast. Next weekend I am going to try to do a nature thing - buddy of mine lives by the Colorado river and has some kayaks and invited me to do some kayaking from a place he knows to get on the river.
  • Ghan Ghan:
    That sounds like an adventure.
  • The Helper The Helper:
    400 users all online all looking at latest content
  • The Helper The Helper:
    I wonder how all these bots that sit on the lastest content page get passed anubis or maybe they did not but they are just registering on whos online
  • The Helper The Helper:
    showing up on whos online not registration
  • Ghan Ghan:
    The first gate is stopping all the bots that don't execute javascript.
  • Ghan Ghan:
    That's the main thing with Anubis - no Javascript, no site. Typically you can still get the site to load without Javascript.
  • The Helper The Helper:
    I remember the whole javascript thing, question - how many real people disable that?
  • The Helper The Helper:
    Hell I guess I could go back on the stats to know that - we probably capture that and we know the before and after
  • Ghan Ghan:
    Real users can't really disable Javascript anymore these days.
  • Ghan Ghan:
    The internet is broken without it.
  • Ghan Ghan:
    Bot readable, not human usable.
  • The Helper The Helper:
    got it
  • The Helper The Helper:
    Happy Thursday!
  • The Helper The Helper:
    Check out the new Featured Content feature we apparently got with the forum software upgrade! https://www.thehelper.net/featured/

The Helper Discord

Members online

No members online now.

Affiliates

Hive Workshop NUON Dome World Editor Tutorials
Back
Top