Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Hi Casper,
Just want to thank you for this amazing teleport script.
Can I make request for a couple of additions please..?
1. An option to swap the picture and description above or below each other.
2. An option to have more than 2 lines for the description, say 3 or 4 lines. I feel 2 lines ain't quite enough for descriptions so cutting maybe the picture space down a little will free more space up for line(s).
3. When using Gold as a currency.. an option to stop the plugin putting Gold at the end of the gold amount you've put in. (see picture, you can see i've used a gold icon so there would be no need to put gold at the end of the cost).
Thanks!

Hi, thanks for the suggestions, I can add them to a future update. For the Gold, it is putting your Currency Unit text from the database. You should be able to edit the .js around line 1601 to remove the currency unit from being added to the string.

thanks. i'll see if I can figure that Gold text thing out, thanks for the quick fix for that.

I went down through the list and couldnt see the section to remove Gold at the end of the cost.. can you please take a screenshot of the line to edit so i can do a CTRL+F  search for the exact line please?
Thanks!

Change this:

if(this._item._goldCost > 0) {
    this.drawText(this._item._goldCost + TextManager.currencyUnit, 0, y, this.contents.width, 'center'); 
    y += this.lineHeight();
}

to this:

if(this._item._goldCost > 0) {
this.drawText(this._item._goldCost, 0, y, this.contents.width, 'center');
y += this.lineHeight();
}