HelpHelp with my behavior

Posts 1–3 of 3 · Page 1 of 1
Help with my behavior
I need help with my behavior it says that there is a problem with the { on line 16 and the _ Boshy on line 17 please help i cant figure out how to fix


#region

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using wServer.realm;
using wServer.logic.behaviors;
using wServer.logic.loot;
using wServer.logic.transitions;
#endregion

namespace wServer.logic
{
partial class BehaviorDb { }
{
_ Boshy = () => Behav()
.Init("Boshy",
new State("Idle"),
new ConditionalEffect(ConditionEffectIndex.Invulnerabl e),
new PlayerWithinTransition(10, "Attacking"),



new State("Attacking"),
new Taunt(0.5, "It's Boshy Time!!"),
new Shoot(1, 4, coolDown: 10000, fixedAngle: 90, coolDownOffset: 0, shootAngle: 90),
new Shoot(1, 4, coolDown: 10000, fixedAngle: 100, coolDownOffset: 200, shootAngle: 90),
new Shoot(1, 4, coolDown: 10000, fixedAngle: 110, coolDownOffset: 400, shootAngle: 90),
new Shoot(1, 4, coolDown: 10000, fixedAngle: 120, coolDownOffset: 600, shootAngle: 90),
new Shoot(1, 4, coolDown: 10000, fixedAngle: 130, coolDownOffset: 800, shootAngle: 90),
new Shoot(1, 4, coolDown: 10000, fixedAngle: 140, coolDownOffset: 1000, shootAngle: 90),
new Shoot(1, 4, coolDown: 10000, fixedAngle: 150, coolDownOffset: 1200, shootAngle: 90),
new Shoot(1, 4, coolDown: 10000, fixedAngle: 160, coolDownOffset: 1400, shootAngle: 90),
new Shoot(1, 4, coolDown: 10000, fixedAngle: 170, coolDownOffset: 1600, shootAngle: 90),
new Shoot(1, 4, coolDown: 10000, fixedAngle: 180, coolDownOffset: 1800, shootAngle: 90),
new Shoot(1, 8, coolDown: 10000, fixedAngle: 180, coolDownOffset: 2000, shootAngle: 45),
new Shoot(1, 4, coolDown: 10000, fixedAngle: 180, coolDownOffset: 0, shootAngle: 90),
new Shoot(1, 4, coolDown: 10000, fixedAngle: 170, coolDownOffset: 200, shootAngle: 90),
new Shoot(1, 4, coolDown: 10000, fixedAngle: 160, coolDownOffset: 400, shootAngle: 90),
new Shoot(1, 4, coolDown: 10000, fixedAngle: 150, coolDownOffset: 600, shootAngle: 90),
new Shoot(1, 4, coolDown: 10000, fixedAngle: 140, coolDownOffset: 800, shootAngle: 90),
new Shoot(1, 4, coolDown: 10000, fixedAngle: 130, coolDownOffset: 1000, shootAngle: 90),
new Shoot(1, 4, coolDown: 10000, fixedAngle: 120, coolDownOffset: 1200, shootAngle: 90),
new Shoot(1, 4, coolDown: 10000, fixedAngle: 110, coolDownOffset: 1400, shootAngle: 90),
new Shoot(1, 4, coolDown: 10000, fixedAngle: 100, coolDownOffset: 1600, shootAngle: 90),
new Shoot(1, 4, coolDown: 10000, fixedAngle: 90, coolDownOffset: 1800, shootAngle: 90),
new Shoot(1, 4, coolDown: 10000, fixedAngle: 90, coolDownOffset: 2000, shootAngle: 22.5),
new TimedTransition(2000, "Idle"),







new TierLoot(6, ItemType.Weapon, 0.04),
new TierLoot(7, ItemType.Weapon, 0.02),
new TierLoot(7, ItemType.Armor, 0.04),
new TierLoot(8, ItemType.Armor, 0.02),
new TierLoot(3, ItemType.Ring, 0.015),
new TierLoot(8, ItemType.Armor, 0.01)
);




}
You're missing a lot of curly brackets, I see at least one typo, and after correctly adding curly brackets, you'll need to fix your comma placements at the end of the states.

To start learning behaviors, you should copy an existing behavior, then learn how they are structured. From there, you can modify it to your liking, and eventually start writing your own.

At least you already know the difference between cooldowns and cooldown offsets.
Quote Originally Posted by Invader_Zim View Post
You're missing a lot of curly brackets, I see at least one typo, and after correctly adding curly brackets, you'll need to fix your comma placements at the end of the states.

To start learning behaviors, you should copy an existing behavior, then learn how they are structured. From there, you can modify it to your liking, and eventually start writing your own.

At least you already know the difference between cooldowns and cooldown offsets.
ok i look at it later
Posts 1–3 of 3 · Page 1 of 1

Post a Reply

Similar Threads

Talk with us