- Joined
- Nov 22, 2014
- Messages
- 277
- Reaction score
- 52
- First Language
- german
- Primarily Uses
Okay, again I need the helpt of yours.
first, the victory aftermath script is awesome. but.. I got a little issue with that.
in my game, many of the monsters dont drop gold (why would a monster carry gold
) so they are dropping other items instead.
unfortunately shows the script every amount of gold you receive after battle, even if it is 0!
Here is the Victory Aftermath Script
I managed to get rid of the displaying that 0 gold is received. but... the script still draws the box of it, which looks just stupid.
I changed this part:
#-------------------------------------------------------------------------- # draw_gold #-------------------------------------------------------------------------- def draw_gold(rect) text = Vocab.currency_unit draw_currency_value(@gold, text, rect.x, rect.y, rect.width) endto this:
#-------------------------------------------------------------------------- # draw_gold #-------------------------------------------------------------------------- def draw_gold(rect) if @gold > 0 text = Vocab.currency_unit draw_currency_value(@gold, text, rect.x, rect.y, rect.width) end endbut where do I get rid of the box??
here is a gif to show what I mean exactly.
I hope someone can give me a clue. =)
first, the victory aftermath script is awesome. but.. I got a little issue with that.
in my game, many of the monsters dont drop gold (why would a monster carry gold
unfortunately shows the script every amount of gold you receive after battle, even if it is 0!
Here is the Victory Aftermath Script
I managed to get rid of the displaying that 0 gold is received. but... the script still draws the box of it, which looks just stupid.
I changed this part:
#-------------------------------------------------------------------------- # draw_gold #-------------------------------------------------------------------------- def draw_gold(rect) text = Vocab.currency_unit draw_currency_value(@gold, text, rect.x, rect.y, rect.width) endto this:
#-------------------------------------------------------------------------- # draw_gold #-------------------------------------------------------------------------- def draw_gold(rect) if @gold > 0 text = Vocab.currency_unit draw_currency_value(@gold, text, rect.x, rect.y, rect.width) end endbut where do I get rid of the box??
here is a gif to show what I mean exactly.
I hope someone can give me a clue. =)
