Gold Per Kill/Gold Per second or minute

Wark

Animal
Reaction score
27
Hello im jut wondering how to get gold per kil or gold per minute on WE.
I am working on a custom WCIII:FT map. Thanks
 
it is done with triggers
player property turn bointies on
this will open the bointies on players and u will get floating text with the money amount like killing creeps

and for gold every second
u again use triggers
event
every bla bla second of game time
condition
(your conditions)
action
player property add bla bla gold to players current gold
 
You didnt really help him there... with the Blah Blah Blah's

Here is da trigger, no blah blah's i promise. :)

Timed

Code:
 Per minute
    Events
        Time - Every 60.00 seconds of game time
    Conditions
    Actions
        Player - Add 1 to Player 1 (Red) Current gold

Kills

Code:
 Per kill with special effects
    Events
        Unit - A unit Dies
    Conditions
    Actions
        Player - Add 1 to (Owner of (Killing unit)) Current gold
        Special Effect - Create a special effect attached to the chest of (Dying unit) using UI\Feedback\GoldCredit\GoldCredit.mdl
 
Axe.killer said:
You didnt really help him there... with the Blah Blah Blah's

Here is da trigger, no blah blah's i promise. :)

Timed

Code:
 Per minute
    Events
        Time - Every 60.00 seconds of game time
    Conditions
    Actions
        Player - Add 1 to Player 1 (Red) Current gold

Kills

Code:
 Per kill with special effects
    Events
        Unit - A unit Dies
    Conditions
    Actions
        Player - Add 1 to (Owner of (Killing unit)) Current gold
        Special Effect - Create a special effect attached to the chest of (Dying unit) using UI\Feedback\GoldCredit\GoldCredit.mdl


Just to make a few things:
Player - Add 1 to (Owner of (Killing unit)) Current gold <=== set this to player group so you only have to do once (no copying/pasting).

And a more Advanced bounty (gold on kill) check the free trigger code thread, on page 3 (posted by me).
If you do this you can get different amounts of gold from different units. But if you want you can also get different amounts of gold from different units using a trigger like:

Code:
    Events
        Unit - A unit Dies
    Conditions
        Unit - Unit Type Equal to (Giant Spider)
    Actions
        Player - Add [B]10[/B] to (Owner of (Killing unit)) Current gold
        Special Effect - Create a special effect attached to the chest of (Dying unit) using UI\Feedback\GoldCredit\GoldCredit.mdl

For more control really.
-Husky
 
juts turn bounties on for player

why you use that much triggers? it is more customisable in the object editor like adding posibilities which means bounty does not always same which gives a bit difference from map to map... also there is a nice bounty floating text when you kill people... :confused:
 
Yeah but if you have all ur units give the same amount of gold it would be easier to just use a trigger... But if there all diffrent bounty would be the way to go.
 
Just create floating text attatchment. Create variable grp_specialeffect. Then set grp_specialeffect to last created special effect, wait 3 seconds of game, destroy last created special effect.
 
I accualy wanted to avoid the floating text, but thx anyways. Well I got it to work.:) So thanks for all you help guys.

Now im struggling with creep respawn..
 
There'a map in the Free Trigger Code thread that shows some ideas for respawning creeps.

Our Tower Defense tutorial may also have something you might want to read.
 
Creep Respaw Code

Here Its His, a Creep Respaw Code.
(Its a code Edited from Ryoko Free Trigger Code, I just Edited It a Litle, I can't Take Full Credit for it)

This Trigger Code is Easy to use and you can easly learn from it.

Just make sure to Credit Ryoko for it.

Any Question, at any time just ask me ;) [email protected]

Looking for Partners for a Mapping Group (From Newbies to Pros)
 
Well..

There's one in the free trigger code.





_______________________________

:banghead: Ouch :banghead: Ouch
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • V-SNES V-SNES:
    Happy Friday!
    +1
  • The Helper The Helper:
    we were down for a minute - think a log file or something got too big
    +1
  • Ghan Ghan:
    The alerts say it was down for a while unfortunately.
  • Ghan Ghan:
    Didn't know what was going on while I was at work.
  • Ghan Ghan:
    Disk filled up with logs. Fixed now.
    +1
  • The Helper The Helper:
    not a problem at all thanks for getting us back up
  • The Helper The Helper:
    I think the bots are finding a way to get through the anubis
  • The Helper The Helper:
    Happy Wednesday Everyone! Hope everyone has a Fantastic Day!
    +1
  • The Helper The Helper:
    Yeah, stats are showing big bot influx like 12k page views.
  • Wizard Wizard:
    :wave:
    +1
  • Ghan Ghan:
    TH changed his avatar again. 6 more weeks of summer.
    +3
  • Wizard Wizard:
    lol
    +1
  • The Helper The Helper:
    Guys just a heads up I am going to be shutting the site down soon. I am just waiting on the NUON people to decide whether they want to transfer forum data and keep the discord. My email is [email protected] for anyone that wants to keep in touch and I have a facebook too. I will make an official post later. Love you guys and will miss everyone!
    +1
  • V-SNES V-SNES:
    Sent a pm @The Helper
  • Stephen Stephen:
    Oh no - please don't lose the Nuon content
  • The Helper The Helper:
    Someone email AtariAge and see if they want me to transfer the forum data over to it
  • Ghan Ghan:
    Could probably keep NUON stuff around here if we wanted.
  • Ghan Ghan:
    Hmm what to do about the World Editor site though?
  • Stephen Stephen:
    I'd rather personally just own a backup of the Nuon data than see it go to AtariAge honestly. If it gets enshittified as per usual, or if some of the "regular" Jaguar folks get there, it's not gonna be fun
  • The Helper The Helper:
    There will be a github of the forum data so the NUON Forum Data I guess would be available there
  • The Helper The Helper:
    World Editor is technically Ryoko stuff not mine you guys can keep that I am not in that even
  • jonas jonas:
    :( end of an era :(
  • The Helper The Helper:
    Dont think of it as an end jonas - think of it as a beginning, because really my friend that is what it is.
  • The Helper The Helper:
    Also, anyone who is reading this and is sad - don't be, turn off the Internet, step away from the box - enjoy your life - there is so much more out there for you than there is here for you.

The Helper Discord

Members online

No members online now.

Affiliates

Hive Workshop NUON Dome World Editor Tutorials
Back
Top