What's new
  • Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Visit Resources
  • Visit Downloads
  • Visit Portal

Simple TreeSharp Custom Class

tuanha

Well-Known Member
Joined
Nov 29, 2011
Messages
6,998
Reaction score
124
Hi guys,

I understand the basic CC from "How to Write a Custom Class, a Guide for Beginners."

Now i want to make my cc in TreeSharp

Are there any simple cc writing in TreeSharp that i can learn?

Thank you.
 
Hi guys,

I understand the basic CC from "How to Write a Custom Class, a Guide for Beginners."

Now i want to make my cc in TreeSharp

Are there any simple cc writing in TreeSharp that i can learn?

Thank you.
no there is not.
 
: / I'm not a expert myself but I'm sure there is something you could read to help you out.....
 
: / I'm not a expert myself but I'm sure there is something you could read to help you out.....
Can you pls let me know a simple treesharp cc?
 
there arent any, and there wont be any, TreeSharp CC's are very complex things, and not something that's easily like "here's a working template" not only that but if your still new to programming, its going to be a nightmare, because your forced to put things a certain way, or else there's no use in using a Behavior Tree.
 
are quest behaviors done in treesharp? Cause I made my own working quest behavior without I knowing any treesharp just by looking at a basic behavior and mix and match from cc. It isn't that hard
 
"TreeSharp" is just the library I wrote to implement Behavior Trees in C#. I'm sort of happy people have stopped calling it BTs and just gone to "TreeSharp" but please, be aware that TreeSharp is simply an implementation of behavior trees, for .NET.

Please check the wiki, chinajade has done a hell of a job documenting all the composite types, etc. TreeSharp allows you to do simple things, or very complex things. Its up to you how in depth you wish to go.
 
Well every programmer need to start somewhere. I'll try to start with the simple [Raid Bot]Unholy Death Knight.

Thank guys.
 
I wish the HonorBuddy development team would be a little bit nicer about new users wishing to get started in TreeSharp. This isn't the first time I've seen someone interested in using the library effectively be shunned and told to figure it out on their own, which is a little disheartening. It's certainly more complicated, but I feel it's bad policy to discourage users from getting involved. We should be aiming to build the community as best we can, even if it means having to take some time out to explain a few finer details.

I'm hesitant to post this link, because CodenameG seems particularly hostile about new users and TreeSharp, but this thread has essentially exactly what you're looking for:

A few posts in, fiftypence posts a very simple rogue CC that uses two spells. While this is far from comprehensive, I hope it gives you at least a small stepping stone to bridge the gap between the description of TreeSharp's structures, and a fully blown CC implementation.

A Very Brief TreeSharp CC (rogue)

I'll be honest and say that I'm not very familiar with how the HonorBuddy wiki works, but as it stands, the TreeSharp section in particular could really use some love. I'd be happy to help edit and add new articles and examples, but I'm not certain if I need special permissions to edit those pages (not that chinajade did sloppy work! there are just a few gaps I'd like to fill).

I understand lots of the 'big-name' developers are working on larger, more important projects, but the Wiki is a little sparse. I'd love to help out if it's a possibility. :)
 
Last edited:
I had no issues learning what I needed from the wiki and Singular, take a look at the singular code and read the wiki.

Since most CCs out there doesn't work properly and Singular lacked proper combat for some classes/spec I started making my own with the help of singulars code.

You could "lend" code from singular, specifically the helper files for movement, facing and spells/buffs.
Change the namespaces and make something simple as

Code:
        public Composite PriestDiscCombatSolo()
        {
            return new Sequence
                (new PrioritySelector
                     (EnsureTarget(),
                      CreateMoveToLosBehavior(),
                      CreateFaceTargetBehavior(),
                      BuffSelf
                          ("Power Word: Shield",
                           ret => !Me.HasAura("Weakened Soul") && !Me.HasAura("Power Word: Shield")),
                      Cast
                          ("Flash Heal",
                           ret => Me.HealthPercent < 70),
                      Cast
                          ("Archangel",
                           ret => Me.Auras["Evangelism"].StackCount > 4),
                      Cast
                          ("Holy Fire",
                           ret => !Me.CurrentTarget.HasAura("Holy Fire")),
                      Cast
                          ("Smite",
                           ret => Me.CurrentTarget)));
        }
 
Back
Top