Search results

  1. cnt

    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...
  2. cnt

      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...
  3. Spawn aggressive enemy platoon

         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...
  4. grass/grain object size at distance

         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...
  5. Spawn aggressive enemy platoon

         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...
  6. Basic stuff

         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...
  7. Basic stuff

         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...
  8. Problems when beggining a new game

         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...
  9. Problems when beggining a new game

         What is the name of the .bwe terrain file? What is the name you gave to the .chl script file?    What are the contents of your map.txt file? -ego533  
  10. save/load my_creature

      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 ]...
  11. save/load my_creature

         I ironically discovered a solution minutes after posting this.. thanks anyway, hehe. -ego533
  12. Decompiling Challenge Scripts

      The source is no longer available at the Rapidshare link. Does anyone have this available for download? -ego533
  13. save/load 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...
Back
Top