Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


New Premium Module: Tyrants of the Moonsea! Read More
Attention, new and old users! Please read the new rules of conduct for the forums, and we hope you enjoy your stay!

AI Script: Follow Leader, still maintain other functions (including Stealth).

1MMRAM1MMRAM Member Posts: 4
With my very basic attempts so far, I'm having a hard time combining effects such as MoveToObject(Player 1) or MoveToObjectFollow(Player1), etc, while still processing other functions like remaining in stealth (MTO seems to preserve stealth state, but MTOF leaves it), or other IF/THEN combat statements. Is there some way to have a hierarchy of actions?

What's I'd like is something like this:

1. If stealth is available, enter stealth
2. Run attack functions when enemies are in range
3. Move to Player 1 if past certain distance

As it stands, the first two functions only resolve when the third completes entirely. Irritatingly MoveToObject also constantly pushes Player1 around, while MTOF() and Formation() seem to be constant states that don't process other parts of the script until they are ended.

Any tips or direction appreciated!


Sign In or Register to comment.