#(Wahrheit) Fractal tasks question
44 messages · Page 1 of 1 (latest)
(Wahrheit) Fractal tasks question
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.
Currently it just runs a separate task with the same / similar code but I figured I could inject the same task with new definitions and it would... be fine?
I could also probably just reorder the code to not make it run fractally lol
but I find the concept amusing
I do this as well with a leveling system I'm working on (runs to give a player certain amount of xp, if the xp is greater than one level threshold, it substracts the current threshold and runs again to handle the remaining thresholds reached (if that's the case) inside the same task)
Would love to hear opinions on this or if it's frowned upon/there's an alternative to it(?)
I tested it and it appears to work
Yeah it works very well for me and I was relieved I could handle it without having to write similar code that basically does the same thing lol, I'm just interested to see if it's not preferred or there are any risks to it
i personally wouldn't inject, but instead use run to start a new queue
no idea if there are consequences to recursive injects
I generally prefer inject over run
related to this uplift am I going to get shouted at by the debugger if I use elementtag.parsed to parse a maptag value
not seeing an alternative tag
I am storing item: <mythic_item[ImbuedShovel]> in the data script atm which is not my favorite way to do it, but...
I don't see a warning in the editor
and it appears to work flawlessly
If you get them from a data script use parsed_key, to parse all tags within
!t script.parsed_key
Returns the value from a data key on the script as an ElementTag, ListTag, or MapTag.
Will automatically parse any tags contained within the value of the key, preserving key data structure
(meaning, a tag that returns a ListTag, inside a data list, will insert a ListTag inside the returned ListTag, as you would expect).
ObjectTag
not sure that will work here
- define itemlist <list>
- foreach <script[daily_login_spinner].data_key[data.<[sourcelist]>]> as:entry:
- define itemlist <[itemlist].pad_left[<[itemlist].size.add[<[entry].get[weight]>]>].with[<[entry].get[item].parsed.as[item].with[quantity=<[entry].get[quantity]>]>]>
I could try
if you have maptag definitions you can also do <[entry.weight]>
does the foreach loop runs in the same script as your data?
ah ye ok
heading to the movies for now, will try some more of these little tweaks after
already YUGE progress today tho
I'm so glad @digital walrus did the github highlighting
same lol

The only obvious consequence would be an infinite loop, but unfairly confident war height would have compensated for that
mergus suggestion on running it as a new queue on repeat is probably a good suggestion but as long as you're being careful with infinite loops, you shouldn't really have any issues
but unfairly confident war height would have compensated for that
but i'm fairly confident wahrheit would have* - yike, i dont know how i missed that typo
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.)
@spare pollen