Not logged inOpenClonk Forum
Up Topic New relaunch rule

This board is threaded (i.e. has a tree structure). Please use the Reply button of the specific post you are referring to, not just any random button. If you want to reply to the topic in general, use the Post button near the top and bottom of the page.

Post Reply
In Response to Fulgen
There have been changes to the relaunch system: There is now a new relaunch rule which handles relaunches, general respawns and player restarts. Due to this, it will be necessary to adapt the scenarios (all scenarios included in the main package have been updated).

Major compatibility issues (functions are all methods of the object returned by GetRelaunchRule())
* Rule_Restart needs to be replaced by EnablePlayerRestart()
* Rule_BaseRespawn needs to be replaced by SetBaseRespawn(true)
* FreeCrew and InventoryTransfer can be set by calling SetInventoryTransfer(true/false) and SetFreeCrew(true/false)
* Remove all existing respawn code in the scenario, it isn't needed any more.
* If the game mode is melee, the default relaunch count is 5, otherwise, it is nil (unlimited relaunches). You can set it with SetDefaultRelaunches(relaunches).

Powered by mwForum 2.29.7 © 1999-2015 Markus Wichitill