
Former Site Admin
Posts: 3814
Joined: 08 Jan 2009, 23:00
Location: California - Pacific Time (UTC -8/-7 Summer Time)
Re: New Dynamic Script Ideas
again, forgive me if I'm wrong. Scripts are not my forte, so I feel kinda like a noob here >.<
Former Site Admin
Posts: 3814
Joined: 08 Jan 2009, 23:00
Location: California - Pacific Time (UTC -8/-7 Summer Time)
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
Forgive me if I'm mistaken, but perhaps it doesn't work if the respective building is locked? The screen shows the stable is locked, (in normal circumstances anyway) and since the player can't actually change the distribution of corn to the stable himself, perhaps it can't be changed through scripts?
again, forgive me if I'm wrong. Scripts are not my forte, so I feel kinda like a noob here >.<
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
procedure OnTick;
var j: integer;
begin
if ( States.GameTime = 6000 ) then begin
Actions.PlayerWareDistribution(0, 9, 22, 5); //mill
Actions.PlayerWareDistribution(0, 9, 16, 1); //pig farm
Actions.ShowMsg(-1, '0: ' + IntToStr(States.PlayerWareDistribution(0, 9, 22)) + ' ' + IntToStr(States.PlayerWareDistribution(0, 9, 16)));
Actions.PlayerWareDistribution(1, 9, 22, 2); //mill
Actions.PlayerWareDistribution(1, 9, 16, 0); //pig farm
Actions.ShowMsg(-1, '1: ' + IntToStr(States.PlayerWareDistribution(1, 9, 22)) + ' ' + IntToStr(States.PlayerWareDistribution(1, 9, 16)));
Actions.PlayerWareDistribution(2, 9, 22, 0); //mill
Actions.PlayerWareDistribution(2, 9, 16, 2); //pig farm
Actions.ShowMsg(-1, '2: ' + IntToStr(States.PlayerWareDistribution(2, 9, 22)) + ' ' + IntToStr(States.PlayerWareDistribution(2, 9, 16)));
end;
end;
// ON MISSION START
procedure OnMissionStart;
var
j, k: integer;
begin
Actions.PlayerWareDistribution(0, 9, 22, 2); //mill
Actions.PlayerWareDistribution(0, 9, 16, 3); //pig farm
Actions.ShowMsg(-1, '0: ' + IntToStr(States.PlayerWareDistribution(0, 9, 22)) + ' ' + IntToStr(States.PlayerWareDistribution(0, 9, 16)));
Actions.PlayerWareDistribution(1, 9, 22, 1); //mill
Actions.PlayerWareDistribution(1, 9, 16, 5); //pig farm
Actions.ShowMsg(-1, '1: ' + IntToStr(States.PlayerWareDistribution(1, 9, 22)) + ' ' + IntToStr(States.PlayerWareDistribution(1, 9, 16)));
Actions.PlayerWareDistribution(2, 9, 22, 5); //mill
Actions.PlayerWareDistribution(2, 9, 16, 1); //pig farm
Actions.ShowMsg(-1, '2: ' + IntToStr(States.PlayerWareDistribution(2, 9, 22)) + ' ' + IntToStr(States.PlayerWareDistribution(2, 9, 16)));
end;
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
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
Former Site Admin
Posts: 3814
Joined: 08 Jan 2009, 23:00
Location: California - Pacific Time (UTC -8/-7 Summer Time)
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
Could we have a script that highlights a certain button/entity? We already have play .mp3, but highlighting a certain button, unit, building, etc. would be GREAT for giving a tutorial with actual voicing. I don't have a great voice for story telling/briefing, but I think I can do a fine job voicing an English tutorial.
Former Site Admin
Posts: 3814
Joined: 08 Jan 2009, 23:00
Location: California - Pacific Time (UTC -8/-7 Summer Time)
A more interactive tutorial would be great, so I think we could consider adding commands to highlight the buttons that would be needed in the tutorial. Even without a voiceover it would greatly improve the tutorial if it highlighted stuff like the build button rather than just sending a message to the player saying "press the hammer button".Could we have a script that highlights a certain button/entity? We already have play .mp3, but highlighting a certain button, unit, building, etc. would be GREAT for giving a tutorial with actual voicing. I don't have a great voice for story telling/briefing, but I think I can do a fine job voicing an English tutorial.
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
Indeed, but do you think having a voiceover would still be nice?
UnitPositionSet(aUnit, X, Y: integer) - need this to RPG etc.
HouseSubtractWaresTo(aHouse, aWareType, aAmount: integer)
procedure UnitPositionSet(aUnit, X, Y: Integer);
var X, Y, UnitType, Player: Integer;
begin
Player := States.UnitOwner(aUnit);
UnitType := States.UnitType(aUnit);
X := States.UnitPositionX(aUnit);
Y := States.UnitPositionY(aUnit);
Actions.UnitKill(aUnit, True);
Actions.GiveUnit(Player, UnitType, X, Y, 0);
Return to “Ideas / Suggestions”
Users browsing this forum: No registered users and 2 guests
Powered by phpBB® Forum Software © phpBB Group Designed by ST Software |
![]() |