Author Topic: Mystery box help  (Read 1043 times)

WEll i made a mystery box but i dont know how to get money from vce

does any one know how to get money?
Code:

X 0ms    onActivate    Player    VCE_ifVariable    money    >=    950    1 2 21
X 0ms    onVariableFalse    Client    ChatMessage    You dont have enough money to use the random item box, You require 950
X 33ms    onVariableTrue    Self    fireRelay
X 0ms    onRelay    Self    VCE_retroCheck    ifRandomDice    ==    1    9 10
X 0ms    onRelay    Self    VCE_retroCheck    ifRandomDice    ==    2    11 12
X 0ms    onRelay    Self    VCE_retroCheck    ifRandomDice    ==    3    13 14
X 0ms    onRelay    Self    VCE_retroCheck    ifRandomDice    ==    4    15 16
X 0ms    onRelay    Self    VCE_retroCheck    ifRandomDice    ==    5    17 18
X 0ms    onRelay    Self    VCE_retroCheck    ifRandomDice    ==    6    19 20
X 0ms    onVariableTrue    Client    CenterPrint    You got a 30 cal machine gun    3
X 0ms    onVariableTrue    Player    addItem    Hammer
X 0ms    onVariableTrue    Client    CenterPrint    You got a shotgun!    3
X 0ms    onVariableTrue    Player    addItem    Hammer
X 0ms    onVariableTrue    Client    CenterPrint    You got a alien blaster    3
X 0ms    onVariableTrue    Player    addItem    Hammer
X 0ms    onVariableTrue    Client    CenterPrint    You racived an M4A1    3
X 0ms    onVariableTrue    Player    addItem    Hammer
X 0ms    onVariableTrue    Client    CenterPrint    You got an SMG    3
X 0ms    onVariableTrue    Player    addItem    Hammer
X 0ms    onVariableTrue    Player    addItem    Hammer
X 0ms    onVariableTrue    Client    CenterPrint    You got an Molotov roostertail    3
X 100ms    onVariableTrue    Player    VCE_modVariable    money    Subtract    950


How what do you mean? I've already tried replacing money with points
Oh and I'm using money mod and I think I need cash mod

Try var:cl:score or is it var:pl:score

Problem: You are checking the random numbers but never stating that a random is starting.

I already tried that I just said
Well how do you star it?

Try var:cl:score or is it var:pl:score
<var:cl:score>

also, on the first line "1 2 21" as the target lines, i thought it only checked between the 2 numbers, and didn't have 3
move line 21 to line 2, delete the old line 2, change onrelay to onvariabletrue, then change the target from "1 2 21" to "1 8"

I wasn't talking to you I already tries
D that,...

i'm just going on the most recent information you've given on the events, and i don't see anywhere the suggestion to remove the relay and set the target lines to 2 values