This scene demonstrates how conditions can be used.
The Trigger Zone
When you look at the script attached to the Trigger Zone, you will see that it checks what kind of hat does the player wear and writes out a text based on that.
The Door
- When we detect that the Player tries to open the door we show an Ask player dialogue.
- This will ask the given player (the one who who triggered the event) a question.
- When the question is answered an event is executed in Ask player Game Logic's script and you can analyze the answer and perform some action based on what the Player has said.
- You can react to one specific answer only or decide to perform various actions when the Player says various things - that is all up to you.
Note:
Please note that If tile (like some others) can be further configured by clicking tile.
Ylands - Editor
|
Editor
|
Animated objects,
Custom UI,
Entity welding,
Game export,
Game ID,
Monetization,
MIDI music,
Optimizations,
Common Problems,
FAQ
|
Script
|
Introduction,
Conventions,
Client script,
Text scripting,
Custom controls,
Custom controller,
Storage Data,
Game set,
Leaderboards,
Matchmaking,
Map markers
|
Game logic
|
AI Behaviour,
Ask Player,
Controller,
Custom Camera,
Custom Controls,
Custom HUD,
Custom Window,
Data Set,
Dialogue,
Entity Label,
Entity Storage,
Entity Template,
Environment,
Event Listener,
Game Logic Label,
Game Logic Storage,
Game Logic Template,
Global Storage,
Group Template,
Image Library,
Impassable Barrier,
Light,
Melee Attack Effect,
Particle Effect,
Particle Template,
Path,
Play Area,
Player Role,
Player Team,
Position Animator,
Post Process,
Reference Point,
Resource,
Rotation Animator,
Script Module,
Skill,
Sound Effect,
Spawn Point,
Time Trigger,
Transaction,
Trigger Zone,
Voice Chat Channel,
Water Volume
|
Script tiles
|
Game,
Entities,
Game Logic,
Logic,
Loops,
Instructions,
Number,
Vector,
Color,
String,
Array
|
Misc
|
WIKI FAQ
|