EndlesNights / dnd4eBeta

An implementation of the dnd4e game system for Foundry Virtual Tabletop (http://foundryvtt.com).
https://foundryvtt.com/packages/dnd4e
GNU Affero General Public License v3.0
37 stars 30 forks source link

[Request] Add an auto-complete search #144

Open Gallatus opened 2 years ago

Gallatus commented 2 years ago

My party is trying to configure their builds using effects, but no one knows how to call the @mods by heart. Would be great if one could simply use "@" and get an auto-complete list and select it.

Also, is there any glossary or info i can provide to them? Is it embedded on the dnd4ebeta.zip?

(This is implemented on 5th edition by modules, but can't seem to work here.)

draconas1 commented 2 years ago

I am starting to write some docs that we want to move into a journal article when its done.

I have listed all the custom @variables in the system https://docs.google.com/document/d/1JubZljqfhKK_MrB7V2Brn8zpKq1kmSsg1qTneHfL5Zg/edit#

auto complete will probably be very complicated, if you know a system where it has been done that would be enormously helpful as we can go have a look how they manage it.

draconas1 commented 2 years ago

A quick help for you for effects that may help out, create a power, select for Resource Consumption "attribute" and the dropdown will populate with a massive list of character attributes.

Gallatus commented 2 years ago

Thanks for the info. i'll try to find how the auto.complete worked on 5th edition. I tried with the adding some attributes with "add +2" on effects, to no result. Probably i'm missing somthing obvious.

Could you share an example for Effect temporary with bonus +2 dmg, 2 attack roll, with weapon and implement? Thx.

draconas1 commented 2 years ago

I have noticed there is a module that does this, but it does not have 4E compatibility. See my comment on https://github.com/EndlesNights/dnd4eBeta/issues/145 I will get around to looking at it in time as a nice to have.

You can't make a temporary bonus to all weapon attack rolls using an effect or narrow an effect down to use weapon or implement. For a temporary effect the way I would do this is putting a status icon on the token to remind me about the effect and then enter the temporary bonus in the relevant attack or damage roll dialog when i clicked the button.

Gallatus commented 2 years ago

Here's an example of what i was doing on 5th edition. : Let's say Steve has a daily power X that grants him +2 attack rolls and +2 dmg rolls until the end of the encounter.
I would use an effect for this, on the character, made it passive, and then use a macro to activate the effect with a shortcut like "Numpad1".
If it's possible on 4th ed, i didnt find any sollution, perhaps i didn't search enough. Now if it was possible to determine as "temporary" and set the "timer" to "end of the encounter" that would be sweet. :)

draconas1 commented 2 years ago

So if you get the latest version of my tools https://github.com/draconas1/foundry-4e-tools they now have support for auto-completing active effects in 4E.

https://github.com/EndlesNights/dnd4eBeta/pull/149 will allow you to specify attacks and damages conditionally for powers based on the power or weapons keywords. Auto complete will also support them.

draconas1 commented 2 years ago

I am not looking at auto complete for items/powers and formula yet as that's a bigger chunk of work.

Similarly encounter based effects are currently beyond me.

NuptupTDOW commented 2 years ago

Not to step on toes or anything, but you could also take a look into how the Pathfinder 2e system is handling their effects. It makes raging a breeze in that system since you literally just drag and drop a compendium effect from the text box of your rage power onto your token and it applies the effect for "duration" which is whatever is set for that effect. If that could get up and working, then you'd be able to make custom effects such as the daily they mentioned above and just blanket buff that effect with a flat +2 damage +2 attack for example.