View unanswered posts | View active topics It is currently Thu Apr 25, 2024 2:41 pm



Reply to topic  [ 2 posts ] 
 Give gold to the enemy team 
Author Message

Joined: Sun May 18, 2008 5:47 am
Posts: 265
Reply with quote
Post Give gold to the enemy team
For when you want a real fight, because with my experience so far... They run out of money and just sit there and stare at you.
Maybe a sniper that just fires gold?

Simple idea, and I could do it myself if I actually had any freetime...


Wed Jun 06, 2012 10:10 pm
Profile
Data Realms Elite
Data Realms Elite
User avatar

Joined: Fri Jan 07, 2011 8:01 am
Posts: 6211
Location: In your office, earning your salary.
Reply with quote
Post Re: Give gold to the enemy team
Or you could create an item which has a script which goes:
Code:
function Create(self)
        self.GoldGiven = 2000
        for actor in MovableMan.Actors do
              if actor.Team ~= 0 then
                     self.OpposingTeam = actor.Team
              end
        end
   self.TeamFunds = ActivityMan:GetActivity():GetTeamFunds(self.OpposingTeam)
   ActivityMan:GetActivity():SetTeamFunds(self.TeamFunds + self.GoldGiven, self.OpposingTeam)
end


That should work as long as you are the red team. This is just a quick thing, it might not work.


Thu Jun 07, 2012 1:12 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 2 posts ] 

Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.
[ Time : 0.140s | 15 Queries | GZIP : Off ]