| Blockland Forums > Help |
| Varlinks not working |
| << < (3/4) > >> |
| GenaralSkar:
--- Quote from: colonial killer on January 12, 2012, 02:44:47 PM ---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. --- End quote --- 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. |
| colonial killer:
--- Quote from: GenaralSkar on January 13, 2012, 02:54:58 AM ---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. --- End quote --- 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. |
| Gen. Hothauser:
--- Quote from: colonial killer on January 11, 2012, 04:26:50 PM ---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 --- End quote --- --- Quote from: Gen. Hothauser on January 10, 2012, 09:09:42 PM ---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? --- End quote --- 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. |
| colonial killer:
--- Quote from: Gen. Hothauser on January 14, 2012, 01:25:31 PM ---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. --- End quote --- 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 >= |
| Gen. Hothauser:
--- Quote from: colonial killer on January 14, 2012, 02:06:35 PM ---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 >= --- End quote --- 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. |
| Navigation |
| Message Index |
| Next page |
| Previous page |