HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Another noob Q about gold

12-26-2003, 12:47 AM#1
Nirvana1994
How do i set it up so that when a player kills another player he recieves gold? -_-
12-26-2003, 01:05 AM#2
AllPainful
Turn on bounty for the player being killed at the begining of the map, if you want all players to get bounties for killing eachother, then turn on bounty for all the players at map init.

A trigger like this:
Code:
Event
  Map init
Conditions
Actions
  Pick all players
    Turn on Bounty for (Picked Player)

The bounty action is a "Player - Flag"

You can edit the amount of bounty in the Object editor. Each unit gives a different amount of bounty, and you can edit the amount there.

If you want all units to give the same bounty, you should prolly do it with triggers, like so:
Code:
Event
  A unit dies
Conditions
  Owner of (Dying unit) is ally of owner of (killing unit) equal to FALSE
  Owner of (Dying unit) is Owner of (killing unit) equal to FALSE
Action
  Add 1 gold to player (owner of(killing unit))
12-31-2003, 10:39 PM#3
Nirvana1994
Didn't work...

:: cries :::lch: :cuss: :...: :hm:
01-01-2004, 03:39 AM#4
AllPainful
What didn't work.

I gave you 2 ways to do it, and I know both work....

Post your trigger so I can see whats wrong with it.
01-01-2004, 04:17 AM#5
Nirvana1994
GoldGive
Events
Map initialization
Conditions
Actions
Player Group - Pick every player in (All players) and do (Player - Turn Gives bounty On for Player 1 (Red))
Player Group - Pick every player in (All players) and do (Player - Turn Gives bounty On for Player 2 (Blue))
Player Group - Pick every player in (All players) and do (Player - Turn Gives bounty On for Player 3 (Teal))
Player Group - Pick every player in (All players) and do (Player - Turn Gives bounty On for Player 4 (Purple))
Player Group - Pick every player in (All players) and do (Player - Turn Gives bounty On for Player 5 (Yellow))
Player Group - Pick every player in (All players) and do (Player - Turn Gives bounty On for Player 6 (Orange))
Player Group - Pick every player in (All players) and do (Player - Turn Gives bounty On for Player 7 (Green))
Player Group - Pick every player in (All players) and do (Player - Turn Gives bounty On for Player 8 (Pink))
01-01-2004, 05:00 AM#6
AllPainful
Quote:
Originally posted by nathanmx
Dude, I think it's called "Set Player Flag" or something like that. I could be wrong... but I think there is a trigger for it. Just use the nifty search function in the new action box and search for "flag" or "set player flag". Use the triggers you find and bam you're done!

Best Regards,
Nathanmx


Its is "Set player flag" thats what "Player - Turn Gives bounty On for Player #" is......

And his trigger is CORRECT (Kind of)....

Nirvana1994 you have "Player Group - Pick every player in (All players) and do (Player - Turn Gives bounty On for Player 8 (Pink))" when it should be just "Player - Turn Gives bounty On for Player 8 (Pink)", there is NO need for the pick every player thing.

But if you want ALL players to give bounty when killed by an enemy, just do "Player Group - Pick every player in (All players) and do (Player - Turn Gives bounty On for (Picked Player))"

Maybe you don't have bounty set in the object editor? Each unit has its own bounty value that should be set in the object editor.
01-01-2004, 05:31 AM#7
Nirvana1994
Ok, this is for a paintball map, I made all units bounty 2/0/0, and the triggers that i displayed, i kill the unit, nothing drops at all, this is extremely frustrating:cuss:
01-01-2004, 06:14 AM#8
AllPainful
You set bounty to Base 2, dice 0, sides 0? Try Base 1, dice 1, sides 1... its the same amount of total (2)....

Maybe try changing the Event in your trigger to "Game - Time elapsed 1 second" instead of map initialization.

Disable the trigger you made above, and make one that looks EXACTLY like this:
Code:
Event
  Game - Elapsed time 1 seconds
Conditions
Actions
  Pick every player in (all players)
   Loop Actions
    Player - Turn Gives bounty On for Player (Picked Player)

DROPS??????????? Bounty doesn't DROP... its automatically added to your current gold............
01-01-2004, 09:46 PM#9
Nirvana1994
I did exactly what is listed above, and it still does NOT work!!

:...: :cuss: :cuss:
01-02-2004, 12:04 AM#10
AllPainful
Then your doing something wrong, because I know for a FACT that it does work if done properly, maybe there is a mistake in the trigger some where.... I used it in my maps and it worked fine....

E-mail it to me at .... and I will be glad to take a look at it and see if I can find whats wrong.




EDIT: Problem found!!!
Quote:
Qouted from AllPainful

But if you want ALL players to give bounty when killed by an enemy, just do "Player Group - Pick every player in (All players) and do (Player - Turn Gives bounty On for (Picked Player))"

Because you set all players to allies in your init trigger is why it doesn't work. And I can see why you set them to allies, so you won't be able to do it with the player flag.

Instead. Try this: You have a leaderboard update trigger, that triggers when a player kills another, just put a "Player Property - Add 1 gold to player (owner of unit(killing unit))" in that trigger.
01-02-2004, 03:24 AM#11
Nirvana1994
Didn't work.... :bangH: :dance:
01-02-2004, 09:38 PM#12
LegolasArcher
What didnt work?!?

the exact trigger is
Code:
Events:
  Unit - A unit Dies
Actions:
  Player - Set (Owner of (Killing unit)) Current gold to (((Owner of (Killing unit)) Current gold) + 1)
01-02-2004, 09:44 PM#13
AllPainful
Quote:
Originally posted by LegolasArcher
What didnt work?!?

the exact trigger is
Code:
Events:
  Unit - A unit Dies
Actions:
  Player - Set (Owner of (Killing unit)) Current gold to (((Owner of (Killing unit)) Current gold) + 1)


Actually even THAT is more than you need.

This should work:

Code:
Events:
  Unit - A unit Dies
Actions:
  Player - Add 1 Current gold to (((Owner of (Killing unit))
01-02-2004, 10:19 PM#14
Nirvana1994
It's works omg, RAWR RAWR!! :ggani:

Now... how do i make a trigger that allows the camera to switch from overhead to behind view -_-