Author Topic: Pack animals and weight restrictions  (Read 310 times)

Legacy_GIANTSWORD

  • Full Member
  • ***
  • Posts: 175
  • Karma: +0/-0
Pack animals and weight restrictions
« on: January 16, 2015, 12:07:20 am »


               

Hey guys,


 


I'm considering implementing a pack animal system into my module using Lex's system on the vault.


 


Curious if it's possible to limit the weight capacity or size capacity of the inventory of the pack.  


 


I'm hoping to be able to assign weight values to different types of pack animals that allow them to carry more or less than different types thus increasing and decreasing the value of each type of pack animal.   



               
               

               
            

Legacy_GIANTSWORD

  • Full Member
  • ***
  • Posts: 175
  • Karma: +0/-0
Pack animals and weight restrictions
« Reply #1 on: January 16, 2015, 07:23:33 am »


               

Due to GetWeight not working on a creature that's not a PC's henchman I'm going with a henchmen pack animal system so disregard initial question.


 


GetWeight is working and it allows me to clear the animals actions if it's carrying too much weight.


               
               

               
            

Legacy_Proleric

  • Hero Member
  • *****
  • Posts: 1750
  • Karma: +0/-0
Pack animals and weight restrictions
« Reply #2 on: January 16, 2015, 10:51:17 am »


               

You can also adjust the pack animal's strength, so that the normal encumbrance rules limit movement.



               
               

               
            

Legacy_GIANTSWORD

  • Full Member
  • ***
  • Posts: 175
  • Karma: +0/-0
Pack animals and weight restrictions
« Reply #3 on: January 16, 2015, 04:34:23 pm »


               

Yeah I'm doing that, but I wanted a max weight that if loaded up to the creature would be unable to move and possibly take damage from the crippling weight.


 


I have a convo that assigns commands to the pack animal, similar to the radial menu but it checks that max weight in their inventory to make sure they aren't carrying too much.  


 


The issue now is if you use "follow" from the radial menu they follow you regardless, not sure where to put the check.  Any idea where the radial commands are so I can put some checks in there?



               
               

               
            

Legacy_GIANTSWORD

  • Full Member
  • ***
  • Posts: 175
  • Karma: +0/-0
Pack animals and weight restrictions
« Reply #4 on: January 16, 2015, 04:46:50 pm »


               

Actually,. if the animal is overloaded with weight, I think it would cover all the bases if it checked for it's weight max before doing any of the commands from the radial menu.  


 


No idea where I would add that check to, though..


 


EDIT: I just tested out the radial follow vs. the conversation ActionForceFollowObject and it seems the radial follow command has a safeguard against the teleporting trick where if you outrun your animal it warps to you.  Sorry if this is old news but it's new to me.


 


I was putting in the weight checks only to discourage this teleport trick if the animal was overloaded with weight but it seems I won't have to now.  If you overload your animal they will simply be encumbered and if you outrun them they seem to stop and clearactions.


 


Is this something that's been fixed for a while?  If this is the case, I'll just use the radial menu for the commands.


 


EDIT AGAIN: Turns out the radial menu follow is only following me for 1 heartbeat.  I thought I was outrunning it but it just stops in its tracks after 1 heartbeat.  I guess there isn't a safeguard to the teleport thing.  I assume if I have it forcefollow me on heartbeat it will teleport to me when I outrun it.


 


Suppose I were to do a distance check on heartbeat between the PC and the animal, if too far cancel the follow and send a message to the player saying they lost their animal.  They would then need to go back and tell it to follow again.


 


Think this would work to get around the teleport problem?