SCRIPTED CONDITIONS
A downloadable tool
Download NowName your own price
Version: 1.5.9
Description:
Scriptable-object conditions that make it easy to reuse gameplay logic. SOME CODING REQUIRED When implementing abstract systems that require conditional logic (i.e. quests, dialogue, story events), it is helpful to separate conditional logic from the systems themselves. For example, each of my Dialogue Interaction objects references a Condition that determines if the interaction should play or not. This separation of responsibilities makes it easy to reuse conditional logic and conditional objects across multiple systems.Use Cases:
- Abstract systems that require conditional logic.
- Determining what dialogue to play.
- Determining when quests or missions should activate.
- Determining when quest/mission requirements have been satisfied.
- Anytime anything needs to be decided ¯\_(ツ)_/¯
Dependencies:
- com.iron-mountain.save-system (1.0.4)
Package Mirrors:
Key Scripts & Components:
- public enum BooleanComparisonType : Enum
- public abstract class Condition : ScriptableObject
- Actions:
- public event Action OnConditionStateChanged
- Properties:
- public Sprite Depiction { get; }
- Methods:
- public abstract Boolean Evaluate()
- public abstract Boolean HasErrors()
- public class ConditionFalse : Condition
- Properties:
- public Sprite Depiction { get; }
- Methods:
- public override Boolean Evaluate()
- public override Boolean HasErrors()
- public override String ToString()
- public class ConditionTrue : Condition
- Properties:
- public Sprite Depiction { get; }
- Methods:
- public override Boolean Evaluate()
- public override Boolean HasErrors()
- public override String ToString()
- public enum ConditionalOperatorType : Enum
- public static class EvaluationUtilities
- public interface ICondition
- Actions:
- public event Action OnConditionStateChanged
- Methods:
- public abstract Boolean Evaluate()
- public enum NullComparisonType : Enum
- public enum NumericalComparisonType : Enum
Groups
- public class ConditionChecklist : Condition
- Properties:
- public Boolean AllRequired { get; }
- public Int32 AmountRequired { get; }
- public List<Entry> Conditions { get; }
- public Sprite Depiction { get; }
- Methods:
- public override Boolean Evaluate()
- public override Boolean HasErrors()
- public override String ToString()
- public class ConditionEquation : Condition
- Properties:
- public List<Entry> Conditions { get; }
- public Sprite Depiction { get; }
- Methods:
- public override Boolean Evaluate()
- public override Boolean HasErrors()
- public override String ToString()
Scripted Values
- public class ConditionScriptedBool : Condition
- Properties:
- public Sprite Depiction { get; }
- Methods:
- public override Boolean Evaluate()
- public override Boolean HasErrors()
- public override String ToString()
- public class ConditionScriptedFloat : Condition
- Properties:
- public Sprite Depiction { get; }
- Methods:
- public override Boolean Evaluate()
- public override Boolean HasErrors()
- public override String ToString()
- public class ConditionScriptedInt : Condition
- Properties:
- public Sprite Depiction { get; }
- Methods:
- public override Boolean Evaluate()
- public override Boolean HasErrors()
- public override String ToString()
- public class ConditionScriptedString : Condition
- Properties:
- public Sprite Depiction { get; }
- Methods:
- public override Boolean Evaluate()
- public override Boolean HasErrors()
- public override String ToString()
Status | Released |
Category | Tool |
Author | Iron Mountain |
Genre | Role Playing |
Tags | Game Design, Game engine, iron-mountain, tools |
Download
Download NowName your own price
Click download now to get access to the following files:
com.iron-mountain.conditions.unitypackage 49 kB
Leave a comment
Log in with itch.io to leave a comment.