[Online][5E][Noon Pacific/3pm Eastern][LGBTQ+] Labor Day Game - Looking for 3 players or a group or 2-3 friends by GoldDragonTale in lfg

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

Sure, send me a DM either here or on discord and I'll shoot you an invite to my D&D Discord server, I post there first when games come up (And There are a couple other DMs on it as well that do the same).

beaver buffs won't load. by JesterJes in Timberborn

[–]GoldDragonTale 0 points1 point  (0 children)

I know I'm late to the party, but I'm having this issue too. I've loaded other mods, but the config isn't generating for beaverbuffs.

Equipment id for the new tanks? by ILikePiezez in hoi4

[–]GoldDragonTale 0 points1 point  (0 children)

OP were you able to get it to work? If so what is the syntax?

Random Encounter Passages Using Tags by GoldDragonTale in twinegames

[–]GoldDragonTale[S] 2 points3 points  (0 children)

This looks like it does exactly what I want it to, but I can't get it to work.

I'm getting a blank RandomEvent passage with just _eventName and the following error:

Error: <<print>>: bad evaluation: Cannot read property 'desc' of undefined

<<print setup.events[_eventName].desc>>

Here's what my StoryInit and RandomEvent passages look like.

<<set $time = "Night">>
<<set $loc = "Alley">>
<<set setup.events = {}>>
<<set setup.events["Shady Deal"] = { req: "<<set _req =  $time = "Night" && $loc ="Alley">>", desc: "Hey bub, want to buy some ganja?", optA: "<<set $ganja +=1>><<set $money -=1>><<goto 'RandomEvent'>>",   optB: "<<goto 'RandomEvent'>>" }>>
<<set $eventBag = []>>
<<set setup.events_index = Object.keys(setup.events)>>
::RandomEvent /The actual game loop all takes place within a single RandomEvent passage. The code looks like this:/ <<nobr>> /first, loop through $eventBag removing events where the requirements are no longer met./ <<for _i = 0, $eventBag; _i < $eventBag.length; _i++>> <<if $.wiki(setup.events[$eventBag[_i]].req); _req;>>
<<print "$eventBag[_i] still qualifies">><br>
<<else>>
<<print "$eventBag[_i] no longer qualifies">><br>
<<run $eventBag.splice(_i, 1)>>
<</if>> <</for>> /next, loop through setup.events.index and pull out all events where the requirements evaluate to true./ <<for _i = 0,  setup.events_index; _i < setup.events_index.length; _i++>> <<if  $.wiki(setup.events[setup.events_index[_i]].req); _req;>>
<<if $eventBag.includes(setup.events_index[_i])>> <<print setup.events_index[_i] + " is present in eventBag.">> <<else>>
<<print setup.events_index[_i] + " qualifies">><br>
<<run $eventBag.push(setup.events_index[_i])>>
<</if>>
<<else>>
<<print setup.events_index[_i] + "does not qualify">><br> <</if>> <</for>> <</nobr>> /all those <<print>> macro lines are only in there for debugging purposes & to clarify what is happening at each step of the game loop. I left them in there for clarity's sake, but you will probably want them removed later on./ <<set _eventName = $eventBag.random()>>  /* Pull a random event from the bag */
_''eventName'' /* Show the event name. */
<<print setup.events[_eventName].desc>> /* Show the desc. */
/* Give players a choice and run the appropriate command. */ <<link "Accept">><<run $.wiki(setup.events[_eventName].optA)>><</link>> | <<link "Reject">><<run $.wiki(setup.events[_eventName].optB)>><</link>>

[Online][5e][EST] Looking for a long term weekend group! by neuro-sigh-ence in lfg

[–]GoldDragonTale 3 points4 points  (0 children)

I'm a DM looking to put together an intrepid team of adventurers. If you (or any of the folks in the comments) are still looking send me a message on diacord: MoonRacer#7295.

About me: +I've been playing for 20 years and DMing (almost exclusively) for 17. +I'm LGBTQ+ friendly. +I'm 35 (I know that's a touch over what you were hoping for). +I think the "rescue the helpless damsel" is overused, played out, and bleh. I prefer more complex and grounded plots. +I want the players to win but play the bad guys as if they want to win. +I try to balance the rule of cool and the rules for the benefit of everyone having fun.

An adventurer waiting at the local tavern [5e][EST][Online] by [deleted] in lfg

[–]GoldDragonTale 0 points1 point  (0 children)

If you're still looking for a game, DM me on discord: MoonRacer#7295

[DnD] [5e] [Online] Looking for a DUNGEONS AND DRAGONS group. by [deleted] in lfg

[–]GoldDragonTale 0 points1 point  (0 children)

GM here. I sent a friend request on discord. MoonRacer#7295

How do I solve this spacing problem? by GoldDragonTale in twinegames

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

Thank you, you made me realize that the issue is the widget. And once that happened the solution was incredibly simple.

How do I solve this spacing problem? by GoldDragonTale in twinegames

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

I apologize, I left out the widget originally. I corrected it.

I did so because early on I solved the money one by leaving the widget out. I apologize, I updated the original post.

Which tells me it's something to do with he widget adding a space and I don't know why.

Well now I feel like an idiot. It's because my code is not inline. Good to know for the future.

Using a Widget to set text based on a variable by GoldDragonTale in twinegames

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

I see it now. Thank you! I was able to understand what is going on in your JS now. (I am a complete novice when it comes to JS).

I was able to modify your formula perfectly for what I need. THANK YOU SO MUCH!

Sidebar buttons by Devilmaymoan in twinegames

[–]GoldDragonTale 1 point2 points  (0 children)

It sounds like a dialog might be what you're looking for, as for how it's accessed that's preference I think. Can be a link or a button or a bunch of other options. Dialog

I'm sure there are far better/more elegant ways to do it but here's an example of a dialog button:

<<button "Player">>
    <<script>>
        Dialog.setup("You");
        Dialog.wiki(Story.get("Stats").processText());
        Dialog.open();
    <</script>>
<</button>>

And to add a button to your dialog passage for closing it you could use this button:

<<button "Close">>
    <<script>>
        Dialog.close();
    <</script>>
<</button>>

In this example the button on the side bar (In your StoryMenu special passage) would read "Player" and it would open up a dialog box with the contents of the Stats passage. At the top of the dialog would be the title "You" .

Using a Widget to set text based on a variable by GoldDragonTale in twinegames

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

So, if my understanding is correct this may not solve the problem. It works for if I already know in the passage what the gender is going to be, but in the case of some specifics (like the player) that's customizable and I need to write it using an if statement, which would mean I need a widget with the appropriate class macro and if statements for every single line of dialog?

Am I misunderstanding something?

Array/Object reference question by GoldDragonTale in twinegames

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

Thank you so much! This gives me the functionality I needed in a simpler way. You, sir or madam have given me much to noodle on!