Delete Everyone/en: Difference between revisions
(Updating to match new version of source page) |
(Updating to match new version of source page) |
||
(3 intermediate revisions by the same user not shown) | |||
Line 2: | Line 2: | ||
[[Category:Agents]] | [[Category:Agents]] | ||
<section begin=image/>[[File:Delete Everyone Block.png|alt=The Delete Everyone Block|thumb]]<section end=image | <section begin=image/>[[File:Delete Everyone Block.png|alt=The Delete Everyone Block|thumb]]<section end=image/><p id="tooltip">Deletes everyone including itself. *The World cannot delete itself.</p> | ||
'''<code>delete everyone</code>'''<section end=name/> is a [[Special:MyLanguage/Code Block|code block]] part of the [[Special:MyLanguage/Agent|agents]] drawer. | <section begin=name/>'''<code>delete everyone</code>'''<section end=name/> is a [[Special:MyLanguage/Code Block|code block]] part of the [[Special:MyLanguage/Agent|agents]] drawer. | ||
==Usage== | ==Usage== | ||
Line 10: | Line 10: | ||
<code>delete everyone</code> is used to delete all [[Special:MyLanguage/Agent|agent]]s from [[Special:MyLanguage/Spaceland|Spaceland]]. | <code>delete everyone</code> is used to delete all [[Special:MyLanguage/Agent|agent]]s from [[Special:MyLanguage/Spaceland|Spaceland]]. | ||
==Syntax== | |||
<code>(in reference to every agent) delete everyone</code> | <code>(in reference to every agent) delete everyone</code> | ||
==Example== | |||
[[File:delete_everyone_example.gif|alt=Delete Everyone example gif|thumb]] | |||
[[File:create_example.png|alt=Delete Everyone example code|thumb]] | |||
Each time that setup is pressed, The World deletes all other agents. This ensures that each time a new set of agents is created, the population does not continue to increase. Using the delete everyone block enables the ‘setup’ button replicate the behavior of a project loaded for the first time. | |||
==Nuances== | ==Nuances== |
Latest revision as of 15:28, 16 August 2023
Deletes everyone including itself. *The World cannot delete itself.
delete everyone
is a code block part of the agents drawer.
Usage
delete everyone
is used to delete all agents from Spaceland.
Syntax
(in reference to every agent) delete everyone
Example
Each time that setup is pressed, The World deletes all other agents. This ensures that each time a new set of agents is created, the population does not continue to increase. Using the delete everyone block enables the ‘setup’ button replicate the behavior of a project loaded for the first time.
Nuances
Code may be placed after this block as this block can be used to delete all agents under the world tab.