Author Topic: Class Specific Lines  (Read 2563 times)

Offline agrippa

  • Acquaintance
  • *
  • Posts: 27
    • View Profile
Class Specific Lines
« on: October 12, 2010, 08:34:43 am »
Hi guys,

I've taken a look through the Creator's FAQ and the manual and I can't find the answer to this, so I thought I'd ask here.

How do I go about creating class specific lines?  I know I can use "chancreate" to create a channel, but that seems to be intermud channels only.

Can anyone offer any advice on creating a channel that all members of a specific class would receive upon joining?

Regards,

Iain

Offline detah

  • BFF
  • ***
  • Posts: 190
  • Ruler of 2D
    • View Profile
Re: Class Specific Lines
« Reply #1 on: October 12, 2010, 01:07:37 pm »
This is trivially simple.  When someone becomes a member of a class, add
Code: [Select]
this_player->AddChannel("supercoolclasschannel");
somewhere in the class-gaining code. Then that player will be able to use that channel.

Offline agrippa

  • Acquaintance
  • *
  • Posts: 27
    • View Profile
Re: Class Specific Lines
« Reply #2 on: October 12, 2010, 03:54:53 pm »
Thank you very much!

Offline Lenaric

  • Acquaintance
  • *
  • Posts: 30
    • View Profile
Re: Class Specific Lines
« Reply #3 on: October 13, 2010, 08:09:55 am »
Wow, that actually helped me a ton too. Thanks.