HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Shared Bounty

06-24-2007, 03:12 AM#1
AustralianBeast
Hey, im making a map and i was wondering how to make it so when one playe picks up something like a gold coin that the bounty would be split evenly among the party members. Any feedback is appreciated.
06-24-2007, 03:21 AM#2
TheSecretArts
I dont know the exact code but it would follow this base idea
events
unit obtains an item
conditions
item is equal to coin
actions
set tempval = divide (coin value) by number of allies of owner of triggering unit
pick each player allied to owner of triggering unit and add tempval gold.
06-25-2007, 11:20 AM#3
Histenchist
Trigger:
Shared Bounty
Collapse Events
Unit - A unit Acquires an item
Collapse Conditions
(Item-type of (Item being manipulated)) Equal to Gold Coins
Collapse Actions
Set TempGold = (250 / (Number of players in (All allies of (Owner of (Triggering unit)))))
-------- Change 250 to how much gold you want to share.. --------
Floating Text - Create floating text that reads (String(TempGold)) at (Position of (Item being manipulated)) with Z offset -35.00, using font size 10.00, color (100.00%, 100.00%, 0.00%), and 0.00% transparency
Floating Text - Change (Last created floating text): Disable permanence
Floating Text - Set the velocity of (Last created floating text) to 124.00 towards 100.00 degrees
Floating Text - Change the lifespan of (Last created floating text) to 1.00 seconds
Collapse Player Group - Pick every player in (All allies of (Owner of (Triggering unit))) and do (Actions)
Collapse Loop - Actions
Player - Add TempGold to (Picked player) Current gold

This works pretty good. Just make sure you remove the Chest of Gold ability from the gold coins.
06-25-2007, 11:28 AM#4
Tide-Arc Ephemera
Bahaha! That's exactly the system I'm looking for, now for the evil final finisher of doom... dreaded +Rep...