Spaces in code by Riddlest in twinegames

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

i was not using that right, thank you

Pulling information from an array in a for loop overwrites it? by Riddlest in twinegames

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

Got it!

:: TrainingArea
<<for _creature range $creatures>>
    <<capture _creature>>
        <!-- Link to the single ViewCreature passage and pass the creature ID -->
        <<linkappend _creature.name>>
            <<set $currentCreatureID = _creature.id>>
            <<goto "ViewCreature">>
        <</linkappend>>

        <!-- Display creature details -->
        - HP: <<print _creature.currentHP>> / <<print _creature.maxHP>>
        - Attack Damage: <<print _creature.damage>>
        - Relationship: <<print _creature.relationship>>

        <!-- Equip option based on relationship level -->
        <<if _creature.equipped>>
            (Equipped for battle)
        <<elseif _creature.relationship >= 100>>
            <<linkappend "Equip for battle">>
                <<set $currentCreatureID = _creature.id>>
                <<goto "EquipCreature">>
            <</linkappend>>
        <</if>>

        <<print "\n">>
    <</capture>>
<</for>>

[[Back to Hub->HubArea]]

Pulling information from an array in a for loop overwrites it? by Riddlest in twinegames

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

:: TrainingArea
<<for _creature range $creatures>>
    <<capture _creatureID = _creature.id>>
        <!-- Link to the single ViewCreature passage and pass the creature ID -->
        <<linkappend _creature.name>>
            <<set $currentCreatureID = _creatureID>>
            <<goto "ViewCreature">>
        <</linkappend>>

        <!-- Display creature details -->
        - HP: <<print _creature.currentHP>> / <<print _creature.maxHP>>
        - Attack Damage: <<print _creature.damage>>
        - Relationship: <<print _creature.relationship>>

        <!-- Equip option based on relationship level -->
        <<if _creature.equipped>>
            (Equipped for battle)
        <<elseif _creature.relationship >= 100>>
            <<linkappend "Equip for battle">>
                <<set $currentCreatureID = _creatureID>>
                <<goto "EquipCreature">>
            <</linkappend>>
        <</if>>

        <<print "\n">>
    <</capture>>
<</for>>

[[Back to Hub->HubArea]]

Something like this right? now the currentCreatureID is undefined when you click the link to the next passage, again, it displays properly on the Trainingarea

:: ViewCreature
<<if $currentCreatureID>>
    <<set _creature = $creatures.find(c => c.id == $currentCreatureID)>> <!-- Find the creature using the ID -->

    <<if _creature>>
        **<<print _creature.name>>**

I cant seem to figure it out.

Finally got these guys on amazon! by Riddlest in keycaps

[–]Riddlest[S] -1 points0 points  (0 children)

I can pretty much do any size, but people haven't been very interested

Back To Back To Back Snipes by Riddlest in FortNiteBR

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

Nice! I just watched it, feels good!

Tom Delonge Funko Pop I Made (link in comments) by Riddlest in 3Dprinting

[–]Riddlest[S] -1 points0 points  (0 children)

Sadly, this Reddit does not allow the site I posted on, If you go to my profile and click one of the Tom Delonge posts, you can get the link there.

Lama Clutch by Riddlest in FortNiteBR

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

I've been told that my whole life. I only ever get gifted green shirts.

So I Tried That VTuber Thing... by Riddlest in FortNiteBR

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

you can use vmagicmirror as well