Une ébauche du langage pour coder ses scripts...
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51 // Legend ////////// {} is for optional parameters ... is for multiple parameters // Instruction /////////////// {[command]} [function] [param]{...} // Commands (blue) /////////////////// if, ifnot, else, elseif, elseifnot, end, exit // Functions (red) /////////////////// // Boxes success [BOX]{...} resolved [BOX]{...} // Scene jump [SCENE] // Inventory take [OBJECT]{...} {[PLAYER]} dump [OBJECT]{...} has [OBJECT]{...} {[PLAYER]} // Object show [OBJECT]{...} hide [OBJECT]{...} visible [OBJECT]{...} // Example /////////// // If the current player has book and pen if has O1_BOOK O1_PEN // Validate the scenario puzzle box success 0:12 // Go to another scene jump S1_BEDROOM // Stop this script (= return) exit end
Partager