Author Topic: Prompt Events Trouble  (Read 625 times)

I am trying to create a profession trainer for an RPG I am making and this is what I have that is not working:

onBotActivated - Client - VCE_ifVariable [profession] != [1] [13 13]
onVariableTrue - Self - promtClient - OK/Cancel [<color:ffff00>Lumberjack Trainer <color:ffffff>: Would you like to train to become a lumberjack? You can only train in one profession! This profession comes with log gathering. [14 16]
onPromptAccept - Client - VCE_modVariable [profession] [Set] [1]
onPromptAccept - Client - VCE_modVariable [LJ] [Set] 1
onPromptDecline - Client - ChatMessage [<color:ffff00>Lumberjack Trainer<color:ffffff>: Alright later.

Before all these events, I have some onBotSpawn - Bot - EditAppearance events to make him look like a Lumberjack. Hopefully that doesn't interfere..

Btw, the onBotActivated event is event #12

It would be helpful if you told us what actually happened. There could be a lot of things wrong. Infact, I think prompt events don't work a decent amount of the time.

It would be helpful if you told us what actually happened. There could be a lot of things wrong. Infact, I think prompt events don't work a decent amount of the time.

No, prompt events always work... for me anyways. What's trippy about them is that he last box, the range, doesn't act in the same way as VCE when you have multiple functions to carry out. Try changing that 1 on the end to 1, 2 (or whatever numbers the onPrompts are)

No, prompt events always work... for me anyways. What's trippy about them is that he last box, the range, doesn't act in the same way as VCE when you have multiple functions to carry out. Try changing that 1 on the end to 1, 2 (or whatever numbers the onPrompts are)
I went to his server and got him hooked up with varlinks, and I cleaned up some other things he had. All is now fine.

No, prompt events always work... for me anyways. What's trippy about them is that he last box, the range, doesn't act in the same way as VCE when you have multiple functions to carry out. Try changing that 1 on the end to 1, 2 (or whatever numbers the onPrompts are)

Oh yeah yeah. I totally forgot I implemented that. I'm pretty sure I had it so you can enter something like 1, 15, 3, 7-11 to trigger events "1 3 7 8 9 10 11 15". It also parses out junk incase you leave out or add in whitespace, or even type non-numeric characters by accident.

Oh yeah yeah. I totally forgot I implemented that. I'm pretty sure I had it so you can enter something like 1, 15, 3, 7-11 to trigger events "1 3 7 8 9 10 11 15". It also parses out junk incase you leave out or add in whitespace, or even type non-numeric characters by accident.

Ya... that's how you made it. Why didn't you just make it the same as VCE?