Symbol_

Veteran
Veteran
Joined
Nov 28, 2017
Messages
151
Reaction score
22
First Language
English
Primarily Uses
RMMV
Hi!

I'm making a fishing game, ideally I want there to be weights for every fish you catch.


This event of the fishing game gives you the result of which fish you catch.

Ideally this event has one conditional branch for each fish you could receive, but that would spiral out of control if I had to account for different weights.

So I guess what I would like, is a way for each fish (item in your inventory) to be assigned different weights via a variable that assigns the item a number, that'd show in the items name, so if I fish up two guppies, in the inventory it'd show as

Guppy l Weight: 1KG
Guppy l Weight: 1.3KG
Guppy l Weight: 1.75KG

Without me having to make X number of the same item repeatedly for each individual weight
 

ShadowDragon

Realist
Veteran
Joined
Oct 8, 2018
Messages
4,509
Reaction score
1,730
First Language
Dutch
Primarily Uses
RMMV
it's 3 guppies instead of 2 :D

but to your issue.

I have a way in mind, but it probably wont do by eventing alone.
because you need something like a item Druplicator.

if you want weight on like Guppy 1 Weight \v[4],
if it's NOT equal to weight, than duplicate the item in a new slot,
otherwise, stack it.

this require a plugin, but if you dont want a plugin, you need to add
different items with a fixed weight.

controlling by 1 variable for it's weight (or self variables probably safer),
to stack/duplicate the item.

I got something in mind, but I got no idea how to duplicate the item,
because I', still a beginner in js, there might be other ways, but it depends
on the methode and amount of different fishes you have probably.
 

Maliki79

Veteran
Veteran
Joined
Mar 13, 2012
Messages
850
Reaction score
383
First Language
English
Primarily Uses
N/A
You'd likely need a plugin.
(YFs item core comes to mind)
You'd also need a bit of scripting know how to put the weight data on each fish item.
 

xabileug

Veteran
Veteran
Joined
Jul 1, 2014
Messages
210
Reaction score
49
if you just need a flavor text, just make random number for the weight for every catch. there exist no item multiple instance in rpg maker mv. so you have to manually create all those fish weight in the database.
 

Symbol_

Veteran
Veteran
Joined
Nov 28, 2017
Messages
151
Reaction score
22
First Language
English
Primarily Uses
RMMV
if you just need a flavor text, just make random number for the weight for every catch. there exist no item multiple instance in rpg maker mv. so you have to manually create all those fish weight in the database.

This wouldn't work, I'd need the weights to be available to see in inventory once you got them, then I want NPC's to ask if you have managed to catch a fish of certain weight
 

Tiamat-86

old jrpg gamer
Veteran
Joined
Dec 5, 2017
Messages
970
Reaction score
432
First Language
english
Primarily Uses
RMMV
I'd need the weights to be available to see in inventory once you got them
thats exactly what a flavor text is.
base engine: you would need to make a separate item for each weight.

plugin: (never used independent items myself) yanfly item core comes to mind for its independent items.
items i believe the only thing you can randomize is the price and info display. im not sure how the info eval works out for random variable in the info though, it might be different for each of the same item or it might just overwrite all of them when pick up a new 1.
either way there's no way to event condition check the info number after the variable gets changed with the next catch. and condition checks wont even pay any attention to the variance.
this is sounding like it will be 1 of those "what is something sounds simple but ended up being a nightmare" things
 
Last edited:

Tiamat-86

old jrpg gamer
Veteran
Joined
Dec 5, 2017
Messages
970
Reaction score
432
First Language
english
Primarily Uses
RMMV
the info eval will still just be entirely cosmetic though. a condition check will just take any guppy not a guppy with flavor text "weight = X"
you would have to make a different item in the database for each weight for these condition checks.
 

Latest Threads

Latest Posts

Latest Profile Posts

thought I'd upgrade to mz from mv cause of the nice quality of life features but ****ing hell why couldn't they allow old plugins to work in it and secondly how come in over a year since it's release has there been no mz version of something so crucial as a non grid based movement plugin. I guess I'll stick with mv. (why wasnt mz just an update to mv anyway literally nothing substantial changed..)
Something might be coming...
Hallo.png
A new day for creating :)
2021 has been the runner-up for the worst year of my life. 2015 may take that title, but '21 is pushing it. Excuses really don't justify how much of a jerk I've been this year to a lot of people.

I'm sorry. I don't intend to be a jerk forever, but I'd rather back up my intent with actions, not words.

Forum statistics

Threads
116,020
Messages
1,094,982
Members
151,337
Latest member
Laura1999
Top