Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/latest/getting-started/register-fact.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ enum DifficultyLevel {
}
func evaluate(ctx: ParleyContext, _values: Array) -> int:
return ctx.get('difficulty_level', DifficultyLevel.NORMAL)
return ctx.p_data.get('difficulty_level', DifficultyLevel.NORMAL)
func available_values() -> Array[DifficultyLevel]:
return [
Expand Down
2 changes: 1 addition & 1 deletion docs/latest/nodes/action-node.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ Valid action scripts must implement the `ParleyActionInterface` by providing an
```gdscript Example Action Script
func run(ctx: ParleyContext, values: Array) -> int:
print("Advancing time by %s" % [values[0]])
ctx.get('advance_time').emit(values[0])
ctx.p_data.get('advance_time').emit(values[0])
return OK
```

Expand Down