This guide shows you how to create a Simple Combat Travel Event that spawns 1-3 Skeleton Warriors.
Assets/Resources/TravelEvents/SkeletonAmbushOpen the SkeletonAmbush asset and configure these settings:
Skeleton AmbushAncient skeletal warriors rise from the ground to attack your party!CombatCommon0.3 (30%)0.8 (80% - very common in forests)0.6 (60%)0.2 (20% - safer on roads)0.4 (40%)0.3 (30%)0.1 (10%)0.05 (5% - very rare in towns)0.15 (15%)0.4 (40%)0.7 (70% - common in tunnels/caves)0.2 (20%)0.5 (half a day before can happen again)13Skeleton WarriorSkeleton (if you have both types)Add these dramatic descriptions (the system will pick one randomly):
Bones clatter as skeletal warriors emerge from the earth!Ancient skeletons wielding rusty weapons block your path!The ground splits open as undead skeletons rise to attack!Skeletal archers take aim from the shadows ahead!Easy or Normal (depending on your game balance)Trigger Event Check to test itIf you put the event in Assets/Resources/TravelEvents/, the system will automatically load it when no events are assigned to the TravelEventSystem.
SkeletonAmbush asset into the slotSince you have the enemy character creation system, use these enemy names in the Possible Enemy Types:
Skeleton Warrior (matches your SkeletonWarrior.asset)Skeleton (if you create a basic skeleton variant)When the event triggers, it will:
In TravelEventSystem.cs, the HandleBattleEvent method will populate your battle system:
private void HandleBattleEvent(BattleEventData battleData, TravelEventContext context)
{
if (battleData == null) return;
Debug.Log($"⚔️ Setting up battle: {battleData.enemyCount} {battleData.enemyType}(s)");
// This integrates with your battle system
BattleSetupData.enemySelections.Clear();
for (int i = 0; i < battleData.enemyCount; i++)
{
BattleSetupData.enemySelections.Add(new CharacterSelection
{
characterName = $"{battleData.enemyType}_{i+1}",
weaponType = "Bow" // Skeleton Warriors use bows
});
}
// Start the battle scene
// SceneManager.LoadScene("BattleScene");
}
minEnemies = 1, maxEnemies = 2minEnemies = 1, maxEnemies = 3minEnemies = 2, maxEnemies = 4Create different skeleton events for different terrains:
The system can also provide rewards after defeating skeletons:
Your Skeleton Ambush event is now ready to terrorize travelers! 💀⚔️