#(nasrulswd) how can i make thirst system using denizen plugin ??

49 messages · Page 1 of 1 (latest)

blissful harnessBOT
#

(nasrulswd) how can i make thirst system using denizen plugin ??

#

Hi I'm AutoThreadBot! Don't mind me, I'll just be adding the helper team to this thread so they can see it. A human will get to you soon.
You can block this bot if you don't want to see these messages, I won't mind.
<@&525394568410038282>

rustic token
#

I think you should start with the idea of how the mechanics will work

#

how does my thirst go down?

#

what external variables affects the speed it goes down

#

what effects would it apply if it gets depleted

#

how will the player replenish their thirst

#

those kinds of mechanics

#

and I assume you haven't started on the basics of denizen so you can start here

#

!guide

ebon pierBOT
rustic token
#

otherwise, post a code of what you've done so far and what are you trying to do currently

gilded imp
#

is it imposible to make the system mechanics

#

?

rustic token
#

think of it as writing what you want to happen in sentences first

#

thats your checklist

#

then after you're done with checklist,
apply it in denizen

#

I can assure you its 100% possible with denizen

gilded imp
#

thanks for your advice

#
thirst_system:
    type: world
    debug: false
    events:
        on player walks:
            - if !<server.flag[thirst]>:
                - flag server thirst:++     <-----(how can i limit this value)
            - if <player.is_sprinting>:
                - if <player.flag[thirst]> = 0:  <-----(how can i set on player first spawn set default the value to 20)
                ^ (how can i give effect to player)
#

anyone can help me?

pine fog
#

First please answer the questions above ^, to properly help you we need to know exactly what are you trying to do

gilded imp
#

ignore the ^ ..typo

fiery wedge
gilded imp
#

idk i am trying

gilded imp
fiery wedge
#

what are you doing in your code hete

gilded imp
#

it's typo ..flag <player> thirst:++

#

is it right?

fiery wedge
#

what are you trying to do there

#

like whats the purpose

gilded imp
#

i am try to make player have thirst flag and idk how to set the flag value for example the max is 20 the min is 0 ... if player sprinting the flag is going down...and if the flag player is 0 ,,player will get effect

#

@rustic token can u help me ?

#

i have no idea to do

rustic token
#

go through the denizen guide first.
clearly you're jumping the gun.

as I said before organize the mechanics.
once you organize the mechanics, break them down to steps and convert those steps into denizen code.

#

!guide

ebon pierBOT
rustic token
#

also you're not suppoed to ping people

#

!rule 3

ebon pierBOT
# rustic token !rule 3
Rule 3

Don't ping for help. https://denizenscript.com/discord_rules#rule3
"Pinging" refers to using an @ to alert somebody to your post.
Generally only ping somebody if your message is very specifically directed at them (meaning, only that person has anything to do with the information in your message, and it would be confusing who it was for without the ping).

If you're asking a question, please just make a forum post and ask.
If you have a bug report or a feature request, please just make a forum post about it.

If this is pulled up for you by a helper, your ping was unneeded.
If you're arguing about it, you're wrong.

gilded imp
#

i am sorry

spark kestrelBOT
#

@gilded imp

Thread Close Blocked

Thread was closed either automatically by timeout or by the Discord manual close button. If closing was intentional, please use </resolved:1028673926114594866> or </invalid:1028673926898909185>.

pine fog
#

You can keep the post open - we can help you with this specific script, but you need to have a grasp of the basics first (I.e. proeprly going through the guide)

spark kestrelBOT
#
Resolved

Thread closed as resolved.

#
Thread Reopened

Thread was manually reopened by @gilded imp.