Author Topic: [PLUGIN] RPG Dialog  (Read 11883 times)

PabloAM

  • Jr. Member
  • **
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 58
    • View Profile
[PLUGIN] RPG Dialog
« on: July 23, 2013, 05:04:25 PM »
Hello everyone :)

I would like to introduce to you a new plugin that I have been working for a weeks.

RPG Dialog :)


An easy and faster way to create RPG Dialogs!!

Try it yourself:  DEMO

Features:
- Get the text from JSON file. (Next version from a URL)
- The texts fits dynamically according to configuration of the Dialog. (Size and max lines)
- Possibility of change image and name of the speaker.
- It is possible, change color, and speed of text in run time.
- Sections of text can call a function. This can be used for instance to change image of speaker or create a particle effect.
- It is NGUI version, and comes with NGUI free version.

You can get it here: RPG DIALOG

You can use this thread for questions or feedback.

Thanks in advanced! :D

jeldrez

  • Sr. Member
  • ****
  • Thank You
  • -Given: 8
  • -Receive: 4
  • Posts: 352
    • View Profile
Re: [PLUGIN] RPG Dialog
« Reply #1 on: July 23, 2013, 05:14:00 PM »
It's really good!
Congrats!  ;D

PabloAM

  • Jr. Member
  • **
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 58
    • View Profile
Re: [PLUGIN] RPG Dialog
« Reply #2 on: July 23, 2013, 05:17:49 PM »
Thanks Jeldrez!

I hope it will be useful for someone :)

Regards!

galuodo

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 65
    • View Profile
Re: [PLUGIN] RPG Dialog
« Reply #3 on: July 23, 2013, 10:08:23 PM »
If you can add clickable text, that will be great.

PabloAM

  • Jr. Member
  • **
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 58
    • View Profile
Re: [PLUGIN] RPG Dialog
« Reply #4 on: July 24, 2013, 01:24:16 AM »
Good idea galuodo.
I'll add in following versions. :)

Thanks

galuodo

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 65
    • View Profile
Re: [PLUGIN] RPG Dialog
« Reply #5 on: July 24, 2013, 04:15:01 AM »
Good idea galuodo.
I'll add in following versions. :)

Thanks

And player can select brunch in the dialog box. like:
|---------------------------------
| Do you want a cup of tea?   |
|                                        |
| YES                     NO         |
--------------------------------

PabloAM

  • Jr. Member
  • **
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 58
    • View Profile
Re: [PLUGIN] RPG Dialog
« Reply #6 on: July 25, 2013, 02:40:41 AM »
OK. I´ll think how implement that from a JSON format :)

The next release is coming soon :)

Thanks!

primus88

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 50
    • View Profile
Re: [PLUGIN] RPG Dialog
« Reply #7 on: July 31, 2013, 05:19:37 PM »
Hello,

I bought your asset but I have problems getting it to run with my installed NGUI (full).
I get the following error :

Assets/OutPut/RPGDialog/Scripts/RPGDialog.cs(82,37): error CS1502: The best overloaded method match for `UIFont.WrapText(string, float, int, bool, UIFont.SymbolStyle)' has some invalid arguments

and

Assets/OutPut/RPGDialog/Scripts/RPGDialog.cs(82,37): error CS1503: Argument `#3' cannot convert `bool' expression to type `int'

I agree with Unity here :)

The thing is, your scene was working with the NGUI version you provided. But not with the full version.
Not using the full version in my project is impossible.
So what to do ?

PabloAM

  • Jr. Member
  • **
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 58
    • View Profile
Re: [PLUGIN] RPG Dialog
« Reply #8 on: July 31, 2013, 05:26:34 PM »
Hello primius88.

First of all, thanks for your purchase!! :)

Ok. It´s a small bug easily removable:

Just change :

mText = dialog.font.WrapText(dialog.text, dialog.lineWidth /
dialog.cachedTransform.localScale.x, dialog.Multiline , false,
UIFont.SymbolStyle.None);

TO:
mText = dialog.font.WrapText(dialog.text, dialog.lineWidth /
dialog.cachedTransform.localScale.x, maxLines, true,
UIFont.SymbolStyle.None);

Let me know if works with this change.

Thanks!!
« Last Edit: August 03, 2013, 05:16:57 AM by PabloAM »

primus88

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 50
    • View Profile
Re: [PLUGIN] RPG Dialog
« Reply #9 on: August 01, 2013, 02:35:25 PM »
Now works great.
The value for money is great in this little package.
Very satisfied.

PabloAM

  • Jr. Member
  • **
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 58
    • View Profile
Re: [PLUGIN] RPG Dialog
« Reply #10 on: August 01, 2013, 03:12:45 PM »
Now works great.
The value for money is great in this little package.
Very satisfied.

Thank you very much!

A small review like that will be awesome in the review area on the Asset store :P

Anyways, I´m working in the next version, I hope release it the next week.

Thanks!

primus88

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 50
    • View Profile
Re: [PLUGIN] RPG Dialog
« Reply #11 on: August 02, 2013, 11:44:54 AM »
I left the review on Asset Store.

I have two questions :

1. Why color codes are not working anymore for me (I changed the text from RPGDefault font to Fantasy normal font) Even though the emoticon and color checkbox is still selected, in the prefab, when I run the player, the checkbox is de-selected.
2. What to modify so I can use different dialogue lists for different scenes in my project ?
In order to use it like a mission de-briefing.
As for now, I can only use that Tutorial.txt for all the scenes.
« Last Edit: August 02, 2013, 11:58:32 AM by primus88 »

PabloAM

  • Jr. Member
  • **
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 58
    • View Profile
Re: [PLUGIN] RPG Dialog
« Reply #12 on: August 03, 2013, 05:30:28 AM »
Thanks again primus88!!!

Ok, about questions:
1º- I forgotten add the value:
mText = dialog.font.WrapText(dialog.text, dialog.lineWidth /
dialog.cachedTransform.localScale.x, maxLines, true,
UIFont.SymbolStyle.Colored);

2º To change the "source" of comments you just have to change this:  (I´ll add in the next version)

On line 23 inside "GameTutorialExample":
Change this line:
  1. StartCoroutine(WebServices.GetTutorial("Tutorial",new WebServices.TutoCallBack(this.OnTutoCallBack)));

Inside "Webservices" line 10:
Change to:
  1. public static IEnumerator GetTutorial(string comments, TutoCallBack tutoCB)

And finally on line 13:
  1. TextAsset t = (TextAsset) Resources.Load(comments, typeof(TextAsset));

With that you can add .txt on a Resource folder and call it.
For example:
Tutorial2.txt in Resource folder.

Code to call it:
  1. StartCoroutine(WebServices.GetTutorial("Tutorial2",new WebServices.TutoCallBack(this.OnTutoCallBack)));

primus88

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 50
    • View Profile
Re: [PLUGIN] RPG Dialog
« Reply #13 on: August 03, 2013, 07:24:13 AM »
Thanks Pablo for the quick response.
The text coloring part is still not working though.
The prefab has the coloring option checked but the cloned one in game, doesn't.

Any other ideas ?

primus88

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 50
    • View Profile
Re: [PLUGIN] RPG Dialog
« Reply #14 on: August 08, 2013, 03:03:28 AM »
Pablo ? You there bratah ?