This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

New to Eggdrop/TCL: Scripts vs. Modules

Help for those learning Tcl or writing their own scripts.
Post Reply
I
Ikelos
Voice
Posts: 1
Joined: Fri Apr 09, 2010 2:05 pm

New to Eggdrop/TCL: Scripts vs. Modules

Post by Ikelos »

Dear Egghelp community,

I apologize in advance if my thread's title is misleading, inaccurate, or if the thread is inappropriate for this forum. I am a programmer with a background in C, C++, and Java. Recently, I have embarked on a journey with my friend in Grad School to set up an IRC server dedicated to running a roleplaying game (for those of you unfamiliar with roleplaying games, I will try not to get too technical). We have already been able to implement a dice feature, but now, I am attempting to tackle the responsibility of having a script to handle character sheet data (statistics such as strength, character descriptions, and health levels [which has more than the binary hurt/not-hurt option in our game]). I have seen implementations on other IRC sites, some where each user registers their username and receives special character data related to the username.

I am relatively new to programming in general, still an undergrad student in University, and most of what we are taught currently are object oriented design principles. While creating the character sheet as an object would be relatively simple to implement in C++ or Java, I am daunted by attempting this in the TCL scripting language. I am aware that Eggdrop includes loadable modules as well. Since TCL is a scripting language, would a C/C++ module be a better alternative than a script to include the functionality I'm trying to attain? The goal is to allow players (users) to access their character data from within the IRC client via a few commands. If anyone has any opinions, or questions, I'm welcome to hear them. Thank you for your time and consideration.

~Ikelos, new guy
Post Reply