db0 / godot-card-game-framework

A framework which comes with prepared scenes and classes to kickstart your card game, as well as a powerful scripting engine to use to provide full rules enforcement.
http://dbzer0.com/projects/godot-card-game-framework/
GNU Affero General Public License v3.0
907 stars 96 forks source link

Allow ScriptingEngine to handle cost effects #58

Closed db0 closed 3 years ago

db0 commented 3 years ago

Currently all the scripts in the ScriptingEngine are only final effects. We do not have the concept of costs. I need to implement a deinition so that the ScriptingEngine stops executing scripts in the pipeline, if one of more scripts marked as cost cannot be implemented.

This would require us implementing a way to "dry-run" effects to see if they would be able to execute.