Page 2 of 2 FirstFirst 1 2
Results 11 to 14 of 14

Thread: February 2020 IOTM: Powerful Glove

  1. #11
    Developer Veracity's Avatar
    Join Date
    Mar 2006
    Location
    The Unseelie Court
    Posts
    12,491

    Default

    Well ... I'm going to burn a new point release. We've fixed a lot of things since the most recent one - including taking care of the "these items don't work the same after Crimbo" - and I want to get it out before the new challenge path comes in less than a week, which will take an unknown - potentially substantial - amount of work to support.

    I don't have the time or interest to deal with the new "non-combat skills granted only if item is equipped" mechanism right now. Unless somebody else wants to dive in and do it, better to just make the point release now. Even if somebody else is willing to do that, still might be better to make the new point release first; I know that I often make mistakes which take longer than expected to fix and that might be the case for others, too.

  2. #12
    Developer Veracity's Avatar
    Join Date
    Mar 2006
    Location
    The Unseelie Court
    Posts
    12,491

    Default

    The glove's item description now says:

    The Glove's battery is fully charged.
    The Glove's battery is 95% charged.

    We could use that to set/correct _powerfulGloveBatteryPowerUsed at login.

  3. #13
    Senior Member
    Join Date
    Apr 2019
    Posts
    115

    Default

    Little issue: $skill[ CHEAT CODE: xxx].dailyLimit starts at 20 (or 10) and goes down by 1 each time you use Powerful Glove battery power.

    While it works, for the skills you DIDN'T cast, the daily limit of the skill you just used shouldn't go down.
    Otherwise, if for example i was to do
    Code:
    while($skill[CHEAT CODE: Triple Size].timescast < $skill[CHEAT CODE: Triple Size].dailylimit){
    	if(!have_skill($skill[CHEAT CODE: Triple Size]))	equip($slot[acc3], $item[powerful glove]);
    	use_skill($skill[CHEAT CODE: Triple Size]);
    }
    mafia would stop at 50% battery, $skill[CHEAT CODE: Triple Size].timescast being 10, and $skill[CHEAT CODE: Triple Size].dailylimit also being 10.

  4. #14
    Developer Veracity's Avatar
    Join Date
    Mar 2006
    Location
    The Unseelie Court
    Posts
    12,491

    Default

    Don't do that?

    while( $skill[CHEAT CODE: Triple Size].dailylimit > 0 )

    (I'm away from my computer with code, so can't check, but I believe that dailyLimit is calculated every time based on the amount of battery power you have left.)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •