Jump to content

Join our Slack

Talk to other users and have a great time
Slack Server

Welcome to our Community

Click here to get your Exiled Bot license
Donation Store
hamncheese

Variable for Pickit

Recommended Posts

so in the attempt to make writing pickit file easier why not have something like Variable to store the repeated values

The aim is to create a smaller file, easier to edit, and less work of course

 

for example, lets say i want to Stash Rare Helm, Chest, Amulet and Ring with this property 

- Maximum Life > 40

- minimal dual resistance with 30% each

 

the standard pickit writing as of now 

/////////////////////
// Life Dual Resist
/////////////////////

[Category] == "Boots" && [Rarity] == "Rare" # [base_movement_velocity_+%] >= "25" && [base_maximum_life] >= "40" && ([base_cold_damage_resistance_%] >= "30" || [base_fire_damage_resistance_%]  >= "30" || [base_lightning_damage_resistance_%] >= "30" || [base_chaos_damage_resistance_%] >= "30" ) && [StashItem] == "true"
[Category] == "Helm" && [Rarity] == "Rare" # [base_maximum_life] >= "40" && (([base_cold_damage_resistance_%] >= "30" && [base_fire_damage_resistance_%] >= "30") || ([base_lightning_damage_resistance_%] >= "30" && [base_fire_damage_resistance_%] >= "30") || ([base_cold_damage_resistance_%] >= "30" && [base_lightning_damage_resistance_%] >= "30")|| ([base_chaos_damage_resistance_%] >= "30" && [base_cold_damage_resistance_%] >= "30") || ([base_chaos_damage_resistance_%] >= "30" && [base_fire_damage_resistance_%] >= "30") || ([base_chaos_damage_resistance_%] >= "30" && [base_lightning_damage_resistance_%] >= "30")) && [StashItem] == "true"
[Category] == "Chest" && [Rarity] == "Rare" # [base_maximum_life] >= "40" && (([base_cold_damage_resistance_%] >= "30" && [base_fire_damage_resistance_%] >= "30") || ([base_lightning_damage_resistance_%] >= "30" && [base_fire_damage_resistance_%] >= "30") || ([base_cold_damage_resistance_%] >= "30" && [base_lightning_damage_resistance_%] >= "30")|| ([base_chaos_damage_resistance_%] >= "30" && [base_cold_damage_resistance_%] >= "30") || ([base_chaos_damage_resistance_%] >= "30" && [base_fire_damage_resistance_%] >= "30") || ([base_chaos_damage_resistance_%] >= "30" && [base_lightning_damage_resistance_%] >= "30")) && [StashItem] == "true"
[Category] == "Amulet" && [Rarity] == "Rare" # [base_maximum_life] >= "40" && (([base_cold_damage_resistance_%] >= "30" && [base_fire_damage_resistance_%] >= "30") || ([base_lightning_damage_resistance_%] >= "30" && [base_fire_damage_resistance_%] >= "30") || ([base_cold_damage_resistance_%] >= "30" && [base_lightning_damage_resistance_%] >= "30")|| ([base_chaos_damage_resistance_%] >= "30" && [base_cold_damage_resistance_%] >= "30") || ([base_chaos_damage_resistance_%] >= "30" && [base_fire_damage_resistance_%] >= "30") || ([base_chaos_damage_resistance_%] >= "30" && [base_lightning_damage_resistance_%] >= "30")) && [StashItem] == "true"
[Category] == "Ring" && [Rarity] == "Rare" # [base_maximum_life] >= "40" && (([base_cold_damage_resistance_%] >= "30" && [base_fire_damage_resistance_%] >= "30") || ([base_lightning_damage_resistance_%] >= "30" && [base_fire_damage_resistance_%] >= "30") || ([base_cold_damage_resistance_%] >= "30" && [base_lightning_damage_resistance_%] >= "30")|| ([base_chaos_damage_resistance_%] >= "30" && [base_cold_damage_resistance_%] >= "30") || ([base_chaos_damage_resistance_%] >= "30" && [base_fire_damage_resistance_%] >= "30") || ([base_chaos_damage_resistance_%] >= "30" && [base_lightning_damage_resistance_%] >= "30")) && [StashItem] == "true"

and now what if theres some sorf of Variable to hold all that exact same value ?

the above line would look something like this

/////////////////////
// Life Dual Resist
/////////////////////

{Variable1} = [base_maximum_life] >= "40" && (([base_cold_damage_resistance_%] >= "30" && [base_fire_damage_resistance_%] >= "30") || ([base_lightning_damage_resistance_%] >= "30" && [base_fire_damage_resistance_%] >= "30") || ([base_cold_damage_resistance_%] >= "30" && [base_lightning_damage_resistance_%] >= "30")|| ([base_chaos_damage_resistance_%] >= "30" && [base_cold_damage_resistance_%] >= "30") || ([base_chaos_damage_resistance_%] >= "30" && [base_fire_damage_resistance_%] >= "30") || ([base_chaos_damage_resistance_%] >= "30" && [base_lightning_damage_resistance_%] >= "30")) && [StashItem] == "true"

[Category] == "Boots" && [Rarity] == "Rare" # [base_movement_velocity_+%] >= "25" && {Variable1}
[Category] == "Helm" && [Rarity] == "Rare" # {Variable1}
[Category] == "Chest" && [Rarity] == "Rare" # {Variable1}
[Category] == "Amulet" && [Rarity] == "Rare" # {Variable1}
[Category] == "Ring" && [Rarity] == "Rare" # {Variable1}

what do u guys think ? 

i would personally love this, as this would make changing value, adding new mod, etc a hella lot easier

Edited by hamncheese

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...