Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Condition spell_count by school #67897

Closed
Maleclypse opened this issue Aug 26, 2023 · 0 comments · Fixed by #67946
Closed

Condition spell_count by school #67897

Maleclypse opened this issue Aug 26, 2023 · 0 comments · Fixed by #67946
Labels
EOC: Effects On Condition Anything concerning Effects On Condition Mechanics: Enchantments / Spells Enchantments and spells <Suggestion / Discussion> Talk it out before implementing

Comments

@Maleclypse
Copy link
Member

Is your feature request related to a problem? Please describe.

I'd like to be able to set conditions in dialogue and eoc's that counts the number of spells the PC/NPC has in a given school of spells. And then compare against that for things to happen. Such as a trait that appears once you've learned five different spells of a specific school.

Solution you would like.

I think it would be something entered in conditions.cpp similar to

} else if( jo.has_member( "spell" ) ) {
                const std::string spell_name = jo.get_string( "spell" );
                const spell_id this_spell_id( spell_name );
                return [is_npc, this_spell_id]( dialogue & d ) {
                    return d.actor( is_npc )->get_spell_level( this_spell_id );
                };
            } else {
                return [is_npc]( dialogue & d ) {
                    return d.actor( is_npc )->get_highest_spell_level();
                };
            }

but it's currently beyond me.

Describe alternatives you have considered.

No response

Additional context

No response

@Maleclypse Maleclypse added <Suggestion / Discussion> Talk it out before implementing Mechanics: Enchantments / Spells Enchantments and spells EOC: Effects On Condition Anything concerning Effects On Condition labels Aug 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
EOC: Effects On Condition Anything concerning Effects On Condition Mechanics: Enchantments / Spells Enchantments and spells <Suggestion / Discussion> Talk it out before implementing
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant