I want to be able to lead animals, and to tie them in one place, but I can’t come up with a sensible manner of doing it.
The only way I can think is using monsterexamine.h/.cpp adding a “tie” and “lead” methods. And its own UI(no idea how I would do it, but I guess I would copy how the pet menu works).
“Tie” and “lead” actions would add a certain flag to each animal that applies the effect. Both would require a length of rope, and maybe a check of dex/strength, so you can fail/succeed realizing the action.
“Lead” would act the same as follow, but with a closer range. And will make the player move at the animal’s speed.
And if for whatever reason(running, using a vehicle, getting thrown by a hulk) the player gets away than the lead distance from the animal, the animal stops being led.
To lead again the animal you would need to examine it, and choose “lead” again, as the animal would still have the rope tied around whatever bodypart you tie the rope.
“Tie” would immobilize the animal. It would require another dex/str check, and maybe turn it unto a long action.
But this presents various problems, and that is that with lead and tie, you could store animals for food, and use them as target practice. And probably more exploits and cases that I haven’t thought about.
How could you deal with those problems?
Also how hard should be to tie them and lead them, regarding the dex/str check?
Edit:
What about having a possibility of the animal breaking free of being tied or running away from being led?