User Tools

Site Tools


scripting:subgames

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
scripting:subgames [2023/03/05 11:32] mitscripting:subgames [2023/04/05 11:59] (current) mit
Line 22: Line 22:
  SubgameJoin( $kCrowDuelSubgameID, $player2 )  SubgameJoin( $kCrowDuelSubgameID, $player2 )
 </code> </code>
-<note>(In this example, $player1 and $player2 are the player IDs for the two players who want to play in the subgame. There are various techniques we can use to collect the IDs of the players involved - e.g. Send up a global notification message and store the $gPlayerID of everyone who accepts the prompt in an array.. or you could use the [[scripting::subgames:SubgameChallenge|Subgame Challenge system]].)+<note>(In this example, $player1 and $player2 are the player IDs for the two players who want to play in the subgame. There are various techniques we can use to collect the IDs of the players involved - e.g. Send out a global notification message and join the $gPlayerID of everyone who accepts the prompt.. or you could use the [[scripting::subgames:SubgameDuels|Subgame Duels system]].)
 </note> </note>
 - .. next we set up the RC game state ; setting the players spawn positions and lives, and locking the weapons - .. next we set up the RC game state ; setting the players spawn positions and lives, and locking the weapons
Line 36: Line 36:
 </code> </code>
  
-- When we're ready to start (again, the [[scripting::subgames:SubgameChallenge|Subgame Challenge system]] provides helpers for controlling this), we activate the scoreboard and trigger an event for both the players in the duel..+- When we're ready to start (again, the [[scripting::subgames:SubgameDuels|Subgame Duels system]] provides helpers for controlling this), we activate the scoreboard and trigger an event for both the players in the duel..
 <code> <code>
  SubgameActivateScoreboard( $kCrowDuelSubgameID, 0 )  SubgameActivateScoreboard( $kCrowDuelSubgameID, 0 )
scripting/subgames.1678037521.txt.gz · Last modified: 2023/03/05 11:32 by mit

Except where otherwise noted, content on this wiki is licensed under the following license: Public Domain
Public Domain Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki