I think it would be [ set player 0 mana get player 0 mana - 400 ]. I've noticed that alot of commands or variations of commands are not documented. In this case, the 'get player X mana' is never actually mentioned anywhere, but you can just basically guess that it exists since 'set player X...
I think something like this will work. There are a few different ways to do this..
Remember arrays start from 0, so for 10 platoons, the array should actually be 0-9. I think this script compiler uses the declared number as the last index rather than a count ( [9] means 0 - 9, not "9...
The "add to attack list" command never seems to work for me. It just crashes the game, in fact.. Does it do this for you also?
I have this working to do something like what you're looking for, I think. Platoon actions are found in "PlatoonAgendaEnums.h":
run script MainScript
begin...
After re-installing the game, I noticed that grain and grass seem to shoot out of the ground as the camera is moved away from the objects. This seems to be the same effect applied to things like scrolls and other 'floaty' objects, they will increase or decrease in size as the camera is...
It may be more helpful to point out the list of commands possible. From your script compiler directory, go back on folder, then go into the folder, "Script Language Documentation." Open the index.html file, go to section 3 (statements), then go to the table of contents section 3.18...
I'm not entirely sure what you mean by challenge txt. If you're referring to the challenges.txt file which the sample "BW2 Scripts Test Batch.bat" uses, yes the order apparently matters.
This is actually a mistake I made.. I misunderstood what 'define script' does. I thought it was for...
I think the 'generic' script file would be something good to look at. This includes several major actions like creature selection and creation.
[ http://www.bwfiles.com/files/file.php?id=1108 ]
CreatureSelect.txt performs selection and creation. Keep in mind, if you don't create the...
Did you place the Main.sky file in the correct place? How many towns are in your map (actually created in the landscape, not just placed on the terrain)? Count the number of towns listed in the object window in the landscape editor. How many towns are assigned as owned by player 0?
Have...
These are notes I've made to myself about the game's related behavior. Some of the statements are assumptions.. like the the last paragraph. These may turn out to be wrong:
-ego533
Creature saves, land changes:
To save a creature mind use the command [ save my_creature ]...
There is another topic that covers some points of this command, but it is 4 years old.
I have noticed that [ save my_creature ] and [ load my_creature ] will not work correctly if used between maps that are not consecutive. In other words, if I am running a map that has land ID 5, save...