Symbol_

Veteran
Veteran
Joined
Nov 28, 2017
Messages
158
Reaction score
27
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,685
Reaction score
1,800
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
853
Reaction score
388
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
327
Reaction score
95
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
158
Reaction score
27
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
998
Reaction score
461
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
998
Reaction score
461
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 Profile Posts

Mod name: "[Game name] Gameplay Overhaul"
What they actually mean: "Here is a mod that makes the game harder."
I decided to reinstall one of my most favourite game of all times, Gothic 2. Time to get back to Khorinis!
So much game make... I needs to rest. The foods call.
-Casino with bunnysuit green check.png
1638563168795.png
Monday December 6th 2021 at 7PM Hawkzombie will stream A Thief's Voyage on his Twitch.

Hawkzombie Twitch

Check it out.​

Forum statistics

Threads
117,162
Messages
1,105,061
Members
153,249
Latest member
Jon_Doe
Top