8: Set up your Victory and Defeat conditions

⁑ Medium Tutorials - ◑ Your first RPG Experience - 8: Set up your Victory and Defeat conditions

INTRODUCTION:

An RPG can't really be lost, but let's break codes here! We want Players to win when gathering the last reward, but also to loose if they die!

A) VICTORY

Select your NPC B, and in Drop Component > Collect Message, put a non-used Message (i.e: KEY)

Now let's put a Victory Component on the Avatar (or wherever you want, it's not a problem).

  • Go inside the Global Parameters

  • Go in the "Controller" tab

  • Click on "ADD COMPONENT" and select the Victory Component

  • In "Victory Message", put the same as the Collect Message.

Quit the Global Parameters, press play, and watch the Magic happening once you've gathered the final reward!

B) DEFEAT

The Defeat is already there! If the Player dies, then it is a Game Over!

C) PRESS PLAY AND ENJOY !

There we are! Press play and enjoy your first RPG Experience!

👏 Well done! You've finished the 8th step of ◑ Your first RPG Experience Tutorial !

You're now able to create deeper RPGs with a lot more content inside!

Last updated