FleshToDust

Veteran
Veteran
Joined
Jul 10, 2017
Messages
800
Reaction score
2,905
First Language
English
Primarily Uses
RMMV
With the extra enemy drops plugin from yanfly I'm doing a conditional that requires a variable to be set to 1 and the player to have below a certain amount of that item and then an item which is normally 0% gets +100%.

<Enemy Drops>
Deer Antlers: 0%
</Enemy Drops>
<Conditional Deer Antlers Drop>
Variable 81 === 1 &&
Deer Antlers Count <= 4: +100%
</Conditional Deer Antlers Drop>

I've split up and tested both parts of the condition separately and they both work but when I combine them with && it won't work. Wondering if I'm doing something wrong. What I'm looking to do is have items that are only collectible while on a specific quest.

http://yanfly.moe/2015/12/19/yep-47-extra-enemy-drops/
 
Last edited:

Alisu

Veteran
Veteran
Joined
Apr 4, 2018
Messages
61
Reaction score
36
First Language
Finnish
Primarily Uses
RMMV
I'm not sure if the syntax you show here is exactly what you have in the game but have you tried to keep the condition on one line? If that alone doesnt help, maybe try encasing the condition in parentheses. I'm not sure how Yanfly parses the script in the notetags but by the examples on the plugin page it looks like it considers every new line to be new condition.
 

Kes

Veteran
Veteran
Joined
Aug 3, 2012
Messages
22,512
Reaction score
11,998
First Language
English
Primarily Uses
RMVXA
It's always helpful if you give a link to the web page where you got the plugin so that people don't have to hunt for it.

[move]JavaScript/Plugin Support[/move]
 

FleshToDust

Veteran
Veteran
Joined
Jul 10, 2017
Messages
800
Reaction score
2,905
First Language
English
Primarily Uses
RMMV
Really strange. I load up MV today and it works... I don't know why it didn't work yesterday and it works today but I'm happy it works.
 

Latest Threads

Latest Profile Posts

Us:
"This game is awesome! I wish there are more games like this in the future."
Also us:
"I hate how games stopped being original and start copying other successful games."
Should've done this a few days ago but...
PRI_200136808.jpg
Rest in Peace, Sir Clive Sinclair
1940 - 2021
Entrepreneur, Technologist, Father of the Modern British Computing Industry, and protagonist of Legend of ZUN.

Without you, England's games and tech industry wouldn't be where it is.
Woof, haven't touched any game-making elements in a couple of weeks I think.
Doing a thing in MV...

R3PuRjF.png

Forum statistics

Threads
115,285
Messages
1,088,627
Members
149,905
Latest member
Raizus
Top