Blockland Forums
Home
Help
Login
Register
Blockland Forums
»
Blockland Forums
»
Modification Help
»
[coding help] how to get a bot to accept commands
« previous
next »
Print
Pages: [
1
]
Author
Topic: [coding help] how to get a bot to accept commands (Read 624 times)
Cynic
December 19, 2015, 08:30:07 PM
basically i want to have it so that when i click a bot it will display text along these lines
"Shopkeeper: What would you like to do?
Type 1 to sell ore
Type 2 to buy ore"
And when the player responds with 1 in chat it will not display the message but will call a function to sell ore.
Ad Bot
Advertisement
Darth C3P0
December 19, 2015, 10:02:11 PM
If you have it, try using VCE to do this.
Hawt
December 20, 2015, 10:58:03 AM
my guess is to check if the player is talking to the bot, and if the player is and types in one of those numbers, call the function but don't parent the servercmdmessagesent function (but parent it if the player is not talking to the bot)
Print
Pages: [
1
]
« previous
next »
Blockland Forums
»
Blockland Forums
»
Modification Help
»
[coding help] how to get a bot to accept commands