Pikmin Fanon will close on September 1st (see here for details and discussion).
A full-history page and file archive is available for download here (mirror).
Wayback Machine archive can be found here. Partial Wikia archive here.

Difference between revisions of "Pikifen/Object categories/Leader"

From Pikmin Fanon
Jump to: navigation, search
(Consistency.)
(Version 0.18!)
Line 23: Line 23:
 
=== Optional ===
 
=== Optional ===
 
*'''<code>dismiss_sfx</code>''': Name of the sound file to play when this leader dismisses. The sound should be in <code>Game_data/Audio</code>, and the extension of the file name must be included. If not set, no sound will play. Defaults to not set.
 
*'''<code>dismiss_sfx</code>''': Name of the sound file to play when this leader dismisses. The sound should be in <code>Game_data/Audio</code>, and the extension of the file name must be included. If not set, no sound will play. Defaults to not set.
 +
*'''<code>max_throw_height</code>''': When thrown, the leader reaches this height at the apex of the throw. For reference, a standard Pikmin has this set to 260, and leaders have this set to 130. Defaults to 130.
 
*'''<code>name_call_sfx</code>''': Same as <code>dismiss_sfx</code>, but the sound the leader makes when they are switched to. Defaults to not set.
 
*'''<code>name_call_sfx</code>''': Same as <code>dismiss_sfx</code>, but the sound the leader makes when they are switched to. Defaults to not set.
 
*'''<code>pluck_delay</code>''': How much time it takes before the Pikmin comes out. Defaults to 0.6.
 
*'''<code>pluck_delay</code>''': How much time it takes before the Pikmin comes out. Defaults to 0.6.
*'''<code>throw_strength_mult</code>''': When this leader is thrown, the strength of the throw arc will be multiplied by this. A standard Pikmin has this set to 1, but leaders normally have it set to 0.7.
 
 
*'''<code>whistle_range</code>''': Maximum range the whistle can cover. Defaults to 80.
 
*'''<code>whistle_range</code>''': Maximum range the whistle can cover. Defaults to 80.
 
*'''<code>whistle_sfx</code>''': Same as <code>dismiss_sfx</code>, but the sound the leader's regular whistle makes. Defaults to not set.
 
*'''<code>whistle_sfx</code>''': Same as <code>dismiss_sfx</code>, but the sound the leader's regular whistle makes. Defaults to not set.

Revision as of 13:22, 8 February 2020

A type of leader represents a playable character. Since you can have any number of instances of the same type in the same area, you can effectively have multiple Olimars roaming about. Whether you want to or not is up to you though! At least one leader is required to be in the area in order to play it.

Examples of leader types include Olimar, Louie, Alph, etc.

To create a new type of leader, please follow the creating object types tutorial.

Overview

A leader is any character that the player controls directly. When there are multiple leaders in the area, the player can swap between them. Leaders can whistle Pikmin into their group, throw them, punch, dismiss, etc.

Leader objects are hardcoded in the engine to be controlled by the player's input and to have "active" and "inactive" states, depending on whether the player is controlling them right now or not. They can idle, whistle, punch, hold a Pikmin or another leader, throw it, dismiss, spray around, flinch or get knocked back when hurt, die, follow a group, pluck, sleep, be held and thrown, and drink a drop.

Attributes

Besides the global object type attributes, a leader type has the following attributes.

Mandatory

  • icon: Name of the image file with the leader's icon. This icon is used on the HUD. The image should be in Game_data/Graphics, and the extension of the file name must also be included.

Recommended

None.

Optional

  • dismiss_sfx: Name of the sound file to play when this leader dismisses. The sound should be in Game_data/Audio, and the extension of the file name must be included. If not set, no sound will play. Defaults to not set.
  • max_throw_height: When thrown, the leader reaches this height at the apex of the throw. For reference, a standard Pikmin has this set to 260, and leaders have this set to 130. Defaults to 130.
  • name_call_sfx: Same as dismiss_sfx, but the sound the leader makes when they are switched to. Defaults to not set.
  • pluck_delay: How much time it takes before the Pikmin comes out. Defaults to 0.6.
  • whistle_range: Maximum range the whistle can cover. Defaults to 80.
  • whistle_sfx: Same as dismiss_sfx, but the sound the leader's regular whistle makes. Defaults to not set.

Animations

A leader object type needs to have the following animations:

  • idling: Just standing still.
  • walking: Walking.
  • plucking: Plucking a Pikmin sprout.
  • getting_up: Getting up from a lying down position.
  • dismissing: Ordering their group to dismiss.
  • throwing: Throwing a Pikmin or leader.
  • whistling: Blowing the whistle.
  • punching: Punching.
  • lying: Starts lying down and stays down.
  • pain: Reels back in pain.
  • knocked_down: Knocked down to the ground, and then gets up.
  • spraying: Spraying around.
  • drinking: Bending down to drink a drop.

Script

A leader type's script cannot be changed.

Object spawn script variables

Besides the global spawn script variables, leader type objects do not read any specific script variables.