View unanswered posts | View active topics It is currently Tue Jan 07, 2025 1:50 am



Reply to topic  [ 19 posts ]  Go to page Previous  1, 2
 VIP Actor 
Author Message
User avatar

Joined: Tue Jun 12, 2007 11:52 pm
Posts: 13144
Location: Here
Reply with quote
Post Re: VIP Actor
Why does it have to be deleted?


Sun Apr 25, 2010 4:29 pm
Profile
User avatar

Joined: Mon Jun 15, 2009 4:02 pm
Posts: 905
Reply with quote
Post Re: VIP Actor
It is deleted to prevent the player from buying discount actors when they don't have the appropriate VIP. The actor doesn't give the discount, the VIP just allows discounted actors to be bought.


Sun Apr 25, 2010 5:05 pm
Profile WWW
User avatar

Joined: Tue Jun 12, 2007 11:52 pm
Posts: 13144
Location: Here
Reply with quote
Post Re: VIP Actor
Why not have it discounted when the VIP is active and not discounted when the VIP isn't active?


Sun Apr 25, 2010 5:06 pm
Profile
User avatar

Joined: Mon Jun 15, 2009 4:02 pm
Posts: 905
Reply with quote
Post Re: VIP Actor
That would be a lot simpler and cooler.
Code:
function Create(self)
   for actor in MovableMan.Actors do
      if actor.PresetName == "Ronin VIP" then
         self.currfunds = ActivityMan:GetActivity():GetTeamFunds(self.Team)
         ActivityMan:GetActivity():SetTeamFunds(self.currfunds+(self.GoldValue*0.5), self.Team)
   break
      else
      end
   end
end

Done and dusted.
This gives the actor it is run on a 50% discount when Ronin VIP is present.


Sun Apr 25, 2010 5:18 pm
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 19 posts ]  Go to page Previous  1, 2

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:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.
[ Time : 0.040s | 13 Queries | GZIP : Off ]