Cooperative Carting

Have a new general feature to suggest, or think one should be tweaked? Share your ideas here.
Post Reply
User avatar
Xandrea
Posts: 72
Joined: Thu Aug 29, 2019 7:34 am

Cooperative Carting

Post by Xandrea »

So we can already have player assistance for heaving items but, what about cart pulling? If there could be an extra person pushing or pulling the handcart it could help reduce energy costs and travel time.
How many Sorcerers does it take to read a book?
User avatar
Rias
DEV
Posts: 2024
Joined: Sun Sep 03, 2017 4:06 pm
Location: Wandering Temicotli

Re: Cooperative Carting

Post by Rias »

This is something I've wanted to figure out for a while. Movement (room-to-room) mechanics in general are finicky though, and adding pulled/dragged items makes it moreso, and group mechanics even moremoreso. So I want this to be a thing, but the amount of work required makes it fairly low priority. I'll give it an official spot on the to-do list, though!
<Rias> PUT ON PANTS
<Fellborn> NO
User avatar
nobody
Posts: 501
Joined: Wed Jun 17, 2020 7:43 am
Contact:

Re: Cooperative Carting

Post by nobody »

I had a thought about this with regards to programming and thought I would share:
  • Create an ongoing command (assist) that requires a target in one's current group (e.g. join Xandrea; assist Xandrea)
  • Prohibit anyone from assisting themselves.
  • If a person leaves the group, the assist status is canceled. Include it in whatever functions currently break group status.
  • If a person is pushing or dragging, in the function(s) that determines energy cost, check for anyone in the group with the assist status before checking the primary pusher's strength attribute/buffs, and divide out the energy and RT costs, and push them out appropriately within that function to the pusher/dragger and anyone in the group assisting them.
  • Have the push function check appropriately for strength attributes/buffs.
Setting it up this way means that there aren't ever two people pushing a cart (in different directions or otherwise). It's probably still a steep amount of coding though.

Edit to add: And then make assist require not hiding, and either prevent hiding or have hiding break assist. *sigh*
Edit to add 2: There also needs to be some kind of flag such that *pushing* or *dragging* prevents you from *assisting* and vice versa. This seems like the easiest way to prevent two people pushing two carts from assisting each other, although the divided energy and RT should theoretically be conserved, it's still silly.
Last edited by nobody on Thu Jan 07, 2021 2:05 pm, edited 2 times in total.
User avatar
Rias
DEV
Posts: 2024
Joined: Sun Sep 03, 2017 4:06 pm
Location: Wandering Temicotli

Re: Cooperative Carting

Post by Rias »

Not a bad idea! That could be a good way of going about it. Thanks.
<Rias> PUT ON PANTS
<Fellborn> NO
Post Reply