12-14-2020, 08:55 PM
Hello,
I've downloaded a few scripts to see how the community builds their cavebots, and I have 2 questions that I wasn't able to figure out by myself.
1) A few scripts have these 3 actions on their Cavebot:
The first action of the cavebot is a initialcheck()
Then everytime the player changes a floor, they do a checkfloor(number of the new floor)
Finally, the more complex scripts with bank deposit and auto-refill have sometimes a resetbackpack()
What exactly those 3 actions do and why are they important?
2) How do I setup a Lure rule when there's more than X creatures on-screen (eg 3+)?
For example, if there's 1 or 2 trolls, I want the stance be "no stance" and atk mode be "chase/offensive", the default setting for a melee character.
But if there's 3+ trolls, I want the stance be "lure" and atk mode be "stand/offensive", so I can bring the monsters to a corner where I can attack only 2 at a time.
I set a "lure" step on the Cavebot for each floor. Then, on Targeting, I setup two "trolls":
- troll / any
no stance
chase/offensive
- troll / 3+
lure
stand/offensive
I thought that it would work (there's a valid lure point that's reachable and nearby every point where there's possibility of having multiple creatures), but it didn't worked: the bot stayed chase/offensive on all creatures, even when there were 3+ on screen.
Regards
I've downloaded a few scripts to see how the community builds their cavebots, and I have 2 questions that I wasn't able to figure out by myself.
1) A few scripts have these 3 actions on their Cavebot:
The first action of the cavebot is a initialcheck()
Then everytime the player changes a floor, they do a checkfloor(number of the new floor)
Finally, the more complex scripts with bank deposit and auto-refill have sometimes a resetbackpack()
What exactly those 3 actions do and why are they important?
2) How do I setup a Lure rule when there's more than X creatures on-screen (eg 3+)?
For example, if there's 1 or 2 trolls, I want the stance be "no stance" and atk mode be "chase/offensive", the default setting for a melee character.
But if there's 3+ trolls, I want the stance be "lure" and atk mode be "stand/offensive", so I can bring the monsters to a corner where I can attack only 2 at a time.
I set a "lure" step on the Cavebot for each floor. Then, on Targeting, I setup two "trolls":
- troll / any
no stance
chase/offensive
- troll / 3+
lure
stand/offensive
I thought that it would work (there's a valid lure point that's reachable and nearby every point where there's possibility of having multiple creatures), but it didn't worked: the bot stayed chase/offensive on all creatures, even when there were 3+ on screen.
Regards

