Plushtoast / dsa5-extensiondb

5 stars 6 forks source link

Macro handling "Vier/Acht Ziele" & "Mehrere Ziele" #16

Closed Rapunzel77 closed 2 years ago

Rapunzel77 commented 2 years ago

There are many locations that increase costs with more targets selected. Currently this is only automated for two targets as the cost in straight forward. Creating a macro for this would allow many spells extensions to be automated thus having a big impact on completion with a single macro. If it is possible to access player selections this should be totally doable, right? Example:

"Atemnot": [
    {
      "name": "Zwei Ziele",
      "complete": true,
      "changes": [
        {"key": "system.AsPCost.value", "mode": 2, "value": 2}
      ]
    },
    {
      "name": "Vier Ziele",
      "complete": false,
      "changes": [
      ]
    },
    {
      "name": "Acht Ziele",
      "complete": false,
      "changes": [
      ]
    }
  ],
Plushtoast commented 2 years ago

Geht, ich mach ein Beispiel

Plushtoast commented 2 years ago

Siehe Atemnot vier Ziele makro

Rapunzel77 commented 2 years ago

Soll das für jedes Vorkommen angelegt werden? Das sieht aus, als ob sich da auch gut eine Bibliothek machen lässt:

Alternative:

Da könnte man dann auch zentral noch nach einer Obergrenze an zielen prüfen oder sonst irgendetwas mit dem Wissen tun wie viele ziele es sein sollten.

Vom Aufwand ist es fast gleich, daher würde ich das machen wie du das für besser hällst. Meinen Fingern kribbelt es bei so-etwas nur es wiederverwendbar zu machen.

Plushtoast commented 2 years ago

Ja, da hast du wohl recht. War mir nicht sicher ob man da spaeter noch anderen code hinzufügen will. Aber dann kann man es immer noch aufblasen