Recent content by Gymhgy

  1. G

    Change variables and maps from other scripts

    How do I call on a map or change a variable in an imported script? Pretend I have script A with a map of items that are true or false. In my other script, I import script A and want to do a foreach for all that return true in the map in script A. I see other people's scripts import EatDrink.ash...
  2. G

    Absorb Capacity in gelatinous noob

    Nvm, just added an int called absorptions, and a boolean called at_max_absorptions. Changed the loop to: if (absorptions == 15) at_max_apsorptions = true; if (!at_max_absorptions) { for x from 1 upto 15 by 1 { cli_execute("absorb" + thingamabob); absorptions + 1; } }
  3. G

    Absorb Capacity in gelatinous noob

    Is there a variable that checks for the current amount of absorptions? Right now, what I do is just try { for x from 1 upto 15 by 1 { cli_execute("absorb" + thingamabob); } } finally { do_something(); } I want to replace the try/finally with an if statement checking the amount of...
  4. G

    Does it Profit?

    Not sure how the following statement works: theItemList[it][numeric_modifier(it, "Effect Duration")] I know that the statements before it goes through the list of all items in the game and single the ones that adds meat drop and familiar weight, but I can't find any function in the wiki that...
  5. G

    Does it Profit?

    I just started learning ASH, and this is one of my first scripts. What this does: It calculates if a meat enhancing item is worth the purchase or not. Just set the base_meat_per_adv variable to the monster you farm. (default is 400) Type in "doesitprofit" in the CLI and it will start...
Top