:setup action is not managed only once anymore (#358)

Co-authored-by: StraToN <StraToN@users.noreply.github.com>
This commit is contained in:
Julian Murgia
2021-08-08 23:23:11 +02:00
committed by GitHub
parent cbb64df969
commit 61726bca81
20 changed files with 252 additions and 213 deletions

View File

@@ -14,16 +14,6 @@ to benefit save games, so they don't conflict with the scene's events.
@ESC
## Property Descriptions
### readied\_scenes
```gdscript
var readied_scenes: Array
```
An array of scenes that have already been loaded
## Method Descriptions
### configure

View File

@@ -47,12 +47,12 @@ All ESC scripts are divided into a series of events, which in turn run commands
An event has a name and the prefix ":" like this:
`:setup`
`:ready`
While you can use arbitrary event names (for example to schedule them with the `sched_event`command), there are some special events that are called by Escoria when certaiin things happen:
While you can use arbitrary event names (for example to schedule them with the `sched_event`command), there are some special events that are called by Escoria when certain things happen:
* `:setup` (on an ESCScene object): Called everytime when the scene is loaded
* `:ready`(on an ESCScene object): Called only when the scene is loaded the first time
* `:setup` (on an ESCScene object): Called before the transition is performed.
* `:ready`(on an ESCScene object): Called after the transition is performed.
* `:use <global id>`(on an ESCItem object): Called when the inventory item `<global id>`was used with this item
* `:<verb>`(on an ESCItem object): Called when a special verb was used on the item (e.g. `:look`)