#(MrCrash) Foreach & server flag help

24 messages · Page 1 of 1 (latest)

hardy terrace
#

Hi,

I am currently making a script that implements a new energy, this one is stored in batteries and can be transferred from one battery to another using an item (battery_linker)

My problem is that a battery cannot transfer its energy to two others, the new link overwrites the old one, while I used a server flag in the foreach...

There's obviously something I'm doing wrong but I can't identify what, if you have the time to guide me that would be very cool 🙂

the relevant part of the script: https://paste.denizenscript.com/View/107728

rain wyvernBOT
#

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>

#

(MrCrash) Foreach & server flag help

copper walrus
#

!debug

drifting rapidsBOT
# copper walrus !debug
Info: debug

If you need help with a script issue, one of the most powerful tools Denizen has to offer is full debug output. This is displaying in your console whenever scripts are running until you turn debug off. To share a debug log quickly and easily with helpers, simply run the command /denizen debug -r in-game to begin recording, then run through the part of the script you need help with, then run the command /denizen submit. This will give you a link to a paste of the debug log, which you can then copy/paste back to us!

copper walrus
#

(also dont use wait inside a delta time event.. thats going to throw the whole event into being misaligned/mismanaged. split off that part into a task script so it can be run in its own queue)

hardy terrace
#

omg don't sure you want read that debug

#

the event secondly spam a lot btw

hardy terrace
#

okay i switched on another method , ty

modern fossilBOT
#
Resolved

Thread closed as resolved.

hardy terrace
modern fossilBOT
#
Thread Reopened

Thread was manually reopened by @hardy terrace.

modern fossilBOT
#
Thread Closing Reminder

Has your issue been resolved, or your question been answered?
If so, please use the </resolved:1028673926114594866> command to close your thread.
Or </invalid:1028673926898909185> if it's not possible to resolve.

If not yet resolved, please reply below to tell us what you still need.

(Note that if there is no reply for a few days, this thread will eventually close itself.)

#

@hardy terrace