Auto-translated
in general, it can be done like this:
function prorokF()
MessageBox(...) - message that will be displayed by the prophet
ore=GetPlayerResource(1, 1);
q=1;
if q==1 then
if ore>=3 then
SetPlayerResource(1, 4, ore-3);
q=0;
Trigger(..., nil);
end;
end;
end;
Trigger(...);
something like that
to make it happen three times, you need to work with variables, but in general, it can be done; I can write it.
Thank you very much. Now it's clear. I don't really need it to happen three times. I thought there was a simple way, but if it's a huge script, then I can do without it.