
Jarrod . said:
Alex, have you found out a way to implement vulnerabilities into the script?
Vulnerabilities are just negative resists, and should work that way.
Jarrod . said:
Alex, have you found out a way to implement vulnerabilities into the script?
Jarrod . said:
Have you considered any way to include an adjustment to attributes within a macro.. such as 'target gets a +2 to all defenses until the end of your next turn' being able to have say -z 2 (and have -z represent attributes for AC Fort Reflex and Will).. and then maybe have some customizable ones?
or would that be too complicated?
Jarrod . said:
So, what exactly needs to change from the macros from before? Currently, using the macros I have set up, I'm getting a return of "error in apicmd". Are the new parts of the power cards (which... are awesome by the way, THANKS HB!) required for a macro to work?
Jarrod . said:
all I did was copy in the new script and use the macros I had set up. they worked before the update and now I just get
Jarrod . said:
I will also try using the new formatting for the power cards to see if that makes a difference
/em Test Power !power @{selected|token_id} "Test Power" -a [[1d20+@{Int}+3+1]] -action "Minor Action" -C 19 -d [[1d6+@{Int}+1]] -D [[1d6]] -e "Effect" -E "purple,pink" -h "Hit" -H "green" -k "Weapon, Arcane" -l -m "Miss" -M "yellow" -r "Ranged 10" -R "Something Happens" -s "Can be used as a basic attack" -S "One person" -t @{target|token_id} -T Cold -u Encounter -v Will -y Fire /em Test Power Direct Damage !power @{selected|token_id} "Test Power Direct Damage" -d [[2d8]] -t @{target|token_id} /em Test Power tohit !power @{selected|token_id} "Test Power tohit" -a [[1d20]] -o 10 -h "Hit" /em Test Power Heal !power @{selected|token_id} "Test Power Heal" -t @{target|token_id} -c [[d6]] -b [[20]]
!power @{selected|token_id} "Recovery Strike" -t @{target|token_id} -a [[1d20+11+ ?{bonus to attack|0}]] -d [[1d10+1+ ?{damage bonus|0}]] -D [[2d6]] -v AC -h "next ally who hits the target before the end of Dracarys' next turn regains @{CHA_MOD} HP" -H chained-heartWith new power card stuff:
!power @{selected|token_id} "Gaze of Defiance" -t @{target|token_id} -a [[1d20+15+ ?{bonus to attack|0}]] -d [[1d8+8+ ?{damage bonus|0}]] -D [[2d8]] -v Will -T Psychic -h "your allies gain a +1 power bonus to attack rolls against the target until the end of your next turn. If the target attacks you before the end of your next turn, the bonus increases to +3" -u At-Will -A Standard Action -r "Ranged 5" -S "one creature" -k "Divine, Implement, Psychic"Results of test macros:
Jarrod . said:
Without new power card stuff:!power @{selected|token_id} "Recovery Strike" -t @{target|token_id} -a [[1d20+11+ ?{bonus to attack|0}]] -d [[1d10+1+ ?{damage bonus|0}]] -D [[2d6]] -v AC -h "next ally who hits the target before the end of Dracarys' next turn regains @{CHA_MOD} HP" -H chained-heartWith new power card stuff:!power @{selected|token_id} "Gaze of Defiance" -t @{target|token_id} -a [[1d20+15+ ?{bonus to attack|0}]] -d [[1d8+8+ ?{damage bonus|0}]] -D [[2d8]] -v Will -T Psychic -h "your allies gain a +1 power bonus to attack rolls against the target until the end of your next turn. If the target attacks you before the end of your next turn, the bonus increases to +3" -u At-Will -A Standard Action -r "Ranged 5" -S "one creature" -k "Divine, Implement, Psychic"Results of test macros:
Jarrod . said:You can set the usage as item yes.
Does it also include HB's update for the usage for Item powers as well?
Edit: How does the script interact with damage that has multiple types?It only does this for crit damage, are there many powers that do multipule types of damage?
Awesome, I'll play around with it.Alex L. said:
Jarrod . said:You can set the usage as item yes.
Does it also include HB's update for the usage for Item powers as well?
Edit: How does the script interact with damage that has multiple types?It only does this for crit damage, are there many powers that do multipule types of damage?
Jarrod . said:
Awesome, I'll play around with it.Alex L. said:
Jarrod . said:You can set the usage as item yes.
Does it also include HB's update for the usage for Item powers as well?
Alex L. said:Edit: How does the script interact with damage that has multiple types?It only does this for crit damage, are there many powers that do multipule types of damage?
Not a lot on the player end.. but there are a decent number of monster powers that deal dual-typed damage. As far as 4e rules go, unless you resist all the types of damage, you take full damage. Example: power does 1d10+7 fire and radiant power (like, an angelic fire attack) and you have a player with resist 5 fire. They would still take full damage. If said player had resist 5 fire and resist 10 radiant, they would resist 5 of the damage. A lot of this can be done on the GM side, I was just unsure if it was incorporated already.
Jarrod . said:
Something I just noticed while updating all my macros.. the idea we discussed for having a query based on striker damage dice (such as backstab for rogues, quarry for hunters, and so on) prompted me to add those in as well.. it seems that when using xdy*?{query} in the -d section.. it returns an error in apicmd. I'll try to adjust macros to test around to find out what the extent of the complication of numbers is before it returns an error.
Kenny T. said:
usually when its an ability that hits multipl targets i make 2 macros. 1 for the initial attack and damage roll with the explanation and what not then i make a "Thunderwave-2ndry" macro that includes a new attack but queries the user for a damage value. -a [[d20+7+?{Bonus to Attack?|0}']] -d [[?{Damage dealt?|0}]] i don't think there has been a good method to automate multiple target hits yet.
Matt G. said:
Gday Alex, Love the script. Can we get 'HIT' and MISSED text in the cards? Also, I don't see the target or the source anymore.Never mind, I just read your example scripts. I would still like to hide miss conditions or hit conditions. just so its clear i HIT , or MISSED.
How would you handle two targets?
Jarrod . said:
Thanks for the fix Alex! (Edit: Does this currently handle the insubstantial property at all?)
AOE/Multi-target attacks are likely going to be the most challenging thing to automate. I've tried two things so far:
1) treat a burst/AOE as a power that repeats for each target in the burst- making a macro like a single target attack and just using it once on each target.
2) make an attack macro and roll that, then make a damage macro and roll that.. Then apply a direct damage GM macro to apply the damage.
I think I'm leaning toward the first option for the sole reason of it being less complicated.
Jarrod . said:
@Calhanol- There's nothing that let's you adjust multiple targets at once yet as far as I know.
Alex, I noticed that the resistances and vulnerabilities aren't working with the new implementation of the power cards. (I feel like I'm always breaking your stuff with how much I'm posting.. sorry man)
Matt G. said:
Gday Alex, Love the script. Can we get 'HIT' and MISSED text in the cards? Also, I don't see the target or the source anymore.Never mind, I just read your example scripts. I would still like to hide miss conditions or hit conditions. just so its clear i HIT , or MISSED.
How would you handle two targets?
GenKitty said:
I followed the directions at the top about having apicmd as the first script and this as the second script, and then I did your test of the four lines in chat that you had Jarrod do, and I got similar results. Help?
John M. said:
I really need to make those error messages more verbose, huh? If you look in the API log window you should see the full error message.
!ca-power @{selected|token_id} "Test Power" "testpower"
!ca-check @{selected|token_id} "firstcheck" "testpower" --roll [[1d20+4+1d6]] --vs "ac" --target @{target|token_id}
!ca-action @{selected|token_id} "dmgaction" "firstcheck" "testpower" --damage [[1d6+2]] --condition "hit"
!ca-action @{selected|token_id} "txtaction" "firstcheck" "testpower" --text "[firstcheck.dmgaction.damage] damage" --textkey "Hit" --condition "hit"
!ca-run @{selected|token_id} "testpower"
Jarrod . said:
So, that's going to be the new form of macro then?
Alex L. said:
Jarrod . said:
So, that's going to be the new form of macro then?
That is the most basic example yes, i think with the exception of statuses you should be able to do every power in the game with the new setup.
Jarrod . said:
Alex L. said:
Jarrod . said:
So, that's going to be the new form of macro then?
That is the most basic example yes, i think with the exception of statuses you should be able to do every power in the game with the new setup.
I feel like despite this being more to type out, it's actually going to be a lot easier to structure, look at, adjust, and deal with.
You mentioned "with the exception of statuses".. did you mean things like bonuses/penalties to defenses.. or things involving status markers?