Triggers System
Creating Custom Trigger Types
Trigger Type Structure
using UnityEngine;
[System.Serializable]
public class GiveReputationTriggerType
{
[DatabaseEntryDropdown(typeof(FactionEntry))]
[SerializeField] private string factionId;
[SerializeField] private int amount = 10;
[DisplayNameTooltip("Source", "What caused this reputation change.")]
[SerializeField] private string source = "trigger";
public void Execute(string characterId)
{
Spark.Network?.ExecuteCommand(new ModifyReputationCommand
{
CharacterId = characterId,
FactionId = factionId,
Amount = amount,
Source = source
});
}
}Trigger Attributes
Creating Custom Requirement Types
Requirement Type Structure
Registration
Best Practices
Last updated
Was this helpful?
