Set Placement Action: Difference between revisions

From Pummel Party Mod Documentation
Jump to navigation Jump to search
mNo edit summary
(Update for 1.14.0c)
 
(4 intermediate revisions by the same user not shown)
Line 2: Line 2:
An action to mark a player as finished and set their placement.
An action to mark a player as finished and set their placement.


The target must be set to a player, otherwise, the action does nothing. The action marks a player as having finished the objective. Their placement will be determined based on the number of already finished players if the "Placement Condition" is set to ''Finish Order'' in the [[Mod Settings#Minigame Settings|minigame settings]].
This action works by assigning a different number of points to players based on when this action was run while targeting them. For example, creating a trigger that runs this action on the activating player, then having each player hit the trigger in turn, will cause each player to receive a different number of points based on who hit it first and who hit it last. Combine this with the "Placement Condition" set to ''Finish Order'' in the [[Mod Settings#Minigame Settings|minigame settings]] to stop the minigame once all players have had a placement set.
 
The number of points given to players is equal to <code>100 * (<number of players> - <number of finished players>)</code>. As an example, in a game with 3 players, the first person to get a placement is given 300 points, the second 200 and the last player gets 100 points. In an 8-player game, the points awarded from first to last place are 800, 700, 600, 500, 400, 300, 200, and 100.
 
As the points awarded by this action may seem arbitrary, it may be worth hiding the points from the players by disabling the '''Show Points in UI''' option by selecting the Minigame Settings at the top of the Hierarchy window and then finding the option under the Minigame Settings foldout in the Inspector window.
 
The target must be set to a player, otherwise, the action does nothing.


This action can only be used in [[Minigame Mod]]s.  
This action can only be used in [[Minigame Mod]]s.  


[[Category:Actions]]
[[Category:Actions]]

Latest revision as of 01:18, 28 May 2024

The Set Placement action in the Action Editor.

An action to mark a player as finished and set their placement.

This action works by assigning a different number of points to players based on when this action was run while targeting them. For example, creating a trigger that runs this action on the activating player, then having each player hit the trigger in turn, will cause each player to receive a different number of points based on who hit it first and who hit it last. Combine this with the "Placement Condition" set to Finish Order in the minigame settings to stop the minigame once all players have had a placement set.

The number of points given to players is equal to 100 * (<number of players> - <number of finished players>). As an example, in a game with 3 players, the first person to get a placement is given 300 points, the second 200 and the last player gets 100 points. In an 8-player game, the points awarded from first to last place are 800, 700, 600, 500, 400, 300, 200, and 100.

As the points awarded by this action may seem arbitrary, it may be worth hiding the points from the players by disabling the Show Points in UI option by selecting the Minigame Settings at the top of the Hierarchy window and then finding the option under the Minigame Settings foldout in the Inspector window.

The target must be set to a player, otherwise, the action does nothing.

This action can only be used in Minigame Mods.