Author Topic: Event Help  (Read 439 times)

I'm trying to make a pet brick with some data stored in it so it can have some artificial intellegence. So like its supposed to be when I touch the brick it will say a random number and that random number will give me a random sentence out of all the sentences that was stored into its data. And if I give it a command like "Do you like it?", it will tell me either yes or no. I tried to come up with the events for it but somehow the sentences wont come out while the random numbers were generated.
But here's the event I came up with currently.

Onactivate - Self - VCEModVariable - Brick Random Set 0
Onactivate - Self - VCEModVariable - Brick Random Random 2
Onactivate - Self - VCEIfVariable - <var:br:random> == 2 [3 3]
OnVariableTrue - Client - ChatMessage - <color:ffff00>ChocoPet<color:ffffff>: Hi!
Onactivate - Self - VCEIfVariable - <var:br:random> == 1 [5 5]
OnVariableTrue - Client - Chatmessage - <color:ffff00>ChocoPet<color:ffffff>: Goodbye

Of course this is not the full version of the event but I just thought it would be better to fix the lite version before adding more data.

My brain blew up after you said what it was suppose to do *Farewell Swat 3 He will be Missed X.x

My brain blew up after you said what it was suppose to do *Farewell Swat 3 He will be Missed X.x
Almost every single post you've made since you've joined has been in the help section, and none of them have been at all helpful. No, you will not be missed.


Anyways, as for your problem, change '<var:br:random>' in the VCEIfVariable events to just 'random'
Also your random number will be between 0 and 2, not 1 and 2.

I try man I try *tear*

Almost every single post you've made since you've joined has been in the help section, and none of them have been at all helpful. No, you will not be missed.


Anyways, as for your problem, change '<var:br:random>' in the VCEIfVariable events to just 'random'
Also your random number will be between 0 and 2, not 1 and 2.
DUDE THANK YOU SOO MUCH I LOVE YOU (not really) YOU ARE AWESOME DUDE!  :cookie: :cookie: :cookie: :cookie: :cookie: :cookie:

I will leave this topic unlocked just in case.