TinTin++ Mud Client The TinTin++ message board

 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
TinTin++ Mud Client

Python scripting

 
Post new topic   Reply to topic    The TinTin++ message board Forum Index -> Script Help
View previous topic :: View next topic  
Author Message
ezeike



Joined: 02 Aug 2016
Posts: 1

PostPosted: Tue Aug 02, 2016 3:32 pm    Post subject: Python scripting Reply with quote

I'd like to have a python script that:

- Receives all text from the mud
- Receives all commands from the user
- Can send commands on its own

I have looked in the forums at the other python posts and it didn't seem possible.
Back to top
View user's profile Send private message
PowerGod



Joined: 04 Aug 2014
Posts: 339

PostPosted: Tue Aug 16, 2016 4:17 pm    Post subject: Reply with quote

Should be tt++ that sends the text to the script, and calling it...

Anyway I don't know if it's possible to send to it the command written by the user...

Seems to me you want to over-complicate things... just use tt++ scripts, it's faster, and maybe run a python script for only those things that really you can't obtain with the main language...
Back to top
View user's profile Send private message
Scandum
Site Admin


Joined: 03 Dec 2004
Posts: 3770

PostPosted: Thu Aug 25, 2016 6:37 pm    Post subject: Reply with quote

You could try running a python shell using #run and send information back and forth, but it is tricky. There's a Lua example for doing so in the script section on the website.
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    The TinTin++ message board Forum Index -> Script Help All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Get TinTin++ Mud Client at SourceForge.net. Fast, secure and Free Open Source software downloads Get TinTin++ Mud Client at SourceForge.net. Fast, secure and Free Open Source software downloads
TinTin++ Homepage

Powered by phpBB © 2001, 2002 phpBB Group