Author Topic: Variable Help!!!  (Read 1520 times)

Hello, Can someone help me with the Variable events?

Im trying to make a small Rpg but the gold doesn't want to show up!
Please leave a comment and help!!!

Code: (Event) [Select]
onActivate => client => BottonPrint => [<color:ffff00>Gold<Color:ffffff>: <var:cl:Gold>]


HELP I NEED HELP FAST!!!


Is the variable "Gold" assigned to the client and are you spelt the variables correctly in any bricks that give gold.

Yes

Code: (Event: Gold Brick) [Select]
onActivate => Client => modFunction => Gold [add] 100

Should be VCEmodVariable, not function.

But it works on the ''CenterPrint'' But not the ''BottomPrint''


The adding brick.
onActivate > Client > VCEmodVariable > Gold [Add] 100
The viewing brick.
onActivate > Client > Bottom Print > "<color:ffff00>Gold<color:ffffff>: <var:client:gold>

i prefer <var:cl/pl:gold>

The adding brick.
onActivate > Client > VCEmodVariable > Gold [Add] 100
The viewing brick.
onActivate > Client > Bottom Print > "<color:ffff00>Gold<color:ffffff>: <var:client:gold>

That worked!

But can you take two or more <var:xxx:xxx>'s at one Botton print?

That worked!
So you listen to him saying exactly the same thing as I said, just rephrased but not me saying it?


But can you take two or more <var:xxx:xxx>'s at one Botton print?
Yes, just put them in [Var1:<var:cl:var1>, Var2:<var:cl:var2>]

VV-No but like-VV

Code: (BottomPrint) [Select]
onActivate => client => BottomPrint => [<color:ffff00>Health<color:ffffff>: <var:pl:health>/<var:pl:MaxHealth>     <color:ffff00>Gold<color:ffffff>: <var:cl:Gold>]

???

Should work. As long as by "/" you aren't actually trying to manipulate the variables. Why not try it before asking?

onActivate > Self > VCE_modVariable {Client} > [Gold] add [1]
onActivate > Client > centerPrint > [<color:FFFF00>Gold<color:FFFFFF>: <var:client:gold>] [3]

If that doesn't work, you're doing it wrong.