• This is a read only backup of the old Emudevs forum. If you want to have anything removed, please message me on Discord: KittyKaev

TrinityCore 3.3.5 Best way to learn C++ boss scripting API?

Noodle

Member
Hello everyone,

I'm a novice at programming. I do know my way around and got the basics covered. Primarily scripted some simple bosses in Eluna but I want to step it up a bit.

I want to learn how to code some fancy bosses. Like bosses from newer expansions. Is Eluna equally suited to script complex bosses in comparison to C++? If C++ is better for things like that, would it be better to learn C++ in general or just start working within the TrinityCore API and practice with some feedback? I do know some bits and pieces of C++ if I look at the source, but it's not like I can read it as a whole.

could use some advice :smile:
 

Tommy

Founder
Is Eluna equally suited to script complex bosses in comparison to C++?

Equally? I wouldn't be too precise with that inquiry. Depends on how complex you want the boss. Eluna can do many great things when it comes to AI scripting. Almost every boss in Wow can be coded using Eluna. Though, scripts like ICC Gunship Battle (for example) probably cannot be done using Eluna. If you plan on using Eluna, C++ is basically an alternative or vice versa when you want to do core edits or something drastic that Eluna cannot do.

If C++ is better for things like that, would it be better to learn C++ in general or just start working within the TrinityCore API and practice with some feedback?

It is always better to be one step ahead and learn multiple languages especially C++. C++ is a big part of TrinityCore and it is best to expand your knowledge instead of being stuck on one language.

The best way to learn AI scripting is to look at existing scripts. https://github.com/TrinityCore/TrinityCore/tree/3.3.5/src/server/scripts - You cannot learn by having someone do everything for you or by not actually studying existing code. And to better yourself make example scripts and test them as you learn, you'll know a lot more if you execute your knowledge.

And some advice: If you don't know the basics of C++ or any language (e.g. logic, statements, variables, etc) you should search for guides on Google and learn the basics. It goes a long way.
 

Noodle

Member
Equally? I wouldn't be too precise with that inquiry. Depends on how complex you want the boss. Eluna can do many great things when it comes to AI scripting. Almost every boss in Wow can be coded using Eluna. Though, scripts like ICC Gunship Battle (for example) probably cannot be done using Eluna. If you plan on using Eluna, C++ is basically an alternative or vice versa when you want to do core edits or something drastic that Eluna cannot do.
The Gunship Battle can't be done in Eluna huh? There doesn't seem to be that much to it, though I can't really say much about that since I don't know much about the code. Is it because the ships are not gameobjects or something?


It is always better to be one step ahead and learn multiple languages especially C++. C++ is a big part of TrinityCore and it is best to expand your knowledge instead of being stuck on one language.

The best way to learn AI scripting is to look at existing scripts. https://github.com/TrinityCore/TrinityCore/tree/3.3.5/src/server/scripts - You cannot learn by having someone do everything for you or by not actually studying existing code. And to better yourself make example scripts and test them as you learn, you'll know a lot more if you execute your knowledge.
Yeah, sounds like a good idea. I'll just make some example scripts and mess around in both languages, because practice makes perfect.
And some advice: If you don't know the basics of C++ or any language (e.g. logic, statements, variables, etc) you should search for guides on Google and learn the basics. It goes a long way.
I do have the basics under control, but things like pointers are new to me and there are probably a lot more C++ specific features. Google is my friend though, so I'll probably be fine.
 

Tommy

Founder
The Gunship Battle can't be done in Eluna huh? There doesn't seem to be that much to it, though I can't really say much about that since I don't know much about the code. Is it because the ships are not gameobjects or something?

I did say "probably couldn't be done in Eluna". I didn't rule it out all together. And no, if there is a reason I doubt it would be because the gunship isn't a Gameobject. Any who, I guess just ignore that statement in general. :p
 
Top