Search results

  1. P

    The "U" Key's Effect

    When testing an apparent bug with my munitions.lua module, I discovered that the "U" key has a game effect. From a bit of testing, it appears that if you press "U" while a unit is active, all ground units on the tile are woken up. Since I didn't know (or forgot) about this, I figure it may...
  2. P

    GitHub and GitHub Desktop Tutorial

    This is a tutorial to get started using GitHub and the GitHub Desktop program. If you're collaborating on a project, using GitHub can make sure that everyone is up to date. This could also be useful if you're passing around playtests for a scenario, so everyone can easily get updates/bug...
  3. P

    [TOTPP] Lua Scenario Template Feature Requests

    If anyone has any ideas for features that you would like included in the Lua Scenario Template, please ask for them here. My reason for asking now is that I'd like to work on the documentation/how to program guide for the template, and I'd like the the template to be "finished" (for lack of a...
  4. P

    Controlling Lua Enhancements with Rules.txt

    There has been a bit of a discussion today starting from this post in the main TOTPP thread. @techumseh asked for the ability to generalise the pikeman bonus to be added to the TOTPP. What he wants can already be achieved with Lua (especially thanks to the combat calculator work @Knighttime...
  5. P

    The Great Lua Library

    This thread is meant to serve two related purposes. The first is to provide a general Q&A thread for Lua and related topics. The second is to provide a link index for questions and their answers, as well as other resources. I'll edit this post periodically to add links to the questions and...
  6. P

    Civ II Combat Statistics

    I wrote a little event file to check the combat values of units. Instructions: 1. Duplicate the scenario folder (this will work for any scenario). 2. Extract the attached events.lua into the new scenario folder. 3. Load a game (choosing to enable lua events). 4. Initiate combat. You will see...
  7. P

    Lua Scenario Template Documentation Discussion

    It came up recently that the lack of documentation for the Lua Scenario Template (LST) is making it more difficult to use Lua Events and to get help once someone has started. Since documenting the LST is a priority now, I figure we should discuss how to get it done. I won't be in a position to...
  8. P

    Loading Rules.txt Events

    Recently, @Tanelorn and @tootall_2012 have both asked about loading alternate rules.txt files into the game. At the moment, Lua events don't directly facilitate this, but I've thought about it, and figure it would be a relatively modest job to read a rules.txt file, and run functions to change...
  9. P

    Scenario League Wiki Rebuild

    There has been a bit of discussion lately about the Scenario League Wiki, and whether it should be rebuilt (I will assume on a free wiki site, though I suppose there could be some other option) or be left as is. I figure the discussion should have its own thread rather than hijacking other...
  10. P

    Defending Unit Choice

    I've been looking into how the game chooses what unit defends a tile when attacked, and I think I have the answer: Choose unit on the tile with the highest value of the following: defensiveStat*currentHP/maxHP [Rounded Down to nearest integer] defensiveStat is defense value times 8 and apply...
  11. P

    [TOT] Installing Test of Time in Linux Mint 20

    EDIT: Test of Time Patch Project v0.16 was released, so a couple instructions are no longer necessary. I've edited the relevant sections (but didn't bother changing TOTPP15 references). It's probably worth checking this page to see if a later version is available before starting. This thread...
  12. P

    Over the Reich Playtest Contest

    @JPetroski and I have largely finished Over the Reich now. We're basically just checking over documentation and being prepared to fix any bugs that our last round of changes may have created. You can find the scenario here. To celebrate, I've decided to offer a little contest: The Prize: A...
  13. P

    Over The Reich JPetroski vs. Prof. Garfield

    Here's a new game of Over the Reich: JPetroski (Allies) vs. Prof. Garfield (Germans) JPetroski Turn 1: A few targets hit in the Ruhr and a U-Boat sunk. Prof Garfield Turn 1: Attacked a couple bombers, nothing killed. Other Stuff: I've attached the current OTR scenario; as well as a what...
  14. P

    Small Questions Thread

    This thread is mean as a place to ask questions that it doesn't make sense to devote an entire thread to. I'm writing a "promotions" module, and one thing that I thought of was to alter the chance that a unit would be promoted in combat to veteran. The issue that I run into is that the game...
  15. P

    [TOTPP] Lua Scenario Template

    EDIT: The Github repository: https://github.com/ProfGarfield/LuaTemplate @JPetroski and I have decided to work on a template project that should considerably lower the barrier to entry for using Lua in Test of Time scenarios. Ideally, we'll provide the end user with a decent amount of 'Lua...
  16. P

    [TOTPP] Prof. Garfield's Lua Code Thread

    For my current method of code distribution, see this thread instead. I've decided to change the way I 'distribute' the Lua code I've been working on. Until now, I've started a thread for each 'type' of module/library that I've made, with the intention of posting updates to each thread when...
  17. P

    [TOT] [TOTPP] Diplomacy Library

    Here is a start to a diplomacy library. I was doing work on reactions, and I wanted to include a check for war/peace status. I was doing just enough that I figured it would be best to package into a module. At the moment, it is just checking and setting treaty statuses, but there is certainly...
  18. P

    Build Restrictions Module Preview

    I'm putting together a sort of Lua template, which is to say a collection of useful modules that are already joined together to form a basis for scenario building (or converting) with Lua. One of those modules is a module to automatically produce production restrictions available through...
  19. P

    Reaction Module Desired Features

    I'm planning on building a 'reaction' module for Lua, hopefully some time in the next few weeks (since @JPetroski needs a reaction module for Midway), and I'm interested to find out what features and/or characteristics people would like such a module to have. Please speak up. I'd rather put in...
  20. P

    [TOT] [TOTPP] Unit ID Numbers

    @SorFox, @Knighttime and I have been discussing the game's ID numbers for units recently. This is important for saving information about specific units in the state table. I had always assumed that the game might move around unit id numbers, and so saving them was unreliable (and so, not to be...
Top Bottom