featurelist.orgfeaturelist.org
 
U
D
-5 points - posted 3364 days ago by sea212 - status: Active - 7 comments watch embed this
This commands will allow in eventscripts, to say the user something and wait for his answere. e.g: you write: estell eventvar(userid) hey, what's your favorite food?
then
esxset food 0
es
cin
estell eventvar(userid) your favorite food is server_var(food)? mmmhhh yummi! i would like this. hope it will be voted :P
-greetz, sea212

Mattie posted on 2008-02-11 17:07:47
The only way I know to do this is via something like es_escinputbox. See this HOWOT:
http://forums.mattie.info/cs/f...p?p=181925

-Mattie

freddukes posted on 2008-02-11 17:49:51
Yeah I'd like this as well... But you can sort of do this with es.escinputbox although not to the extent cin would...

godjonez posted on 2008-02-11 18:24:19
This would be like a blocking command for the script. That's a bit against how the scripts work normally.

sea212 posted on 2008-02-12 12:10:31
that's not what i wanted. i would like it if you could make it that if a es_cin is in the script block / event , stop the block and wait for something that the user writes :P
-greetz, sea212

godjonez posted on 2008-02-12 14:06:45
Exactly, it stops the block execution, which in turn would stop the whole server while waiting for the user input, which would never arrive since the network interface would be stopped as well.

If you meant like EventScripts held a state that once someone types some data, go back to that block and continue executing there, you could just do that yourself; right now a block or event is fired anyway if the user says/inputs something. You would just need to have a separate block, not continue in the same block.

sea212 posted on 2008-02-12 15:07:47
damn :P

PatPeter posted on 2009-11-28 02:51:49
You do know that cin literally means C in? You should have said es_input.

Not saying it would work, just pointing out semantics.