Custom Equip Conditions v1.01 by AdiktuzMiko (get free items after loaded a game)

Fridjah

Veteran
Veteran
Joined
Jan 13, 2015
Messages
155
Reaction score
7
First Language
French
Primarily Uses
RMVXA
Hello !


Script :





Quick line : I get extra items after loaded a game.


Well, I suddenly realize that I had 2x "Armor -> 046:Wooden buckler" in my inventory at the begining of my game that is impossible to get so early.


Especialy when it's inside a chest.


This is how the problem comes out:


Nothing happend as long the game is not loaded. I mean, you can save and continue to play as normal


without to get extra armors. But if you quit and load the game .... BANG !


I am using notetag on many armors and weapons:


 <start_custom_req>
   actor.level > 2
 <end_custom_req>


But I only getting the same item after loaded a game.


Of course, I started an all fresh new project with only this script inside !


In a new project, I discovered it was not all the items in the data base. I dont know if I was "lucky" to find the only one, cause I dident tried all the armor list.


- In my personal project, I get 2x "Armor -> 046:Wooden buckler"


- In a new one, using notetag only on the " 046:Wooden buckler" makes me to get it only once.


I tried to put the same notetag on "Armor -> 047:Iron buckler" or "Armor -> 045:Dragon shield/targe" but nothing strange happend...


If someone can help me, because my only way to avoid it, is to command " -2 Wooden buckler " after loading and memorize with variable if the player got the wooden bucker in the chest to avoid to delet the legit one ... the messsssss.


Thanks in advance.
 
Last edited by a moderator:

Engr. Adiktuzmiko

Chemical Engineer, Game Developer, Using BlinkBoy'
Veteran
Joined
May 15, 2012
Messages
14,682
Reaction score
3,003
First Language
Tagalog
Primarily Uses
RMVXA
It's weird, my script shouldn't actually have anything to do with adding/removing items... Unless you're trying to force equip maybe that item and the actor can't use it and somehow triggers 2 times or something. 
 
Last edited by a moderator:

Sixth

Veteran
Veteran
Joined
Jul 4, 2014
Messages
2,162
Reaction score
823
First Language
Hungarian
Primarily Uses
RMVXA
I suppose, if your actors are equipped with Wooden Buckler in the database (their starting equipment), but they can't actually use them (because the database only checks for the built-in conditions, not the ones from Adik's script), those will get unequipped and put in the inventory, at least on a new game. 


But that should not happen if you load a game.


Actually, I just tested it, and it doesn't happen for me. I can save/load a game just fine.
 

Engr. Adiktuzmiko

Chemical Engineer, Game Developer, Using BlinkBoy'
Veteran
Joined
May 15, 2012
Messages
14,682
Reaction score
3,003
First Language
Tagalog
Primarily Uses
RMVXA
can you upload the project where this happens? I also can't reproduce your problem... I never got two items when I load a game with my script on it.
 
Last edited by a moderator:

Fridjah

Veteran
Veteran
Joined
Jan 13, 2015
Messages
155
Reaction score
7
First Language
French
Primarily Uses
RMVXA
Hello, thanks to answered.


I think Sixth is right.


But what surprising me is that the actor has no equipment on him at the begining.


Does the script affect all the data base regardless if the actor is in the team ?


What is strange, is that if I start a new project, only actor 001 Eric losing the wooden buckler. So why in my personal


project I have 2 of them ? ...


I setted all the basic actors with "None" equipements, and I dont get my problem anymore.


Just hope is not a coïncidence ...


By the way, very helpfull script AdiktuzMiko and happy to found it ! (°_-)
 

Engr. Adiktuzmiko

Chemical Engineer, Game Developer, Using BlinkBoy'
Veteran
Joined
May 15, 2012
Messages
14,682
Reaction score
3,003
First Language
Tagalog
Primarily Uses
RMVXA
The script only runs when you equip an item so unless the game is trying to equip something the script shouldn't be interfering, so if you are sure that only Eric equips it (but couldn't due to it being tagged as for level 2) then it should only be removing that one item.
 
Last edited by a moderator:

Fridjah

Veteran
Veteran
Joined
Jan 13, 2015
Messages
155
Reaction score
7
First Language
French
Primarily Uses
RMVXA
And why the game should try to equip something only when a game is loaded ?


- My game starts with a cut scene playing with only 1 actor with nothing equiped. "actor 11"


- After the scene a save is asking.


- If I load it, I've got the 2x Wooden buckler that I dont know where they came from.


In the actor11 notetag I have a memo that is for a Yanfly equip script.


starting gear: 6, 46, 67, 70, 71, 73         (It's not activated, right ? To activate I have to use <...>, right ?)


The "46" is one wooden buckler, but if the notetag is not active, no reason to care.


My actor11 is still the same. I just removed equip of useless actors and I dont get items anymore.
 

Engr. Adiktuzmiko

Chemical Engineer, Game Developer, Using BlinkBoy'
Veteran
Joined
May 15, 2012
Messages
14,682
Reaction score
3,003
First Language
Tagalog
Primarily Uses
RMVXA
IDK, and I cannot reproduce your problem... It could be that one of the other scripts in that project is running something that conflicts with that script. 


So it would really help if you could upload that project which has the problem.
 
Last edited by a moderator:

Fridjah

Veteran
Veteran
Joined
Jan 13, 2015
Messages
155
Reaction score
7
First Language
French
Primarily Uses
RMVXA
Thank you Adiktuzmiko !


At the moment it's ok, I have to finish my demo before jully the 1st.


As long I dont get other weired stuffs that's ok for me, or I'll do deeper check.


I'll let you know.


Thank you
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

Don't forget, aspiring writers: Personality isn't what your characters do, it is WHY they do it.
Hello! I would like to know if there are any pluggings or any way to customize how battles look?
I was thinking that when you start the battle for it to appear the eyes of your characters and opponents sorta like Ace Attorney.
Sadly I don't know how that would be possible so I would be needing help! If you can help me in any way I would really apreciate it!
The biggest debate we need to complete on which is better, Waffles or Pancakes?
rux
How is it going? :D
Day 9 of giveaways! 8 prizes today :D

Forum statistics

Threads
106,050
Messages
1,018,548
Members
137,835
Latest member
yetisteven
Top