One Hour One Life Forums

a multiplayer game of parenting and civilization building

You are not logged in.

#1 2019-06-06 11:47:10

FeignedSanity
Member
Registered: 2018-04-03
Posts: 482

Quick question for all the more experienced programmers out there.

Is it reasonable to make use of the new "Shift+click" killing mechanic in other ways? For example, if you shift and left clicked (not right click) on a person, you would auto follow them. If you set this up, it would work the same as the current kill mechanic (obviously minus the murder), yeah? It also goes without saying that you'd most likely be using this without a weapon in hand.

Or what if you wanted to change the backpack with sword to where the sword would only get removed if you shift clicked? Obviously I'm still brand new to programming; but it was something I was considering and wanted to see how much trouble this would be. That's it. Thank you for your time.


Believe you're right, but don't believe you can't be wrong.
-----------------------------------------------------------------
Days peppers/onions/tomatoes left unfixed: 120
Do your part and remind Jason to fix these damn vegetables.

Offline

#2 2019-06-06 12:38:54

wondible
Member
Registered: 2018-04-19
Posts: 855

Re: Quick question for all the more experienced programmers out there.

FeignedSanity wrote:

Is it reasonable to make use of the new "Shift+click" killing mechanic in other ways?

If you just mean ways to differentiate intent in clicks, sure. I've used screen lock and ctrl/alt (same function) to differentiate things in my mod, checking shift is just a different function call and maybe some more if statements.

Screen lock demonstrates that any key could be used as a modifier, although spacebar is certainly convenient. I tried using a couple modifier keys for a while, but found it awkward for routine actions. You did phrase this a technical question rather than user interface question, though the examples you gave seemed pretty suitable.


https://onemap.wondible.com/ -- https://wondible.com/ohol-family-trees/ -- https://wondible.com/ohol-name-picker/
Custom client with  autorun, name completion, emotion keys, interaction keys, location slips, object search, camera pan, and more

Offline

#3 2019-06-06 23:23:24

FeignedSanity
Member
Registered: 2018-04-03
Posts: 482

Re: Quick question for all the more experienced programmers out there.

Nice! Thank you for the response. I'm glad it doesn't sound like it'll be too difficult. I was hoping it'd be something simple like just copying the code for the new killing mechanic, and just changing a few things. I still got a ways to go, but thank you for your help.


Believe you're right, but don't believe you can't be wrong.
-----------------------------------------------------------------
Days peppers/onions/tomatoes left unfixed: 120
Do your part and remind Jason to fix these damn vegetables.

Offline

Board footer

Powered by FluxBB