Author Topic: Points as cash  (Read 685 times)

I want to know how Tomtom from Tomtom's Trench TDM was able to make the weapons cost points, the players made by killing other players. Example: Stick grenade is 70 points, sniper is 250 ponits, pistol is 10 points.


Variable Events.
And if you search, there's plenty of tutorials on Var events.

Well I have been searching but find anything that show how to take points you make from killing other players in a mini-game. But I think the VCE could be it but I'm still looking.

$Brick
Code: [Select]
# Event Saver v0.1 - 08/22/11 11:07:29
X 0ms onActivate Self VCE_ifValue <var:cl:score> >= 70
X 0ms onVariableTrue Client IncScore -70
X 0ms onVariableTrue Player VCE_modVariable CS Set 1
X 0ms onVariableTrue Client CenterPrint <color:FFFFFF>Gun Bought Click On !  When Ever You Want It. 3
X 0ms onVariableFalse Client CenterPrint <color:FFFFFF>Not Enough Points.help 3

!Brick
Quote
# Event Saver v0.1 - 08/22/11 11:07:46
X 2ms   onActivate   Player   VCE_ifVariable   CS   ==   1   
X 2ms   onVariableTrue   Player   addItem   Classic Rifle
X 2ms   onVariableFalse   Client   CenterPrint   <color:FFFFFF>You Havent Bought This Gun Yet.   3
X 2ms   onVariableTrue   Self   VCE_saveVariable   Player   CS
X 1ms   onActivate   Self   VCE_loadVariable   Player   CS
X 0ms   onVariableTrue   Client   CenterPrint   <color:FFFFFF>Item Added To Inventory.   3

ever science hosting this is the most asked thing :D

$Brick
Code: [Select]
# Event Saver v0.1 - 08/22/11 11:07:29
X 0ms onActivate Self VCE_ifValue <var:cl:score> >= 70
X 0ms onVariableTrue Client IncScore -70
X 0ms onVariableTrue Player VCE_modVariable CS Set 1
X 0ms onVariableTrue Client CenterPrint <color:FFFFFF>Gun Bought Click On !  When Ever You Want It. 3
X 0ms onVariableFalse Client CenterPrint <color:FFFFFF>Not Enough Points.help 3

!Brick
ever science hosting this is the most asked thing :D

Why do you store ownership on the player object? And how do you persist it from it?

on TTDM it saves to the client, thats the original draft from before :D

That and on the second brick it loads and saves so its always up

on TTDM it saves to the client, thats the original draft from before :D

That and on the second brick it loads and saves so its always up
Bleh.
Anyway, why is the first block a code block but the second one a quote block?

lol i guess i pressed the wrong button

$Brick
Code: [Select]
# Event Saver v0.1 - 08/22/11 11:07:29
X 0ms onActivate Self VCE_ifValue <var:cl:score> >= 70
X 0ms onVariableTrue Client IncScore -70
X 0ms onVariableTrue Player VCE_modVariable CS Set 1
X 0ms onVariableTrue Client CenterPrint <color:FFFFFF>Gun Bought Click On !  When Ever You Want It. 3
X 0ms onVariableFalse Client CenterPrint <color:FFFFFF>Not Enough Points.help 3

!Brick
ever science hosting this is the most asked thing :D




Thanks it worked! =)