|
Wraithblade Newbie
Joined: 20 May 2002 Posts: 6 Location: United Kingdom
|
Posted: Sat Apr 20, 2002 11:47 pm
Killing Bot |
I need a bot to help me when i am killing stuff in the fields. This mud uses an ansi script with a "compass" in the upper right hand corner. I made triggers just to attack certain mobs. but i want a bot to have my character randomally wander around and kill the mobs i have triggers for, then continue to move on.
There are 2 types of areas, Harvested farmland and cultivated farmland. surrounding these area are Flaran Plains, Trees on the Flaran Plains, and Bushes on the Flaran Plains.
I want to have the bot turn back if it encounters encounters any of these areas.
There is also a road that goes through the middle of all this, called The Forest Road.
Basically, i want a bot to wander around, chase creatures when they flee from me
An idle farm hand panics, and attempts to flee.
An idle farm hand leaves south.
An idle farm hand has fled for her life!
That is the message when something flees from me, i want to follow that, then i already have triggers to resume attacking.
when the mob dies, i recieve this message
Your blood freezes as you hear (creature here)'s death cry.
The message is always the same.
You cannot move in that direction.
that appears when i run into a wall
I just need it to move, kill, chase if mob flees, move again, go back when it contacts the plains.
One more thing, when i find a creature to kill and i attack it, i get a message
You enter into combat with (whatever here)
the bot needs to stop randomly moving once i enter into combat
Any help showing me how to do all this stuff, or if some genius just wants to make this bot, it would be greatly appreciated. |
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Mon Apr 22, 2002 5:17 pm |
Fleeing. Catch the direction and go the same way.
#TR {panics, and attempts to flee} {#T+ flee}
#TR {leaves (%t)} {#T- flee;%1} {flee}
Moving after victory. When the mob dies, pick a direction and move. Likewise, when you run into a wall just pick another direction.
#VAR directions {north|east|south|west}
#TR {Your blood freezes as you hear} {%item(@directions,%random(1,4))}
#TR {You cannot move in that direction} {%item(@directions,%random(1,4))}
To turn back when you reach the Plains you'll need to keep the reverse direction for the last move in a variable. Then when you reach the plains just go the opposite direction.
#AL north {#VAR reversedir south;~north}
#TR {Flaran Plains} {@reversedir}
You should probably put all of this into a class (named Bot, perhaps?) so that you can easily disable it to keep it from interfering when you happen to be at the controls.
LightBulb
Vague questions get vague answers |
|
|
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|