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


Messages In This Thread
Arbitrary Strings in Damage Display - by RPG Advocate - 03-02-2008, 08:20 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
   Simple SP Bonus Damage DerVVulfman 4 11,423 05-01-2012, 06:32 PM
Last Post: DerVVulfman
   Damage Text Revamp 2.1 PK8 3 15,304 04-08-2012, 06:47 PM
Last Post: PK8
   Damage Text Edit ParaDog 0 6,042 03-05-2008, 08:22 AM
Last Post: ParaDog
   Remodeled Damage Display (RTAB) cogwheel 0 5,949 03-05-2008, 06:01 AM
Last Post: cogwheel
   Remodeled Damage Display (Regular Variant) cogwheel 0 5,820 03-04-2008, 06:43 AM
Last Post: cogwheel
   Tactical Command Display Claihm 0 4,034 03-04-2008, 05:49 AM
Last Post: Claihm
   FFX, FFX=2, FFXII damage display Selwyn 0 6,007 03-03-2008, 06:25 AM
Last Post: Selwyn
   One-Letter-at-a-Time Text Display Script Anonymous 0 6,139 03-03-2008, 05:41 AM
Last Post: Anonymous
   Modifying Damage Display RPG Advocate 0 4,953 03-03-2008, 05:35 AM
Last Post: RPG Advocate
   Elemental Damage Fix RPG Advocate 0 6,146 03-03-2008, 05:13 AM
Last Post: RPG Advocate



Users browsing this thread: 1 Guest(s)