Well, I'm a really beginner scripter, but I think it could work (Lewin/Krom/sado/Siegfried/Tef could help you if it doesn't work):
- Code:
procedure OnTick;
begin
Actions.HouseWeaponsOrderSet(aHouseID, 22, 0) and //it should set the order of Lances to 0
Actions.HouseWeaponsOrderSet(aHouseID, 24, 0); //it should set the order of Bows to 0
end;
aHouseID should be replaced by a variable(s) that you assign your weapons workshop(s) to, like this:
- Code:
var WeaponsWorkshop01: Integer;
procedure OnMissionStart;
begin
WeaponsWorkshop01 := States.HouseAt(X, Y); //X should be replaced by the X coordinate of the house, Y by the Y coordinate
end;
With this piece of script, you will tell the Remake that you want a Weapons Workshop (or any other building anyway xD) to be assigned to your variable, which exists at (X, Y) at the start of the mission.
If you have more workshops, then you can make more variables for them ofc, easiest this way (Important not to write them between a "procedure <something>" and "end", because you will get a local variable which can only be used in that exact procedure, easiest to write your global [which can be used in any procedure] variables at the beginning of your script, so you won't make a mistake for sure):
- Code:
var WeaponsWorkshop01, WeaponsWorkshop02, WeaponsWorkshop03: Integer;
etc
Obviously you will need to do the assign for all, separatedly.
Hope I could help and that it works
