Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 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
   Set Map's Display Name ACE kyonides 0 727 12-16-2022, 09:44 PM
Last Post: kyonides
   Correct Character Sprite Display MechanicalPen 6 15,690 02-10-2014, 11:20 PM
Last Post: Taylor
   Yanfly Damage Popup Helladen 0 4,983 04-25-2013, 03:50 PM
Last Post: Helladen
   Simple SP Bonus Damage DerVVulfman 4 8,455 05-01-2012, 06:32 PM
Last Post: DerVVulfman
   Damage Text Revamp 2.1 PK8 3 11,652 04-08-2012, 06:47 PM
Last Post: PK8
   Victor Engine - Damage Limit Victor Sant 0 4,936 01-04-2012, 09:14 AM
Last Post: Victor Sant
   Victor Engine - Damage Popup Victor Sant 0 5,032 12-21-2011, 07:56 AM
Last Post: Victor Sant
   [Unsupported] Game Strings (Streamline dialogue!) PK8 3 8,319 09-15-2009, 11:28 PM
Last Post: Wyatt
   Damage Pop VX DerVVulfman 0 5,015 03-06-2008, 04:21 AM
Last Post: DerVVulfman
   Damage Text Edit ParaDog 0 4,644 03-05-2008, 08:22 AM
Last Post: ParaDog



Users browsing this thread: