Author Topic: Variable Text Choosing system?  (Read 633 times)

Hi, I need help with some events.
Its a menu that you can choose from.
Example:
------------------
Choose one.
1. Option 1
2. Option 2
3. Option 3
------------------
Would it be possible with events, to make so that when I type 1 with this menu up, it says You selected option one?

[0]>
  • >[OnActivate]>[Self]>[FireRelay]
  • [1]>[500]>
[OnRelay>[Self]>[FireRelay]

[2]>
  • >[OnRelay]>[Self]>[VCEifValue]>[Var:cl:lastmsg][==][1][5 7]
  • [3]>
  • >[OnRelay]>[Self]>[VCEifValue]>[Var:cl:lastmsg][==][2][8 10]
  • [4]>
  • >[OnRelay]>[Self]>[VCEifValue]>[Var:cl:lastmsg][==][3][11 13]
  • [5]>
  • >[OnVariableTrue]>[Self]>[SetEventEnabled][1][Untick]
  • [6]>[1000]>
[OnVariableTrue]>[Self]>[SetEventEnabled][1][Tick]
[7]>
  • >[OnVariableTrue]>[Do Stuff for option 1]
  • [8]>
  • >[OnVariableTrue]>[Self]>[SetEventEnabled][1][Untick]
  • [9]>[1000]>
[OnVariableTrue]>[Self]>[SetEventEnabled][1][Tick]
[10]>
  • >[OnVariableTrue]>[Do Stuff for option 2]
  • [11]>
  • >[OnVariableTrue]>[Self]>[SetEventEnabled][1][Untick]
  • [12]>[1000]>
[OnVariableTrue]>[Self]>[SetEventEnabled][1][Tick]
[13]>
  • >[OnVariableTrue]>[Do Stuff for option 3]


I believe that should work. However I suspect there is a better way of doing this, and undoubtedly this will be glitchy. Spacing is to help understand what I'm doing.

Thanks! Btw, are any add-ons need for this?

Code: [Select]
[0]>[0]>[OnActivate]>[Self]>[FireRelay]
[1]>[500]>[OnRelay>[Self]>[FireRelay]

[2]>[0]>[OnRelay]>[Self]>[VCEifValue]>[Var:cl:lastmsg][==][1][5 7]
[3]>[0]>[OnRelay]>[Self]>[VCEifValue]>[Var:cl:lastmsg][==][2][8 10]
[4]>[0]>[OnRelay]>[Self]>[VCEifValue]>[Var:cl:lastmsg][==][3][11 13]

[5]>[0]>[OnVariableTrue]>[Self]>[SetEventEnabled][1][Untick]
[6]>[1000]>[OnVariableTrue]>[Self]>[SetEventEnabled][1][Tick]
[7]>[0]>[OnVariableTrue]>[Do Stuff for option 1]

[8]>[0]>[OnVariableTrue]>[Self]>[SetEventEnabled][1][Untick]
[9]>[1000]>[OnVariableTrue]>[Self]>[SetEventEnabled][1][Tick]
[10]>[0]>[OnVariableTrue]>[Do Stuff for option 2]

[11]>[0]>[OnVariableTrue]>[Self]>[SetEventEnabled][1][Untick]
[12]>[1000]>[OnVariableTrue]>[Self]>[SetEventEnabled][1][Tick]
[13]>[0]>[OnVariableTrue]>[Do Stuff for option 3]

I believe that should work. However I suspect there is a better way of doing this, and undoubtedly this will be glitchy. Spacing is to help understand what I'm doing.

Ugh, damn annoying BBC

I think the only add-ons you would need is VCE

Ugh, damn annoying BBC

I think the only add-ons you would need is VCE
Okay thanks! :D

Let me approach this a different way.

Code: [Select]
[X] 0 [0] onActivate > Self > cancelEvents
[X] 1 [33] onActivate > Self > fireRelay
[X] 2 [500] onRelay > Self > fireRelay
[X] 3 [0] onActivate > Client > chatMsg > [<color:666666>==========<br><color:FFFF00>Please select an option below:<br><color:666666>----------<br><color:FFFFFF>1. (Option)<br>2. (Option)<br>3. (Option)<br><color:666666>==========
[X] 4 [0] onRelay > Self > VCE_ifValue > [<var:client:lastmsg>] == [1] [7 9]
[X] 5 [0] onRelay > Self > VCE_ifValue > [<var:client:lastmsg>] == [2] [7 9]
[X] 6 [0] onRelay > Self > VCE_ifValue > [<var:client:lastmsg>] == [3] [7 9]
[X] 7 [0] onVariableTrue > Self > VCE_callFunction > [<var:client:lastmsg>] [ ]
[X] 8 [0] onVariableTrue > Self > setEventEnabled > [2] [ ]
[X] 9 [0] onVariableFalse > Self > setEventEnabled > [2] [X]
[X] 10 [0] onRelay > Self > VCE_stateFunction > [1] [13 13]
[X] 11 [0] onRelay > Self > VCE_stateFunction > [2] [14 14]
[X] 12 [0] onRelay > Self > VCE_stateFunction > [3] [15 15]
[X] 13 [0] onVariableFunction > {Events for functions go here}
[X] 14 [0] onVariableFunction > {Events for functions go here}
[X] 15 [0] onVariableFunction > {Events for functions go here}

This allows multiple options with ease.


I forgot to display the options =3...


Try using [nobbc]
I didn't know this.

Thanks Guys. Deathwishes does yours require any add-ons?

Thanks Guys. Deathwishes does yours require any add-ons?
His requires the most up to date version of VCE.

Deathwisez, Yours is very buggy.
Zenloth, Yours dosent work at all.
Do you guys know were to find diggys metropolis rp system?

Mine works -_- I just tested it.

Revised version: Less glitchy.




I don't know where to get it.

Deathwisez, Yours is very buggy.
Zenloth, Yours dosent work at all.
Do you guys know were to find diggys metropolis rp system?
That's a private script, Diggy has it only, and if you ask for it Diggy will reply "no"
And, I think the thing your speaking about is
Code: [Select]
serverCmdHere(%client)
{
 messageclient('%client',"This is what your speaking about?");
}
I think that what he means by it, if you play Diggy's Metropolis RP, and you click a ATM brick, You'll see like
1. Withdraw
2. Deposit
3. Deposit All money
Like that.
I think that script works, I do NOT know, anyone correct me if I am wrong.
(Also, has anyone seen Diggy's server up?)