Making a new class, need help.

A place to post your add ons and ideas for them

Moderator: Moderator

Post Reply
Message
Author
Jack Trades
Yeek
Posts: 12
Joined: Fri Apr 15, 2011 10:40 am

Making a new class, need help.

#1 Post by Jack Trades »

Hi,
I'm trying to make a new class, Blade Dancer, a mix between a Warrior and a Rogue specializing in dual-wielding shortswords, and I'm looking for some advice since it's my first attempt at developing anything for ToME.

Right now I've got a new class script and a new weapon type and I'm using overload to switch objects.lua and descriptors.lua but it's obviously a wrong way to add new classes since it'll clash with any other class addon.
How to I add extra lines to those scripts properly?

Also, I think I've read Darkgod saying that superloading is slow and you should use hooks instead.
How do I use superloading and how do I use hooks?

Thanks in advance.

grayswandir
Uruivellas
Posts: 708
Joined: Wed Apr 30, 2008 5:55 pm

Re: Making a new class, need help.

#2 Post by grayswandir »

If you take a look at my thrown weapons addon, I used a hook to add in the new objects.
You want to look in hooks/load.lua, the second half

http://te4.org/games/addons/tome/thrown-weapons
Addons: Arcane Blade Tweaks, Fallen Race, Monk Class, Weapons Pack
Currently working on Elementals. It's a big project, so any help would be appreciated. :)

Post Reply