Hello there,
I added a new event step.
A lot of time ago I added the SetGlobal event step, which let you to set a global variable that can be retrieved in the future.
That lead to have a PlayOnce event step which let you play a event only once during the whole game.
Well, now I added a similar event step but with a smalle scope.
The scope is the trainee and the event step is called SetTraineeProperty.
The event step works exactly as the setGlobal but it clearly require a trainee.
Here's an example:
<SetTraineeProperty Type="Bool" Key="trainee_happy">
[Trainee.Mind.Happiness] > 70
</SetTraineeProperty>
Okay, so to retrieve the value:
<SetText>Is trainee happy? !$expr{[Trainee.Property.Bool.trainee_happy]}</SetText>
This would led (if the trainee happiness is higher than 70) to the following result displayed on screen:
Is trainee happy? true
Anyway this led to add the PlayOncePerTrainee event step too, which has the same sintax as the PlayOnce event step:
<PlayOncePerTrainee CompletionKey="trainee_present_herself">
<SetText>!$trainee: Hello, I'm t!$trainee, pleased to meet you.</SetText>
</PlayOncePerTrainee>
Well, that's it for today.
No comments:
Post a Comment