I'm looking to design an addon which will cause your character to automatically role-play while you're too busy to do so. "Have at you!" when you enter combat, things like that. It's an overly simplified explaination (it will be much less annoying than it sounds like) but it should give a general idea of what I'm looking to do.
I'm not completely inexperienced at writing scripts, but I've only ever worked on a few big projects before, and nothing quite as big as this one. I must admit, the long-windedness of lua, and the difficulty finding solid tutorials on it, is starting to get to me.
I thought a good way to figure some things out would be to read the code for an older addon that did something similar (though different in the details) from what I'd like to do; RP Helper. But I can't figure out how the thing worked. The .toc file opens several lua files and an xml file. From what I've gathered so far, xml files are where WoW looks for instructions on when to activate the addon, and the xml file doesn't really seem to have anything in it which is helping me out.
So to sum this up in TL;DR format, I was wondering if anybody would be able to point me towards a more recent addon I could dissect, or perhaps just some general tips on reverse-engineering other addons. (not to steal, mind you, just to learn.)
While you're at it, if you wanted to point me at good tutorials, I'd be grateful. But I'm sure I can find those by looking through the forum posts.
Thanks in advance for any assistance.|||Quote:
The .toc file opens several lua files and an xml file. From what I've gathered so far, xml files are where WoW looks for instructions on when to activate the addon, and the xml file doesn't really seem to have anything in it which is helping me out.
Basically, any .lua file can be loaded from the .toc or from any .xml file.
XML is for your user interface layout. You dont need to know XML, since you can do the same with Lua. Example: CreateFrame()
Quote:
I was wondering if anybody would be able to point me towards a more recent addon I could dissect, or perhaps just some general tips on reverse-engineering other addons.
SpeakinSpell(Ace3), CastSpeaker(Ace3), IDoDeclare(Ace2), AnnoyRP, SpellEmote,
WittyMage(Ace3), WittyDruid(Ace2), Redeemer, CritterTalk(Ace2)
RandomSay(Ace2), SayRandomQuote, Tongues
Roleplaying Helper 2(Ace2), Roleplaying Helper 3
Quote:
While you're at it, if you wanted to point me at good tutorials, I'd be grateful. But I'm sure I can find those by looking through the forum posts.
I recommend the Ace3 AddOn Development Framework
- Ace3 Tutorial: WelcomeHome - Your first Ace3 Addon
- Ace3 API: Documentation (Old)
- World of Warcraft API
RandomSay(Ace2)
Corrections Dept: RandomSay is not an Ace2 addon. I've never used Ace in any version for any of my addons yet.
No comments:
Post a Comment