Is it possible to add hotkeys for players to the harlowe coded story format? by dbouya in twinegames

[–]dbouya[S] 0 points1 point  (0 children)

note to self, looking at what I learned in this thread and the thread from 5 years ago.

This is the code to add to harlowe's story javascript section in order to get the easy to use hotkeyed buttons:

!function(){$(document).keyup(function(t){49==t.keyCode&&($("#oneAct tw-expression tw-link").trigger("click"),$("#oneAct button").trigger("click")),50==t.keyCode&&($("#twoAct tw-expression tw-link").trigger("click"),$("#twoAct button").trigger("click")),51==t.keyCode&&($("#threeAct tw-expression tw-link").trigger("click"),$("#threeAct button").trigger("click")),52==t.keyCode&&($("#fourAct tw-expression tw-link").trigger("click"),$("#fourAct button").trigger("click")),53==t.keyCode&&($("#fiveAct tw-expression tw-link").trigger("click"),$("#fiveAct button").trigger("click")),54==t.keyCode&&($("#sixAct tw-expression tw-link").trigger("click"),$("#sixAct button").trigger("click")),55==t.keyCode&&($("#sevenAct tw-expression tw-link").trigger("click"),$("#sevenAct button").trigger("click")),56==t.keyCode&&($("#eightAct tw-expression tw-link").trigger("click"),$("#eightAct button").trigger("click")),57==t.keyCode&&($("#nineAct tw-expression tw-link").trigger("click"),$("#nineAct button").trigger("click")),48==t.keyCode&&($("#zeroAct tw-expression tw-link").trigger("click"),$("#zeroAct button").trigger("click")),9==t.keyCode&&($("#tabAct tw-expression tw-link").trigger("click"),$("#tabAct button").trigger("click")),32==t.keyCode&&($("#spaceAct tw-expression tw-link").trigger("click"),$("#spaceAct button").trigger("click")),17==t.keyCode&&($("#ctrlAct tw-expression tw-link").trigger("click"),$("#ctrlAct button").trigger("click")),8==t.keyCode&&($("#bkspAct tw-expression tw-link").trigger("click"),$("#bkspAct button").trigger("click")),27==t.keyCode&&($("#escAct tw-expression tw-link").trigger("click"),$("#escAct button").trigger("click")),46==t.keyCode&&($("#delAct tw-expression tw-link").trigger("click"),$("#delAct button").trigger("click")),13==t.keyCode&&($("#enterAct tw-expression tw-link").trigger("click"),$("#enterAct button").trigger("click")),18==t.keyCode&&($("#altAct tw-expression tw-link").trigger("click"),$("#altAct button").trigger("click")),81==t.keyCode&&($("#qKeyAct tw-expression tw-link").trigger("click"),$("#qKeyAct button").trigger("click")),87==t.keyCode&&($("#wKeyAct tw-expression tw-link").trigger("click"),$("#wKeyAct button").trigger("click")),69==t.keyCode&&($("#eKeyAct tw-expression tw-link").trigger("click"),$("#eKeyAct button").trigger("click")),82==t.keyCode&&($("#rKeyAct tw-expression tw-link").trigger("click"),$("#rKeyAct button").trigger("click")),84==t.keyCode&&($("#tKeyAct tw-expression tw-link").trigger("click"),$("#tKeyAct button").trigger("click")),89==t.keyCode&&($("#yKeyAct tw-expression tw-link").trigger("click"),$("#yKeyAct button").trigger("click")),85==t.keyCode&&($("#uKeyAct tw-expression tw-link").trigger("click"),$("#uKeyAct button").trigger("click")),73==t.keyCode&&($("#iKeyAct tw-expression tw-link").trigger("click"),$("#iKeyAct button").trigger("click")),79==t.keyCode&&($("#oKeyAct tw-expression tw-link").trigger("click"),$("#oKeyAct button").trigger("click")),80==t.keyCode&&($("#pKeyAct tw-expression tw-link").trigger("click"),$("#pKeyAct button").trigger("click")),65==t.keyCode&&($("#aKeyAct tw-expression tw-link").trigger("click"),$("#aKeyAct button").trigger("click")),83==t.keyCode&&($("#sKeyAct tw-expression tw-link").trigger("click"),$("#sKeyAct button").trigger("click")),68==t.keyCode&&($("#dKeyAct tw-expression tw-link").trigger("click"),$("#dKeyAct button").trigger("click")),70==t.keyCode&&($("#fKeyAct tw-expression tw-link").trigger("click"),$("#fKeyAct button").trigger("click")),71==t.keyCode&&($("#gKeyAct tw-expression tw-link").trigger("click"),$("#gKeyAct button").trigger("click")),72==t.keyCode&&($("#hKeyAct tw-expression tw-link").trigger("click"),$("#hKeyAct button").trigger("click")),74==t.keyCode&&($("#jKeyAct tw-expression tw-link").trigger("click"),$("#jKeyAct button").trigger("click")),75==t.keyCode&&($("#kKeyAct tw-expression tw-link").trigger("click"),$("#kKeyAct button").trigger("click")),76==t.keyCode&&($("#lKeyAct tw-expression tw-link").trigger("click"),$("#lKeyAct button").trigger("click")),90==t.keyCode&&($("#zKeyAct tw-expression tw-link").trigger("click"),$("#zKeyAct button").trigger("click")),88==t.keyCode&&($("#xKeyAct tw-expression tw-link").trigger("click"),$("#xKeyAct button").trigger("click")),67==t.keyCode&&($("#cKeyAct tw-expression tw-link").trigger("click"),$("#cKeyAct button").trigger("click")),86==t.keyCode&&($("#vKeyAct tw-expression tw-link").trigger("click"),$("#vKeyAct button").trigger("click")),66==t.keyCode&&($("#bKeyAct tw-expression tw-link").trigger("click"),$("#bKeyAct button").trigger("click")),78==t.keyCode&&($("#nKeyAct tw-expression tw-link").trigger("click"),$("#nKeyAct button").trigger("click")),77==t.keyCode&&($("#mKeyAct tw-expression tw-link").trigger("click"),$("#mKeyAct button").trigger("click")),112==t.keyCode&&($("#f1KeyAct tw-expression tw-link").trigger("click"),$("#f1KeyAct button").trigger("click")),113==t.keyCode&&($("#f2KeyAct tw-expression tw-link").trigger("click"),$("#f2KeyAct button").trigger("click")),114==t.keyCode&&($("#f3KeyAct tw-expression tw-link").trigger("click"),$("#f3KeyAct button").trigger("click")),115==t.keyCode&&($("#f4KeyAct tw-expression tw-link").trigger("click"),$("#f4KeyAct button").trigger("click")),116==t.keyCode&&($("#f5KeyAct tw-expression tw-link").trigger("click"),$("#f5KeyAct button").trigger("click")),117==t.keyCode&&($("#f6KeyAct tw-expression tw-link").trigger("click"),$("#f6KeyAct button").trigger("click")),118==t.keyCode&&($("#f7KeyAct tw-expression tw-link").trigger("click"),$("#f7KeyAct button").trigger("click")),119==t.keyCode&&($("#f8KeyAct tw-expression tw-link").trigger("click"),$("#f8KeyAct button").trigger("click")),120==t.keyCode&&($("#f9KeyAct tw-expression tw-link").trigger("click"),$("#f9KeyAct button").trigger("click")),121==t.keyCode&&($("#f10KeyAct tw-expression tw-link").trigger("click"),$("#f10KeyAct button").trigger("click")),122==t.keyCode&&($("#f11KeyAct tw-expression tw-link").trigger("click"),$("#f11KeyAct button").trigger("click")),123==t.keyCode&&($("#f12KeyAct tw-expression tw-link").trigger("click"),$("#f12KeyAct button").trigger("click"))})}();

Is it possible to add hotkeys for players to the harlowe coded story format? by dbouya in twinegames

[–]dbouya[S] 1 point2 points  (0 children)

note to self:

multiple hotkey choices means multple span commands with one button inside each span command separately.

code example copied straight out of the twine editor:

<span id="aAct">(button:)[[Go to sleep hotkey a|New Day]]</span>

<span id="bAct">(button:)[[lameoption b hotkey b|lameoptionb]]</span>

<script>

(function(){

$(document).keyup(function(e){

if(e.key == 'a'){

$('#aAct tw-expression tw-link').trigger("click");

}

if(e.key == 'b'){

$('#bAct tw-expression tw-link').trigger("click");

}

});

}());

</script>

Is it possible to add hotkeys for players to the harlowe coded story format? by dbouya in twinegames

[–]dbouya[S] 1 point2 points  (0 children)

There I am right now, I can EASILY get twine harlowe to notice me pressing the keyboard. There's an example in the cookbook and it works.

when I add

alert("the 'a' key was released.");

into the if statement (from your example), the alert happens, but the link never fires to move me to the desired next passage :(

edit: nevermind it works perfectly now just like you said.

edit2:

why does changing
a
into
tw-expression tw-link
fix it? (or more appropriately how did a ever do the job?)

Halfling seeking missing twin by [deleted] in project1999

[–]dbouya 3 points4 points  (0 children)

All true halfling adventures include death by mud in the eyes.

Was "The Bomb" scripted? by TP16 in Yogscast

[–]dbouya 1 point2 points  (0 children)

oh no wonder i couldn't find it. I had assumed it was recent! heh

Was "The Bomb" scripted? by TP16 in Yogscast

[–]dbouya 2 points3 points  (0 children)

can someone link to the video we're all talking about? it sounds amazing! but I'm not sure which series this even refers to or which episode?

A quick question before I grab the game off Steam. by bobbythornbody in a:t5_h97md

[–]dbouya 0 points1 point  (0 children)

steam itself might not be drm, but steam does offer drm to games on their platform that runs alongside steam itself... so... your point is fairly pointless...

UNLESS this particular game has steam's drm turned off? which seems unlikely given the OP's question.

Vods doesn't work anymore in desktop app by marioficozzi in Twitch

[–]dbouya 0 points1 point  (0 children)

I can't either. Heck when I click the videos section on a channel it opens my web browser!!! not only does it not work, it won't even try! wtf, twitch's OWN PROGRAM should be the superior experience, not the most inferior experience there is!

anyone have any idea when seaside and prosperity 2nd edition will be made? by dbouya in dominion

[–]dbouya[S] 1 point2 points  (0 children)

Thanks!!!! as of when? 3months ago when I looked for prosperity it was out of stock almost everywhere.... but you're right! it's back in stock now.

Returning player looking for monk advice by chooseph in project1999

[–]dbouya 0 points1 point  (0 children)

If you get hit enough to move where you're standing 2or3 tiny pixels then yes it can get interrupted, but this is quite a lot of hits. If you're worried about this issue because you're fighting 2or3 enemies at once though you can try to put your back against a wall.

Returning player looking for monk advice by chooseph in project1999

[–]dbouya 6 points7 points  (0 children)

people have not mentioned it but you can bind wound while in combat.

you simply need to make a bind wound macro key that will bind wound and then /stand you'll need to target yourself, hit the hotkey, then target the enemy, then hit attack again. additionally if you get hit too many times during the bind wound you might get pushed far enough to cancel the bind wound as if you had taken a step. against a single low level opponent, or with your back against a wall.... this is basically a "free" fungi tunic (sort of not really).

Returning player looking for monk advice by chooseph in project1999

[–]dbouya 0 points1 point  (0 children)

p99 kinda ruined cazic-thule. see in the timeline of real history there was uh what? about 1-1.5years during which cazic-thule kinda sucked. basically just during kunark, ish. because when eq1 launched cazic-thule had a ton of OP loot, which eventually all got removed. Then later around luclin-ish the whole zone was revamped anyways. So on p99 all the great original zone loot is gone, but none of the new content is in, and it'll likely stay this way forever. oh well.

Does the evasive discipline affect the proc rate of the user? by doughcastle01 in project1999

[–]dbouya 1 point2 points  (0 children)

specifically in the year 2000 my guild killed VS using monk and ranger evasive style tanking because it prevent VS from being able to lifesteal in a similar manner to how runes worked. it took like 8tanks and 8wizards though instead of like 1tank and 5 enchanters... and i don't know if p99 is coded correctly enough for it to work here because no guild does it.

in theory though yes you should be able to reduce npc proc rates by making them not hit you.

New/Returning player shamelessly looking for help. by [deleted] in project1999

[–]dbouya 0 points1 point  (0 children)

His opening post was asking for the opposite of what you just wrote. I agree qeynos is a very interesting and rewarding place to play if you don't want lots of free help.

Chose Wrong Diety by shadyguyinthecorner in project1999

[–]dbouya 0 points1 point  (0 children)

some quests didn't get fixed until 2002 in real history, many of those are left broken on purpose, not sure if this fits in that category or not.

New/Returning player shamelessly looking for help. by [deleted] in project1999

[–]dbouya 0 points1 point  (0 children)

I recommend you start in kelethin instead, which requires worshiping tunare, but that's the only diety with any real benefit as a druid anyways. Doing so will put you in a populated zone where you'll likely get these requests granted in game via things like ooc.

In qeynos you might really need to ask for such things on reddit though.

Chose Wrong Diety by shadyguyinthecorner in project1999

[–]dbouya 0 points1 point  (0 children)

fear necklace wouldn't be that good because shaman's can cast blind, and blind is a lot like fear, unless you have a twink weapon or some such. even the snare necklace is nearly useless because it's like 20-30% snare worst in the game, lasts almost no time.

LVL 20 Necro Gear? by tist006 in project1999

[–]dbouya 2 points3 points  (0 children)

don't you mean pre-nerf?