Skip to content

RakuScript

theLudovyc edited this page Jun 8, 2022 · 20 revisions

Character

character [char_tag] [char_name]

Create a new character with this char_tag and char_name

Exemple

character Gd Godot

Variable

[var_name] = [value] or [other_var_name] or [char_tag].[var_name]

Create a new variable with this var_name and this value assigned.

If other_var_name is defined, use value of other_var_name.

If this variable already exist, value is replaced by new one.

Exemple

life = max_life
life = Gd.max_life```

# Character's variable
```[char_tag].[var_name] = [value] or [other_var_name] or [char_tag].[var_name]```

Create a new variable with this var_name on character with this char_tag, and this value assigned.

If other_var_name or char_tag.var_name is defined, use value of other_var_name or char_tag.var_name.

If this variable already exist on this character, value is replaced by new one.

Exemple

```Gd.friendship = 5
Gd.friendship = max_friendship
Gd.friendship = Gd.max_friendship```

#Say
```[String]```

Say String

Exemple

```"Hello, world !"```
## character say
```[char_tag] [String]```

Character with this char_tag say [String]

Exemple

```Gd "Hello !"```
## Use variables
```<[var_name]> or <[char_tag].[var_name]>```

You can use variables in Say, replace it by values

Exemple

```"My name is <Gd.name>, and I have <life> point of life"```
# Ask
# Menu
# Jump
## Jump If
Clone this wiki locally