Auto-translated
hp = random(1);
dp = random(1);
tep = random(1);
function politica()
while 1 do
if dp == 1 then
SetPlayerTeam(2,1);
print("Demon is on you!");
sleep(5);
else
SetPlayerTeam(2,2);
print("Demon is not on you");
sleep(5);
end;
if hp == 1 then
SetPlayerTeam(3,1);
print("Human is on you!");
sleep(5);
else
SetPlayerTeam(3,3);
print("Human is not on you");
sleep(5);
end;
if tep == 1 then
SetPlayerTeam(4,1);
print("Dark elf is on you!");
sleep(5);
else
SetPlayerTeam(2,2);
print("Dark elf is not on you");
sleep(5);
end;
end;
end;
startThread(politica);
1) How can I prevent the `print` function from constantly displaying the same messages?2) The values of `hp`, `dp`, and `tep` are constantly equal to 0. Is this a script error or a quirk of the random function?
502 Bad Gateway
__________________________________
nginx/0.8.54
__________________________________
nginx/0.8.54