Tabletop Simulator

Tabletop Simulator

[scripted] Power Grid
正在显示第 71 - 76 项,共 76 项条目
< 1 ... 6  7  >
更新于:2020 年 5 月 19 日 上午 10:11

Fixed a few bugs introduced by update v12.4.0 of Tabletop Simulator.

===== V 1.2.1 =====
[Game]
- Moved the instruction cards back to their original position, as I had predicted in previous patch...
- Fixed: items on board flying off on game start (the game board expands at start of game for some reason)
- Fixed: sometimes on game load all cards in a players hand keep falling down outside of bounds
- Fixed: power plant 13 gets placed at the bottom of the market place on game start
- Because update v12.4.0 optimizes player hands; cards are now dealt after "Start Game" is pressed

[Scripting]
- All object on top of the game board are locked for the first 2 seconds of game start (or game load) to prevent collisions with the expanding game board (if anyone knows how to prevent the game board from expanding, please let me know)
- Updated the "place an object on top of an object" scripting during market setup; this now happens smooth+fast
- Cards are now dealt after Start Game is pressed by repeatedly dealing 1 card every 0.1 seconds for all seated players using Wait.time(function() <myMagicFunction> end, 0, <x amount of cards to be dealt>)

更新于:2020 年 5 月 14 日 上午 11:18

Now with discard zones! Just place an item on the brown squares in between players and select the "discard" button et voila! No more having to mess with money stacks or sorting them out yourself. Works with resources, power plants and money.

===== V 1.2.0 =====
[Game]
- Moved the instruction cards to the top, though now that I think about it that wasn't a good move...
- Added 3 brown squares with "discard" buttons. When pressed the items on the square will be moved to their appropriate place.

[Scripting]
- Each discard square has the same code and a scripting zone floating above it (the scripting zones are static, no idea if you can dynamically create scripting zones...)
- Here is how the discard functionality works:
-- 1. Get all objects in the scripting zone above the discard square
-- 2. If the object is a single item and not a stack; use its name to determine where it needs to be moved
-- 3. If the object is a stack; one by one draw each item in the stack and discard it as if it were a single object
-- 4. If there was a stack while discarding; call the discard function again to remove the last object of each stack
- it might thrown an error when discarding a stack of power plants, though I honestly don't know why

更新于:2020 年 5 月 12 日 下午 12:16

A few bug fixes, brought the hands closer together and made all "<color>'s power plants" boxes the same size.

===== V 1.1.1 =====
[Game]
- The colors brown and teal are now placed at the end of the table
- The colors red and green are brought closer to white and blue
- The money now has a name (e.g. $1, $5, $10, $50), this will mostly be used in scripting for a coming update
- Fixed: items that aren't power plants suddenly can't be drag selected (see [Scripting])
- Fixed: oil barrels in the bag at start of game aren't the same size as other oil barrels

[Scripting]
- There is a scripting zone above the "market place". Originally when an object with a name leaves the scripting zone the toggle "drag selectable" is set to false. This is now changed to only occur when the name matches a power plant
- Guids of the money piles changed

更新于:2020 年 5 月 9 日 上午 12:33

This version adds a lot of functionality and changes most objects from previous versions, though gameplay should stay the same either way. A lot of annoying things are now automated, such as the determining of turn order, how many cities everyone has and removing cards based on amount of players.

===== V 1.1.0 =====
[Game]
- Added squares in front of players to put their power plants, this is used to determine turn order
- On game start; remove cards based on amount of seated players (as instructed by game manual)
- Flipped the money cards so that other players can't see how much money you have (though you could flip it back if you want)
- When you place a city on the game board, it will automatically update the city counter for the player
- Added a button to determine turn order, will move the turn indicator for all seated players
- Made it so that power plant cards are non selectable on drag, this is so you can easily put objects on top of the card and remove them without picking up the power plant card.

[Scripting]
- Instead of having many separate objects, now there are a few big objects that store data
- Added groundwork to add Turn automation using in-game turn system
- It's still a mess

更新于:2020 年 5 月 8 日 上午 10:54

Some quick fixes because I was too embarrassed to leave the game broken for the first people that download my mod.

===== V 1.0.1 =====
[Scripting]
- Game state actually saved using the ingame OnSave() and OnLoad(saved_data) functions.
- Don't crash and burn when "step 3" card is drawn from market

更新于:2020 年 5 月 8 日 上午 10:01

The first version of this mod!

===== Version 1.0 =====
[Game]
- added [draw card] button to market, when pressed will draw one card into the market if there is room for it. Will also put power plants into order based on cost
- Shuffles market draw pile and puts "step 3" card at the bottom and "power plant 13" on top

[Scripting]
- First version, everything in Global script. To be honest; it's a mess
- Game state is partially saved by giving things a " " description...