Difference between revisions of "Starward Rogue:XML - Dev Scripts"
Jump to navigation
Jump to search
m (Reverted edits by Maintenance script (talk) to last revision by Dominus Arbitrationis) |
|||
(3 intermediate revisions by 3 users not shown) | |||
Line 6: | Line 6: | ||
Example dev script: | Example dev script: | ||
− | <code> | + | <code><br /> |
<root><br /> | <root><br /> | ||
<entity type="PressureShotgun" category="ItemPickup" offset_from_player="50,150" /><br /> | <entity type="PressureShotgun" category="ItemPickup" offset_from_player="50,150" /><br /> | ||
Line 25: | Line 25: | ||
**tells it to spawn the entity at the center of the room, offset by this X,Y | **tells it to spawn the entity at the center of the room, offset by this X,Y | ||
− | |||
− | [[Category:Starward Rogue]] | + | [[Category:Starward Rogue]][[Category:Starward Rogue XML]] |
Latest revision as of 16:36, 25 October 2018
On the 'L' menu (you must be in a run with Temp Dev Mode enabled) there's a "Run Dev Script" button next to a dropdown. That dropdown will have one item for each .xml file in the Configuration/DevScripts/ directory.
To run a script, pick it from that dropdown and click "Run Dev Script".
You can re-run the last script you ran by pressing Ctrl+F8.
Example dev script:
<root>
<entity type="PressureShotgun" category="ItemPickup" offset_from_player="50,150" />
</root>
entity
The only node type supported in dev scripts for now is "entity", which is basically "spawn this entity when the script is run".
- type (entity)
- the internal name of the entity type to spawn
- category (string)
- basically this is "ItemPickup" for things you should pick up, and "Enemy" (the default) for everything else
- offset_from_player (ArcenPoint)
- tells it to spawn the entity at the player's current location, offset by this X,Y
- offset_from_center (ArcenPoint)
- tells it to spawn the entity at the center of the room, offset by this X,Y