-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.cpp
69 lines (67 loc) · 1.7 KB
/
main.cpp
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
//
// Created by Steli on 22/12/2023.
//
#include "parser/PokemonLeague_4020.h"
BEGIN_GAME
CREATE ABILITY{
NAME : "Bite",
ACTION
: START
//Επιστρέφει το αντίπαλο pokemon στο pokeball
POKEBALL DEFENDER _
// Μετά απο 2 γύρους ξαναβγάζει τον αντίπαλο(DEFENDER)
AFTER
2 ROUNDS DO
POKEBALL DEFENDER ---α
END
END
}
CREATE ABILITY{
NAME : "Solar_Power",
ACTION
: START
// Για 5 γύρους κάνει 8 damage στον αντίπαλο (DEFENDER)
FOR
5 ROUNDS DO
DAMAGE DEFENDER 8
END
END
}
CREATE ABILITY{
NAME : "Slash",
ACTION
: START
// Κάνει 22 damage στον αντίπαλο (DEFENDER)
DAMAGE DEFENDER 22
END
}
CREATE ABILITY{
NAME : "Blaze",
ACTION
: START
// Κάνει heal στον εαυτό του (ATTACKER)
HEAL ATTACKER 30
END
}
CREATE POKEMON{
NAME : "Charizard",
TYPE : "Fire",
HP : 100
}
CREATE POKEMON{
NAME : "Pikachu",
TYPE : "Electric",
HP : 90
}
DEAR"Charizard" LEARN[
ABILITY_NAME(Bite)
ABILITY_NAME(Solar_Power)
ABILITY_NAME(Slash)
ABILITY_NAME(Blaze)
]
DEAR"Pikachu" LEARN[
ABILITY_NAME(Bite)
ABILITY_NAME(Slash)
]
DUEL
END_GAME