Re: New Dynamic Script Ideas
KaM Remake at: http://www.kamremake.com
Original MBWR/WR2/AFC/FVR tools at: http://krom.reveur.de
Moorbach's Guard
Posts: 1044
Joined: 15 Apr 2012, 12:11
KaM Skill Level: Fair
Location: In the Market
Warrior
Posts: 126
Joined: 05 Jul 2013, 11:07
KaM Skill Level: Beginner
Location: The Netherlands
Andreus offered to add OnConsoleInput command, which will pass what player has typed in console (e.g. /hidetext to hide text overlays).
Posts: 3822
Joined: 16 Sep 2007, 22:00
KaM Skill Level: Skilled
ICQ: 269127056
Website: http://lewin.hodgman.id.au
Yahoo Messenger: lewinlewinhodgman
Location: Australia
Andreus offered to add OnConsoleInput command, which will pass what player has typed in console (e.g. /hidetext to hide text overlays).
Sword Fighter
Posts: 343
Joined: 18 Dec 2011, 12:05
KaM Skill Level: Beginner
Website: https://github.com/andreus791/maps_feedback
Location: Russia
OnConsoleInput
procedure AIChangeDistributionTactic;
var
j, k, kl: integer;
begin
for j:= 0 to MAX_PLAYERS-1 do begin
if (States.PlayerEnabled(j)) and (States.PlayerDefeated(j) = false ) then begin
if States.HouseDeliveryBlocked(PLAYERS_MAIN_TOWER[j]) = false then begin
k:= States.KaMRandomI(6);
kl:= States.KaMRandomI(6);
if (k = 0) and (kl = 0) then k:=k+1;
if (k <= 2) and (kl = 0) then k:=k+1;
if (kl <= 2) and (k = 0) then k:=k+1;
Actions.PlayerWareDistribution(j, 9, 22, k); //mill
Actions.PlayerWareDistribution(j, 9, 16, kl); //pig farm
end;
end;
end;
end;
Return to “Ideas / Suggestions”
Users browsing this forum: No registered users and 3 guests
Powered by phpBB® Forum Software © phpBB Group Designed by ST Software |
![]() |