Author Topic: Varlinks not working  (Read 1705 times)

I'm not sure if it's because of the V20 BL update or not, but Varlinks don't work for me.

I'm using the correct format
0
  • onactivate - client - chatmessage - <varlink:Add Money_Money:1>

1
  • onvariableupdate - client - ifvariable - Money == 1

2
  • onvariabletrue - client - modvariable- Dollars - add- 500
Could it also possibly because I'm using 10+ different  if statements on the same bick

I'm also wondering if I need to change Ifvariable to ifvalue.


All I can do to help is to ask someone named JazZ he might be able to help. (Find him in game somewhere.)

I think they are values, not variables.

NOEDIT: No, it's a variable. That's strange.

something i need to try is reseting the set variable to nothing and see if that works.

But how will JazZ help me, was he one of the creators of VCE?

Hmmm, I'm JazZ, I seem to know whats going on, are you setting up a cache at the end so that the varaible doesnt go over 1? what i mean is at the end you need to add a

[Delay of 50] Onactivate -> Client -> Modvariable - Money - Set - 0

NOEDIT: Also, you are using the second blank to set up dedication to the events right?

Hmmm, I'm JazZ, I seem to know whats going on, are you setting up a cache at the end so that the varaible doesnt go over 1? what i mean is at the end you need to add a

[Delay of 50] Onactivate -> Client -> Modvariable - Money - Set - 0
You don't have to do this unless you need to check the variable for something where you are choosing multiple varlinks. :1 part sets the variable, it doesn't add it.

You don't have to do this unless you need to check the variable for something where you are choosing multiple varlinks. :1 part sets the variable, it doesn't add it.
I've always set up cache's at the end, im more than sure the :1> adds the variable, because i just tried it at my server.

I've always set up cache's at the end, im more than sure the :1> adds the variable, because i just tried it at my server.
Every time I do this it set the variable, not adds it.

"...and when you clicked that link, the client variable "clicked" (var:client:clicked) would be set to a value of 1."
From the ingame manual.

Every time I do this it set the variable, not adds it.

"...and when you clicked that link, the client variable "clicked" (var:client:clicked) would be set to a value of 1."
From the ingame manual.
On my server i swear it adds, i set up this function
Onactivate -> client -> Chatmessage [<varlink:here_here:1>
Onvariableupdate -> Client -> ifvariable [here] >= [1]
Onvariabletrue -> client -> chatmessage -> [Var:cl:here>]


I got the message repeatadly going upwards in numbers.

Hmmm, I'm JazZ, I seem to know whats going on, are you setting up a cache at the end so that the varaible doesnt go over 1? what i mean is at the end you need to add a

[Delay of 50] Onactivate -> Client -> Modvariable - Money - Set - 0

something i need to try is reseting the set variable to nothing and see if that works.

But how will JazZ help me, was he one of the creators of VCE?

guess i didnt say it right
but i think i had done this on a few of my varlink bricks but im not sure. 

the example i posted is also an extremely dumbed down and simplified event than what i normally do because i didnt feel like remaking the 70+ events for a bank.

but im going to try to reset the "money" variable to 0.

also, is it possible to set a variable, such as "bank" to a word amount, such as "DEP" for deposit or "WITH" for withdraw, or should i just use numbers, ive been using "dep" and "with"

and also again, is there some way i can copy a brick's events and insert them into a forum post?  that would make it a whole lot easier.

im not going to get back to my computer until monday so ill have to test it then.

guess i didnt say it right
but i think i had done this on a few of my varlink bricks but im not sure. 

the example i posted is also an extremely dumbed down and simplified event than what i normally do because i didnt feel like remaking the 70+ events for a bank.

but im going to try to reset the "money" variable to 0.

also, is it possible to set a variable, such as "bank" to a word amount, such as "DEP" for deposit or "WITH" for withdraw, or should i just use numbers, ive been using "dep" and "with"

and also again, is there some way i can copy a brick's events and insert them into a forum post?  that would make it a whole lot easier.

im not going to get back to my computer until monday so ill have to test it then.

Variable's can be set to words/letters, yes.
No you cannot convert events to text,
and i noticed another little flaw, instead of using == for the Money variable try using >=

Variable's can be set to words/letters, yes.
No you cannot convert events to text,
and i noticed another little flaw, instead of using == for the Money variable try using >=

again, my example was very dumbed down.  the only use for == in my example to check the updated variable, not checking for the amount of money the person has.  if i were to use >= for the events im using in my bank and skyscraper where, at least for the TBTskyscraper being about 50 stories tall, it simply would not work.

i also have another dilemma.

with the bank for my city that im trying to make as realistic as possible, im trying to make a bank brick, separate from the "deposit, withdraw money" brick that when clicked allows someone to steal all of the money that people have stored in that one bank but still allow the owner of the money to be able to take that money out.  im assuming i would accomplish this task by transferring the client's money to a brick and saving that variable as the player's BL_ID.  to avoid overlaping money at different banks, i was wondering if i could make a complex variable made out of an already existing variable and another word, such as "bankname<var:cl:blid>"

i forget if its specifically blid or another word for their BL_ID.

sorry, long post.  i would figure this out but im away from my computer at the moment.