#(JustinS) Compact flagging

26 messages · Page 1 of 1 (latest)

shy pier
#

Is there a way to compact this? (the list goes on forever)
I tried - flag <item...> variables.base_damage:5 variables.base_duration:5 variables.base_strength:3 etc. and it doesnt give an error in the editor though I feel like this wont work. Im unable to run anything atm so I can't test it.

pseudo mantleBOT
#

(JustinS) Compact flagging

pseudo mantleBOT
#

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.

shy pier
#

Using foreach loops wont work I think because each variable has their own unique value

patent scarab
#

!c definemap

thorny otterBOT
patent scarab
#

!l definitions

thorny otterBOT
#
Possible Confusion

Did you mean to search for data actions?

patent scarab
#

!l data

thorny otterBOT
# patent scarab !l data
Cannot Specify Searched Language

Multiple possible languages: Data Actions, Raid Event Data, Internal Entity Data, Data Script Containers.

patent scarab
#

!g definitions

thorny otterBOT
patent scarab
#

Create a definition out of your script and create a map to apply once

shy pier
#

what

#

I know how dictionaries work, or in this case called definemaps, but I have no idea what you mean

cedar valve
#

For the exact question of shortening up your script, you could do something like....
- definemap myCoolName key:value another_key:another_value etc:etc
- flag <FlaggableObject> flagname:<[myCoolName]>

However - flagging <item[some_item]> then moving on doesn't really make sense. The item object would be created, flagged, then never be used anywhere (each of your flag lines is currently getting a new ItemTag reference, not a single one).

#

If you want to apply some flags by default to all of your item_force_push items when they're created it's best to include that in the item script itself. Otherwise just need more details on the outcome you're looking for.

latent etherBOT
shy pier
#

yeah my bad Im not supposed to write that 'item'' there. I needed to flag the item script

#

not the item

cedar valve
#

No worries - in that case yea just the - definemap should get you there in few lines. I did just realize you're using submaps in your original question though... However the same concept applies. Feel free to ask if you're still stuck anywhere.

patent scarab
#

Then you can repeat the <[SCRIPT]> def as much as you need

shy pier
#

Thanks guys