AI isn't working!

Status
Not open for further replies.

Cantavanda

〜Flower Prince〜
I just started on a 3D open-world surival-craft first-person MMORPG with elements of strategy card games, town management and racing.
I created my first object, the end boss, a huge steampunk dragon that manipulates time and space and is weak to green apples.
The AI is focussed on him taking a physical calculator in his hand and per successful equation that he enters in it, one water bottle falls from the sky, and when it hits the player, he loses points because he is addicted to Coca-Cola.
So this is my code of this AI, but when I run my game it doesn't work!!!
It is in the "create event".

GML:
dKJ2FjrxjlkbQFkztxVQ
CyAIhrdY1rJDdeC9Qm7p
sndzOqOPkBsR3NyR1BTw
yrgwM3oPSi1Kw8ynhnEz
COXlXPr1sISI0Ac4UlO9
Dqs5NH1LsQ1HOFPb0rQc
T9fWksQc2OtpsG2pFctf
iVLb6idnkHiC6rotbFyR
AGAQVTCgsSUGZc2KnNIk
KOubpyNGo6336fdIkiOQ
ELd4jOgyPnri5ZzuqFzG
YwcazZYMVGtGtRn0zT8A
OOsn7WXgAW6NspsM0hY5
97SS6d85oOLcK4ZIPBaz
QPoSZAwOFwexa81PGlht
la0H4PrR6t9S2TtVFlm9
qANTTqgOh3YsTO81xff7
tu2HVVI3w1CCxeV8x6R4
L2zwutARlPphHTGW6rDs
IKEkpSd4wqQ0quVv2DqT
ZJO8Tjhyp5kgISdjadKN
H38prV2VmfdE4aRLEIHJ
XeresTsCfPDkhEkPAg62
l07py7F69IvPxyGfCXUF
O6xiyP451M6bI7zq3lwb
TVK8dGp7LIPMk8n6vgVA
2m3BBqpp7jUMsjJd2d9Z
I054evo45TQSrZVQ1fOE
QFLXrkZAyqFnf3OmIZP4
Xjuwp9bmLQH8ZtaNLBEj
O99MABhow4AePHH8rMXU
5mMnLHaYXCEiXCfIKP2q
GxDFD4amJQLXNtuMmgc4
QhGxEwTUzXP8TonJSIQ0
VKgylrrieT8pbEWwGJ9H
10Gib8oHRmhGTNrWzciW
bE1J8WbTZovxCjb0S8oE
7p6Fh8wZx5RY3T8nDdgF
o9LOiTCteAHZC6wTf0VL
RKLb389QZD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EM8luWMKBP
Vxva9dJmHiDen0iV4sX6
MVh90cqgPQF4dZRObc5M
M9eeStAFz25kkB9PpbGD
XdTLB8ukioWVyw4DChmV
ta9LL0BHUEUjCvrmT8yr
eyzXYU8roloEy3sRevtg
dIVxcjruUTpKRiwVLIIG
nwnmAMvIVmxIUCQyzpTU
eEfCgDUc4HhIYAFhW2aX
KDwMgtRKqtyMiPtvz72E
DTJCeDXSiONp5yWpo3T0
tV6zqztpa4Irf0HO1Z3G
auNPe5ZcXrBTXfBEjZxh
cv0Wbm6oh7YUYXojReUX
40LfwsaojDSF2X09mqZ2
3DSkvRzNdLBPq4yCGBHm
s0PRCtzZFtwr0Bz0j5IV
m5GZ64ujzW7xzUe2XoKb
XTLLDBluOZSjID5pNk1b
f9ujwkncYz82E6dif1hA
exO6CClI6cPhcsdtFgEA
93C1lJHc6ZagMylBrNd4
CV0FBFiZFGTtVO3wZzQ8
E30YG3e0peyek7GlGD5e
gH5C3OOOrpcN97KM8naN
Qov5tFzkfcmeBlAHzyJQ
PfeGIgO3wfmKHw5DjiXk
Iwnj54yWwMrSESCPecb0
488UpTWFifA6PFsO7yzM
VZp1p7jfzONW51bzkli6
nYVOgMjTqOlISqLMaO6l
xEsDpHFIq53yui5AcfrG
knk45fr2UTsO7AChITtg
gkIxkEvP1fbBYIa4r2k3
nXSrSoe2aCVa0P9KT6Jk
wJX6LDxb6KxKhul5celS
vhitOJNwHet23cVunjfx
8ANOBsusdqnnDOqMeavg
LPVnjemYr1fPMoespUiG
MUQCvut6rb9y3sil0PuU
vW9NkgIUdBGNNpBzVkts
A2AA25WGBo3c2iLSFzgd
TYHZADOaa4YzS6btXY1d
nxqFV7lMCYcSQrz9o85m
DoV7bKftuAlclGxK8YIz
eiosUVcTg8sAS2pPDdNc
E1ctjO5TNeV3wEN6rNw7
qJzZYN3AIuHBRLWacS0T
wXfOV1L6G7hh6WKz5SQL
oPzkFz14RYn8PsD8DHli

What am I doing wrong?
 
Status
Not open for further replies.
Top