Dungeon (functions): Difference between revisions

From PMDOWiki
Imbion (talk | contribs)
Created page with "{{Cleanup}} == DUNGEON:CharTurnToChar(RogueEssence.Dungeon.Character,RogueEssence.Dungeon.Character) == Makes a character turn to face another === Arguments === * <code>curch</code>: None * <code>turnto</code>: None == DUNGEON:LastDungeonResult == Gets the result of the last dungeon adventure. == DUNGEON:DungeonCurrentFloor == Returns the floor number of the current dungeon. == DUNGEON:DungeonAssetName == Returns the internal name for the current dungeon...."
 
Imbion (talk | contribs)
Some cleanup progress
Line 1: Line 1:
{{Cleanup}}
The dungeon functions involve actions that are performed within [[dungeon|dungeons]].
== DUNGEON:CharTurnToChar(RogueEssence.Dungeon.Character,RogueEssence.Dungeon.Character) ==
== CharTurnToChar==
 
Makes a character turn to face another.
 
Makes a character turn to face another
 


=== Arguments ===
=== Arguments ===
Argument order is <code>DUNGEON:CharTurnToChar(curch, turnto)</code>.


* <code>curch</code>: None
{| class="wikitable"
* <code>turnto</code>: None
|-
! Name !! Type !! Technical Type !! Purpose
|-
| curch || Dungeon Character ||RogueEssence.Dungeon.Character || The character that will turn.
|-
| turnto || Dungeon Character ||RogueEssence.Dungeon.Character || The character being turned to.
|-
|}


== DUNGEON:LastDungeonResult ==
== DUNGEON:LastDungeonResult ==


Gets the result of the last dungeon adventure. Takes no arguments.


Gets the result of the last dungeon adventure.
=== Usage ===
 
{{sectStub}}
 
== DUNGEON:DungeonCurrentFloor ==
 
 
Returns the floor number of the current dungeon.


== DungeonCurrentFloor ==


== DUNGEON:DungeonAssetName ==
Returns the floor number of the current dungeon. Takes no arguments.


=== Usage ===
{{sectStub}}


Returns the internal name for the current dungeon.
== DungeonAssetName ==
Returns the internal name for the current dungeon. Takes no arguments.
=== Usage ===
{{sectStub}}


== DungeonDisplayName ==


== DUNGEON:DungeonDisplayName ==


Returns the localized name of the current dungeon. Takes no arguments.


Returns the localized name of the current dungeon.
=== Usage ===





Revision as of 16:22, 28 November 2025

The dungeon functions involve actions that are performed within dungeons.

CharTurnToChar

Makes a character turn to face another.

Arguments

Argument order is DUNGEON:CharTurnToChar(curch, turnto).

Name Type Technical Type Purpose
curch Dungeon Character RogueEssence.Dungeon.Character The character that will turn.
turnto Dungeon Character RogueEssence.Dungeon.Character The character being turned to.

DUNGEON:LastDungeonResult

Gets the result of the last dungeon adventure. Takes no arguments.

Usage

This section is a stub. You can help PMDO Wiki by expanding it.


DungeonCurrentFloor

Returns the floor number of the current dungeon. Takes no arguments.

Usage

This section is a stub. You can help PMDO Wiki by expanding it.


DungeonAssetName

Returns the internal name for the current dungeon. Takes no arguments.

Usage

This section is a stub. You can help PMDO Wiki by expanding it.


DungeonDisplayName

Returns the localized name of the current dungeon. Takes no arguments.

Usage

DUNGEON:CharSetEmote(RogueEssence.Dungeon.Character,System.String,System.Int32)

Set a character's emote in a dungeon map.


Arguments

  • chara: Character to emote
  • emoteid: ID of the emote
  • cycles: The number of times to play the emote.

DUNGEON:CharStartAnim

Set a character's animation.


Arguments

  • chara: Character to animate
  • anim: Name of the animation
  • loop: Whether to loop the animation

Example


DUNGEON:CharStartAnim(player, anim, false)

DUNGEON:CharEndAnim

Stops a character's current animation, reverting them to default idle.


Arguments

  • chara: Character to stop animating

Example


DUNGEON:CharEndAnim(player)

DUNGEON:CharWaitAnim

Set a character's animation, and waits until it completed before continue.


Arguments

  • chara: Character to animate
  • anim: Name of the animation

Example


DUNGEON:CharStartAnim(player, anim)

DUNGEON:PlayVFX(RogueEssence.Content.FiniteEmitter,System.Int32,System.Int32,RogueElements.Dir8)

Plays a VFX in the dungeon map


Arguments

  • emitter: The VFX emitter
  • x: X position in pixels
  • y: Y Position in pixels
  • dir: Direction to orient the VFX, defaults to Down

DUNGEON:PlayVFX(RogueEssence.Content.FiniteEmitter,System.Int32,System.Int32,RogueElements.Dir8,System.Int32,System.Int32)

Plays a VFX that has a start position and an end position. It uses a finite emitter that generates BaseAnims.


Arguments

  • emitter: The VFX emitter
  • x: Start X position in pixels
  • y: Start Y Position in pixels
  • dir: Direction to orient the VFX, defaults to Down.
  • xTo: End X position in pixels
  • yTo: End Y position in pixels

DUNGEON:PlayVFXAnim(RogueEssence.Content.BaseAnim,RogueEssence.Content.DrawLayer)

Plays a VFX using just a BaseAnim


Arguments

  • anim: The animation to play
  • layer: The layer to put it on

DUNGEON:MoveScreen(RogueEssence.Content.ScreenMover)

Plays a screen-moving effect.


Arguments

  • mover: The screen mover.