Arbitrary Strings in Damage Display
#1
Arbitrary Strings in Damage Display
by RPG Advocate
saved from Phylomortis.Com


Introduction
This script allows you to display any string you like as damage in battle. If you want to construct a string, perhaps to show MP damage, all you need to do is append the integer portion of the string to the rest of the string by using a statement like "game_actors[0].damage = "MP" + "$game_variables[1].to_s" to convert the integer contained in the variable to a string.

The "xxx" in the code below needs to be replaced with one of the following three expressions:

• $game_actors[x] - Actor with ID x.
• $game_party.actors[x] - Actor in position x.
• $game_troop.enemies[x] - Enemy in position x.

Remember that positions start at index 0.

Code:
$xxx.damage = "String"
  $xxx.damage_pop = true
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
   Simple SP Bonus Damage DerVVulfman 4 10,362 05-01-2012, 06:32 PM
Last Post: DerVVulfman
   Damage Text Revamp 2.1 PK8 3 13,922 04-08-2012, 06:47 PM
Last Post: PK8
   Damage Text Edit ParaDog 0 5,498 03-05-2008, 08:22 AM
Last Post: ParaDog
   Remodeled Damage Display (RTAB) cogwheel 0 5,380 03-05-2008, 06:01 AM
Last Post: cogwheel
   Remodeled Damage Display (Regular Variant) cogwheel 0 5,290 03-04-2008, 06:43 AM
Last Post: cogwheel
   Tactical Command Display Claihm 0 3,679 03-04-2008, 05:49 AM
Last Post: Claihm
   FFX, FFX=2, FFXII damage display Selwyn 0 5,519 03-03-2008, 06:25 AM
Last Post: Selwyn
   One-Letter-at-a-Time Text Display Script Anonymous 0 5,467 03-03-2008, 05:41 AM
Last Post: Anonymous
   Modifying Damage Display RPG Advocate 0 4,483 03-03-2008, 05:35 AM
Last Post: RPG Advocate
   Elemental Damage Fix RPG Advocate 0 5,652 03-03-2008, 05:13 AM
Last Post: RPG Advocate



Users browsing this thread: 1 Guest(s)