Any Behavior Tutorials?
Any Behavior Tutorials?
ldk where learn how to create better behaviors
There is no "specific" tutorial, just learn it urself, change some things and look how it goes
I'm just going to say a few general things about behaviors. I won't go too in-depth seeing how the systems are flexible and changeable.
There are two behavior systems commonly known, which I call the States System and the Keys System. The Keys system is commonly characterized by the many behavior scripts that are "(EXAMPLE).Instance", while the States system is characterized by behavior scripts that start with "new (EXAMPLE)".
States and keys have the same spiritual function. They group behavior scripts together to be called upon at certain controllable times. This allows for organization in monster behavior and more unique and organized boss battles, too.
I tend to group these behaviors into a few sections:
Attack Behaviors - (These make the mob shoot bullets and throw bombs and minions)
Movement Behaviors - (These are often continuous behaviors that edit the movement vector applied to the entity)
Aesthetic Behaviors - (Flashing, taunting, changing textures, making sounds, etc.)
Conditional Behaviors - (The heart of most behaviors, the organizing behaviors, states, keys, etc.)
Loot Behaviors - (What people fight monsters for)
Behaviors work by categorization and leveling. Generally speaking, any behaviors that are grouped together will all be run at the same time, with the exception of certain Queue-Sequence related conditional behaviors.
CreepyLava source, Prod Pserver source, and Seraph's Dominion run on the states system. Phoenix, MMOE leaks, and any source you can find here on MPGH use the keys system.
Your best bet of learning behaviors is through looking through other people's behaviors and behaviors present in the source. I suggest you look through behaviors like pLolz's behaviors and my behaviors in the Phoenix Source (Eternal Crucible mobs, Wisp Queen), as I can assure you those are well-formatted.
Happy scripting! (or coding or whatever you'd like to call it)