Author Topic: [XP] Enhanced Item Description  (Read 5859 times)

Offline ForeverZer0

  • CP's Pedophile
  • Global Moderator
  • Guardian of Chaos
  • ****
  • Posts: 3248
  • LV: 294
  • Gender: Male
  • Remember you are unique, just like everyone else.
    • View Profile
[XP] Enhanced Item Description
« on: May 14, 2011, 07:20:30 PM »
Enhanced Item Description
Authors: ForeverZer0
Version: 1.0
Type: Menu Add-on
Key Term: Menu Add-on

Introduction

This is a small script I wrote when I got started scripting, but never released. I found it going through some old projects, but I'm sure someone else can make use of it. What it does is allows you to use the same shortcuts commands you can in a "Show Text..." command, but within the descriptions for Items, Weapons, and Armors. For example, if you wanted the description to include the value of a variable, in the database where you right the descriptions, just use "\v[VAR_ID]", and the command will be replaced with the actual value of the variable during the game.

Features

  • Easy to use.
  • Makes descriptions a little more dynamic.
  • Commands included: Actor Names, Variables, Gold, Switches, and Steps.
  • Can easily add custom ones

Screenshots

(click to show/hide)
(click to show/hide)
(click to show/hide)

Demo

None.

Script

Here lies the script.
(click to show/hide)

Instructions

Place script anywhere above "Main".
Use the following commands in the database when making descriptions:
  • \v[ID] :  Replaces with value of game variable with ID
  • \n[ID] :  Replaces with name of actor that has ID
  • \sw[ID] :  Replaces with value of switch with ID  (ON/OFF)
  • \g :  Replaces with amount of gold party has
  • \st : Replaces with step count

Compatibility

Compatible with practically everything.

Credits and Thanks

  • ForeverZer0

Author's Notes

If you would like a custom command, feel free to ask. 
Please report any bugs/issues you encounter so that they may be resolved.
I am done scripting for RMXP. I will likely not offer support for even my own scripts anymore, but feel free to ask on the forum, there are plenty of other talented scripters that can help you.

Offline Blizzard

  • This sexy
  • Administrator
  • has over 9000 posts
  • *****
  • Posts: 19917
  • LV: 642
  • Gender: Male
  • Magic midgets.
    • View Profile
    • You're already on it. (-_-')
Re: [XP] Enhanced Item Description
« Reply #1 on: May 14, 2011, 07:43:34 PM »
Lol, why didn't you post it in the database right away? xD
Check out Daygames and our games:

King of Booze      King of Booze: Never Ever      Pet Bots
Drinking Game for Android      Never have I ever for Android      Pet Bots for Android
Drinking Game for iOS      Never have I ever for iOS      Pet Bots for iOS
Drinking Game on Steam


Quote from: winkio
I do not speak to bricks, either as individuals or in wall form.

Quote from: Barney Stinson
When I get sad, I stop being sad and be awesome instead. True story.

Offline G_G

  • Green Gmod Game_Guy AKA G4 AKA hyper-G AKA G-force
  • Global Moderator
  • Chaos Ultimate
  • ****
  • Posts: 6585
  • LV: 407
  • Gender: Male
    • View Profile
Re: [XP] Enhanced Item Description
« Reply #2 on: May 14, 2011, 07:57:46 PM »
He's not a moderator of this board.

*moves*

Quick note, you could give any text "\" commands by simply aliasing the Bitmap.draw_text method. Scripters could even use it then when writing code.
« Last Edit: May 14, 2011, 08:15:31 PM by Sub-Zero »

Offline Blizzard

  • This sexy
  • Administrator
  • has over 9000 posts
  • *****
  • Posts: 19917
  • LV: 642
  • Gender: Male
  • Magic midgets.
    • View Profile
    • You're already on it. (-_-')
Re: [XP] Enhanced Item Description
« Reply #3 on: May 14, 2011, 08:07:58 PM »
*fixes behind G_G's back* But he is!
Check out Daygames and our games:

King of Booze      King of Booze: Never Ever      Pet Bots
Drinking Game for Android      Never have I ever for Android      Pet Bots for Android
Drinking Game for iOS      Never have I ever for iOS      Pet Bots for iOS
Drinking Game on Steam


Quote from: winkio
I do not speak to bricks, either as individuals or in wall form.

Quote from: Barney Stinson
When I get sad, I stop being sad and be awesome instead. True story.

Offline ForeverZer0

  • CP's Pedophile
  • Global Moderator
  • Guardian of Chaos
  • ****
  • Posts: 3248
  • LV: 294
  • Gender: Male
  • Remember you are unique, just like everyone else.
    • View Profile
Re: [XP] Enhanced Item Description
« Reply #4 on: May 14, 2011, 09:01:44 PM »
lol, thanks.

"I FEEL THE POWER!"

@GG: i didn't think of that. You are a ninja.  :ninja:
« Last Edit: May 14, 2011, 09:03:36 PM by Baraka »
I am done scripting for RMXP. I will likely not offer support for even my own scripts anymore, but feel free to ask on the forum, there are plenty of other talented scripters that can help you.

Offline Jragyn

  • Ethereal Devastator
  • ****
  • Posts: 311
  • LV: 20
  • Gender: Male
  • A prodigy... maybe? Hoo hah.
    • View Profile
    • facenbooken.
Re: [XP] Enhanced Item Description
« Reply #5 on: May 15, 2011, 06:06:01 PM »
Quote
..., in the database where you write the descriptions,...

:D I like.
A bright light can either illuminate or blind, but how will you know which until you open your eyes?

Offline brewmeister

  • Trained Member
  • *
  • Posts: 22
  • LV: 2
  • Gender: Male
  • Paste above Main
    • View Profile
    • HBGames.org
Re: [XP] Enhanced Item Description
« Reply #6 on: May 16, 2011, 09:17:02 PM »
Quick note, you could give any text "\" commands by simply aliasing the Bitmap.draw_text method. Scripters could even use it then when writing code.

Kinda like this....   http://www.hbgames.org/forums/viewtopic.php?f=11&t=74073    ;)  ;)

I started out the same way, then realized... "Everything uses Bitmap.draw_text, why not modify that!!"


Either way, great enhancement! Lot's of people have requested it.

Be Well

Offline XaineC

  • Trained Member
  • *
  • Posts: 12
  • LV: -1
    • View Profile
Re: [XP] Enhanced Item Description
« Reply #7 on: May 29, 2011, 02:59:57 AM »
Really great. Could you possibly make this work with skills as well?

Offline G_G

  • Green Gmod Game_Guy AKA G4 AKA hyper-G AKA G-force
  • Global Moderator
  • Chaos Ultimate
  • ****
  • Posts: 6585
  • LV: 407
  • Gender: Male
    • View Profile
Re: [XP] Enhanced Item Description
« Reply #8 on: May 29, 2011, 03:43:41 AM »
Add this right below his script.
Code: [Select]
module RPG
  class Skill
    def description
      return RPG.substitute_text(@description)
    end
  end
end

Offline XaineC

  • Trained Member
  • *
  • Posts: 12
  • LV: -1
    • View Profile
Re: [XP] Enhanced Item Description
« Reply #9 on: May 29, 2011, 04:16:43 PM »
Great! Thanks