The Jedi Academy. THE Place for Jedi training.
Forums
Content
The Academy
Learn
Communicate
Personal


Forums | Academy Discussion
Orator Script - What Every Instructor Needs!
Aug 12 2004 03:35pm

Tido
 - Student
Tido
Download Orator

I think I've got something here that should help all our instructors out a bit. This script is an easy way to say messages that you have already created. A good use for this would be class rules (which is what I use in the demo). The way it is set up is you load which combination of messages you want (in this case its msg_rules.cfg) and you use your left keypad (4) to scroll backwards, right keypad (6) to scroll forwards, and keypad 5 to select the message. Make sure your Num Lock is off! As you scroll, the messages are displayed to only you in the top of your screen, and once you select them then they are broadcasted to the game.

I've tried to make the script as easily modifiable as I could. Here I'll try to give a brief lesson in how to change the script to your needs.

Orator Script
Quote:

//===============================================================
// Orator v1.0 by Tido (some code modified from cHoSeN oNe's JAR CFG)
//===============================================================

//------------------------------------------------------
// Load your messages here
//------------------------------------------------------
set save_01 "say ^7Welcome to my class! To start off I'll list a few quick rules."

set save_02 "say ^7Please don't create too much chatter while I'm instructing. A little is ok but try not to overdo it."

set save_03 "say ^7Try to hold back from spamming your LoL binds, etc."

set save_04 "say ^7If you have a question, feel free to ask it, and *raise* your hand."

set save_05 "say ^7And remember to be respectful to your classmates and your teacher just like any class."

//------------------------------------------------------
//Load your echos here (identical to messages)
//------------------------------------------------------
set echo_01 "echo ^51 ^7Welcome to my class! To start off I'll list a few quick rules."

set echo_02 "echo ^52 ^7Please don't create too much chatter while I'm instructing. A little is ok but try not to overdo it."

set echo_03 "echo ^53 ^7Try to hold back from spamming your LoL binds, etc.

set echo_04 "echo ^54 ^7If you have a question, feel free to ask it, and *raise* your hand."

set echo_05 "echo ^55 ^7And remember to be respectful to your classmates and your teacher just like any class.



//----------------------------------------------
// Cycles
//----------------------------------------------
set msg_01 "set set_msg vstr save_01; set prv_msg vstr msg_05; set nxt_msg vstr msg_02; vstr spacer; vstr echo_01"

set msg_02 "set set_msg vstr save_02; set prv_msg vstr msg_01; set nxt_msg vstr msg_03; vstr spacer; vstr echo_02"

set msg_03 "set set_msg vstr save_03; set prv_msg vstr msg_02; set nxt_msg vstr msg_04; vstr spacer; vstr echo_03"

set msg_04 "set set_msg vstr save_04; set prv_msg vstr msg_03; set nxt_msg vstr msg_05; vstr spacer; vstr echo_04"

set msg_05 "set set_msg vstr save_05; set prv_msg vstr msg_04; set nxt_msg vstr msg_01; vstr spacer; vstr echo_05"



// set Assignments
set set_msg "vstr msg_01"
set prv_msg "vstr msg_05"
set nxt_msg "vstr msg_02"
set spacer "echo; echo; echo"

// Message Selector
bind KP_LEFTARROW "vstr prv_msg" //Prev Message
bind KP_RIGHTARROW "vstr nxt_msg" //Next Message
bind KP_5 "vstr set_msg" //Use Message

echo ^1Orator ^4v1.0 ^7by Tido
echo MSG_RULES


Your messages are saved in 2 places: the save_xx list and the echo_xx list. The save_xx list is what actually displays in the game, and the echo list is what shows up at the top of the screen. Logically you would want the two to be identical. You'll notice all my messages have a ^7 before them. This makes the text white and makes it stand out against any other chatter going on. In the echos I do a ^5x ^7: this gives a nice blue # in the echo so you can see quickly where in the order of messages you are.


Adding more messages to the code is pretty easy. Lets say you wanted to add a 6th message. First you would create a 6th save and a 6th echo:

Quote:

set save_05 "say ^7And remember to be respectful to your classmates and your teacher just like any class."

set save_06 "say ^7 Thank you and we'll have a ton of fun today!"

Quote:

set echo_05 "echo ^55 ^7And remember to be respectful to your classmates and your teacher just like any class.

set echo_06 "echo ^56 ^7Thank you and we'll have a ton of fun today!.


The next thing you need to do is add a new cycle for the sixth message. Here it gets a little more complicated. All that changes are the save_xx and echo_xx numbers. I use bold characters to show where I made changes:
Quote:

set msg_05 "set set_msg vstr save_05; set prv_msg vstr msg_04; set nxt_msg vstr msg_01; vstr spacer; vstr echo_05"

set msg_06 "set set_msg vstr save_06; set prv_msg vstr msg_05; set nxt_msg vstr msg_01; vstr spacer; vstr echo_06"


It is important to note that set prv_msg vstr msg_xx sets the PREVIOUS message, and set nxt_msg vstr msg_xx sets the NEXT message. So if the current message is 06, you want the previous message to be 05, and the next message to be 07 - if there is a 07...otherwise the next message would be 01.

And that's it! Message added. Now you should be able to scroll through messages 1-6. And you can add as many as you like. It would be even possible to do a whole class in this if you pre-planned your class. If you are still having trouble with it and it just doesn't seem to work, then go ahead and send me your list of messages and I'll put it together for ya ;).

This should save instructors a lot of time wasted pounding on the keyboard and more time doing what they are there to do: teach :).

*********
Known Bugs:
*********
It hates emotes (smily faces, ect). In fact it hates most symbols: ( ) - = + / \, ect. This is probably not a bug and just my lack of knowledge about CFGs.

Also every once in awhile it likes to double post the messages, so go lightly on the keys.
*********
:alliance::alliance::alliance:

This post was edited by Tido on Aug 12 2004 04:12pm.

  Login and add your comment!  
Comments
Aug 17 2004 02:51pm

Tido
 - Student
 Tido

Piece of cake Odan!

Just change this:
Quote:
// Message Selector
bind KP_LEFTARROW "vstr prv_msg" //Prev Message
bind KP_RIGHTARROW "vstr nxt_msg" //Next Message
bind KP_5 "vstr set_msg" //Use Message


to this:
Quote:
// Message Selector
bind KP_END "vstr prv_msg" //Prev Message
bind KP_PGDN "vstr nxt_msg" //Next Message
bind KP_2 "vstr set_msg" //Use Message

And you are set to go my friend! :D

Aug 17 2004 09:38am

Odan-Wei Belouve
 - Student
 Odan-Wei Belouve

Tido, good job mate, I'll probably give it a go :)
Just one quick remark, do not use keys 7 and 9 please, they're already bound to the teleport script that JAK+ use. So, maybe 1 and 3 ? :P

:D:D:D
_______________
Padawan and brother to SmilyKrazy :D - Adopted in the Belouve Family by Fizz and Bubu, BELOUVE ON! :D - Vladarion, you'll always be in my heart and memories - Spam-Padawan of Jacen Aratan ;) - [DJ is my beloved wife! :P - JA Family: Brothers:
Virtue, Furi0us, Vladarion, Hardwired, Janus, Axion, D@RtHM@UL, Motrec, Mike , xAnAtOs , Luke Skywalker; Little bro to SilkMonkey ; Special kind of brother to Kenyon ; Sisters in-law: Rosered, Ain-Soph Aur]
Photoshop works: click here


Aug 16 2004 09:48pm

D@mned ++
 - Student
 D@mned ++

wow mate
GJ :D
_______________
Bartender at Mune's bar.
It’s not just a site, it’s a community.
It’s not just a community, it’s the Academy.
It’s not just the Academy, it’s a place in my heart.


Aug 16 2004 07:11pm

Sfire
 - Student
 Sfire

awesome Tido :D Gonna download this later just to test it out. Never know..may come in handy. :D
_______________
|Sfire - Padawan to MOTREC, Gradius|
|Owner of Motrec's and Gradius's 999th Comments! Also Smily's 5001 comment and 3th's 1903 comment! Also, cannot forget to mention the proud owner of Gradius' 3000th comment!|


Aug 16 2004 05:02pm

Tido
 - Student
 Tido

The next little version of this is going to use keypad 7 and 9 to select other scripts. So for example lets say msg_rules.cfg is your rules, msg_redclass is your red stance class, msg_yellowclass is your yellow stance class, msg_binds is stuff like 'Good fight', ect. This way you select the one you want and push keypad 8 to select it. Then 4,5, and 6 work just as they do currently.

Aug 16 2004 03:16pm

Setementor
 - Jedi Master
 Setementor

Actually, if you have a lot of binds, you could use this to say something like "Good Fight"! :D

Aug 16 2004 02:52pm

Squibit
 - Student
 Squibit

Is it possible to get it so nothing displays in the console when you cycle through?

If I want to cycle through say 12 messages then i have to scroll up quite a bit to see any messages i missed for example.

Great tool though Tido , great fun spamming ... I mean ..... /me hides

_______________
Quote:
fiZZe: its SIR Fizzy Fluffy :p

Quote:
FiZZ[JAK]: that was what I call a counter

Ah, things you only ever expect to hear once :)


Aug 15 2004 12:51am

Tido
 - Student
 Tido

yeah I'm working on a fix Aiden :P, thx for the kind works and help! :D

Aug 14 2004 04:46pm

Dan
 - Student

Very good job man. :D

Quote:
My lack of knowledge about CFGs


Lack of knowledge?!
Doesn't show... :D

Edit: I think if you want to do a smily face, you can put it in quotes, like so: ":>" ...I think.

This comment was edited by Dan on Aug 14 2004 04:56pm.

Aug 14 2004 03:28pm

Sfire
 - Student
 Sfire

very nice mate :D
_______________
|Sfire - Padawan to MOTREC, Gradius|
|Owner of Motrec's and Gradius's 999th Comments! Also Smily's 5001 comment and 3th's 1903 comment! Also, cannot forget to mention the proud owner of Gradius' 3000th comment!|


Aug 13 2004 07:52pm

 
 - Student

What a great idea... awesome work Tido! :D

Aug 13 2004 07:49pm

Tido
 - Student
 Tido

bah! don't say that sete!!!! :P

Aug 13 2004 05:59pm

Selph Senatu
 - Student
 Selph Senatu

man I'm confused

Aug 12 2004 06:43pm

Thomasooo
 - Student
 Thomasooo

Very nice work, Tido! Should save the instructors much time. :)
_______________
In the navy and LOVING it! :D

Recipient of comment no. 1000 and heart-warming words from Ataris! :)


Aug 12 2004 05:11pm

3th
 - Retired
 3th

very nice :)
_______________
this is the internet, be serious damn it!

Aug 12 2004 05:00pm

Tido
 - Student
 Tido

yeah you only have 3 buttons to worry about, makes it nice. :)

Aug 12 2004 04:55pm

Fizz of Belouve
 - Student
 Fizz of Belouve

I know some people have binds like these. A nice script though, good that we dont have many binds to remember lol :D
_______________
One of the Belouve boys, founder of the mighty FiZZsters
Midbie council #20 - Fizz - #1933 - Jan '03 - Aug '04

"Renfield, you idiot!"


Aug 12 2004 03:37pm

Setementor
 - Jedi Master
 Setementor

Nice. :D

  Login and add your comment!