Blockland Forums > Help

Input > Another Name for Stuff VCE

Pages: (1/3) > >>

Goth77:

Ok. So basically here is my scenario. I want to be able to set names via player input. Example, there are print bricks lined up from A-Z and the user is allowed to click 10 of these letters. Each letter will add to the main variable, let's call it FAKENAME for now. so if the user clicks A, the letter A is added to the FAKENAME var. Then the user can click N and have it add N to the FAKENAME var. The user can input up to 10 letters of choice. The next 2 that are chosen are D and Y. The FAKENAME variable now has ANDY set as the FAKENAME.

I tried adding A and then adding B but the problem I have is that you cannot add letters to a VCEMODVar. You can SET it to a single letter or word, but you cannot ADD it, as it will go back to 0. Somehow I need to be able to add letters to a pre-existing variable, this way, I can click A, and then click B and it will add B next to the A, or whichever order they are clicked in. In this manner I can click G-O-T-H-B-O-Y and when I use var:cl:FAKENAME it will show up as Gothboy, instead of just G. I know I could make 10 different FAKENAME vars but that would be a stuffload of eventing for a simple purpose.

Is there a simpler way to do what I am going for, or do I need some sort of FAKENAME event?

Help is much appreciated, I'm stumped!



Zeblote:

Do like this:

onActivate Self VCe_modVariable Blah <var:br:Blah>C

To add a C to the var Blah

Btw, you cannot set player names

Goth77:


--- Quote from: Zeblote on January 30, 2013, 02:38:06 PM ---Do like this:

onActivate Self VCe_modVariable Blah <var:br:Blah>C

To add a C to the var Blah

Btw, you cannot set player names

--- End quote ---

Thats my problem. It wont add C to Blah, but it will SET C to Blah. Also I don't need this for a player name, more like a FAKE VARIABLE NAME, that was created by pressing the corresponding letter. Lemme show you what i am trying to do:



Each time a letter is clicked it will add the letter to the blue flatbricks. So far I have it working ok, but right now its almost 25 lines of events. If I could simply ADD multiple letters to a single variable in order it would save me much time and effort. my loving brain hurts right now. When I click the light blue ? it states the variables on each of the blue plate bricks. Bottom print only has enough room for 2 <var:nb_PrintLetters1:NameStringBrick> so I can only have 2 letters show up correspondingly at once, such as A and B and you can see in the picture. I thought about using chat messages (would need 6 events just for that, 8 if I chose to do 8 like I want)

Really need help D:

Goth77:


--- Quote from: Goth77 on January 30, 2013, 02:54:46 PM ---Thats my problem. It wont add C to Blah, but it will SET C to Blah. Also I don't need this for a player name, more like a FAKE VARIABLE NAME, that was created by pressing the corresponding letter. Lemme show you what i am trying to do:



Each time a letter is clicked it will add the letter to the blue flatbricks. So far I have it working ok, but right now its almost 25 lines of events for each letter brick! If I could simply ADD letters to a single variable in order it would save me much time and effort. my loving brain hurts right now. When I click the light blue ? it states the variables on each of the blue plate bricks. Bottom print only has enough room for 2 <var:nb_PrintLetters1:NameStringBrick> so I can only have 2 letters show up correspondingly at once, such as A and B and you can see in the picture. I thought about using chat messages (would need 6 events just for that, 8 if I chose to do 8 like I want)

Really need help D:

--- End quote ---


Goth77:

dammit, I didn't mean to quote that ^ Help section needs edit button D:

Pages: (1/3) > >>

Go to full version