Npc wont give item after beating him

PuppetBlaster

Newbie :) and proud of it
Veteran
Joined
Aug 14, 2015
Messages
60
Reaction score
1
First Language
English
Primarily Uses
i have it set where you beat this guy he give you a weaon depending on your class but i test it and once i beat him he wont give the weapon can any one help me with this plz ?

Evil Professor jack.png

Evil Professor jack2.png
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,434
Reaction score
7,713
First Language
German
Primarily Uses
RMMV
What exactly happens if you activate the event (which texts do you see etc) and what is the second page of the event?


And why are you using both erase event and a switch to a different page? that is like wanting to install two steerings into a car - only one of them should be used, depending on what exactly you want to happen with the event (erase event will repeat it whenever the player reenters the map)
 

PuppetBlaster

Newbie :) and proud of it
Veteran
Joined
Aug 14, 2015
Messages
60
Reaction score
1
First Language
English
Primarily Uses
yea i didnt relize it lol but theres is no second page just one page it just wont give the item i never had that problem in ace though just mv
 

10kk

Parallel Process irl
Veteran
Joined
Apr 10, 2013
Messages
209
Reaction score
76
First Language
English
Primarily Uses
RMMV
Can you explain what happens rather than your intended result? (Does the fight process) Is your even page 2 blank? (if not please show).

I recreated this myself and had no problem, do you have any inventory-affecting plugins? Or are there other events on this map which affect this event?
 
Last edited by a moderator:

PuppetBlaster

Newbie :) and proud of it
Veteran
Joined
Aug 14, 2015
Messages
60
Reaction score
1
First Language
English
Primarily Uses
i have yanflys different main menu script and there is no page 2 and once yuou beat it hes supposed to give you a sword but once its all done i have it where he disapears like flash screen 120 frames and self switch just took out erase event but that shouldnt have affected it it should give the weapon that its supposed to give you but wont and its irritating the **** out of me been trying to figure out what the hell is wrong with it for 3 days so got tired and came here
 
Joined
Jul 17, 2015
Messages
586
Reaction score
316
First Language
English
Primarily Uses
Did you check the menu to see if the weapon was added to your inventory?

You can have the conditional branch to check the player's class in the "If Win" section, rather than having the pre-battle text and processing twice.
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,434
Reaction score
7,713
First Language
German
Primarily Uses
RMMV
SoulEaterXD, please answer the question we asked - we can't help you if you don't give the neccessary info.


Does the show text of the same branch as the change weapon command display, yes or no?


If yes, then the commands are executed and the problem is why you didn't get that weapon.


If not, the problem is in the logic structure.


Additionally, please check if all your scripts are up-to-date. Yanfly has updated several of the scripts from the launch pack due to bug, and you need to use the updated version, not the scripts that were originally included.
 

PuppetBlaster

Newbie :) and proud of it
Veteran
Joined
Aug 14, 2015
Messages
60
Reaction score
1
First Language
English
Primarily Uses
what do you mean "Does the show text of the same branch as the change weapon command display, yes or no?" how the heck am i supposed to answer a question i donteven know means like like does it show the change weapon thing after the texts are done ?
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,434
Reaction score
7,713
First Language
German
Primarily Uses
RMMV
what do you mean "Does the show text of the same branch as the change weapon command display, yes or no?" how the heck am i supposed to answer a question i donteven know means like like does it show the change weapon thing after the texts are done ?
In your screenshots of the event, directly after the "if win", you have placed two show text commands with text you wrote into the events.
Are these texts displayed after you won the battle, yes or no - that is what I was asking.


And have you checked for the script updates? Because I know one of yanfly's plugin had a bug about items that needs the update to be solved.
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,111
Reaction score
13,715
First Language
English
Primarily Uses
RMMV
You keep saying there's no second page, but your screenshots clearly show a second page. If you do have a second page and it has nothing on it, and NOTHING happens when you interact with the event, that is why. Delete the second page.


If your second page is already deleted, please tell us what DOES happen when you interact with the event? How far does it get? Do you get the "this isn't the last you'll see of me" text?


How do you know it's not giving the sword? If you go into your Items menu, into Weapons, is the sword there? Is it just that it's not there when you try to change equipment? That is a different issue - it means you ARE getting the sword, but your actor/class is not set up to use it.
 

PuppetBlaster

Newbie :) and proud of it
Veteran
Joined
Aug 14, 2015
Messages
60
Reaction score
1
First Language
English
Primarily Uses
everything works but when i go into the inventory to see if it gave the weapon the weapon does show up and the second page is to delete the event i have the self switch a is turned on,on the second page but yes everything work all texts i think the deleting of the event only thing thats wont work is the giving of the item ( been really sick with this cold i cant even hardly speak with out my voice cracking sorry for not replying )
 
Last edited by a moderator:

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,111
Reaction score
13,715
First Language
English
Primarily Uses
RMMV
So your event IS giving you the sword.  What is the problem then?
 

PuppetBlaster

Newbie :) and proud of it
Veteran
Joined
Aug 14, 2015
Messages
60
Reaction score
1
First Language
English
Primarily Uses
its not for some reason i was just testing it and i think i figured it out it has something to do with the choose class i have in the beggining you start with no class then you choose your class i have all characters on no class but i changed 1 to hero/warrior then i went and beat him and got the sword but thats kinda effed up that it would be database problems that dosent seem likeley does it ?
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,111
Reaction score
13,715
First Language
English
Primarily Uses
RMMV
We'd need to see screenshots to be sure.

But if you can see the weapon when you go to the Items menu after beating him, then he's definitely giving it to you.

If you just can't equip it, it means that either your actor or class is not set up to allow use of that type of weapon.

You can resolve this by adding a Trait either to the actor, or to the classes the player could choose, that you want to be able to wield a sword.  It would not make sense, for example, for a monk to have a sword, but it would make sense for a knight to have a sword.  So if your player can choose between those classes and you only want them to have the sword if they choose to be a knight, then you would add the sword weapon type to the Knight class and not the Monk class.

If you want them to have the sword regardless of which class they choose, then add the trait to the Actor instead of the class, or add it to ALL classes that they could choose.

They don't have to be that class to start with, but if they are not a class that can use the weapon, it will not show up in their equip screen.
 

PuppetBlaster

Newbie :) and proud of it
Veteran
Joined
Aug 14, 2015
Messages
60
Reaction score
1
First Language
English
Primarily Uses
well when you choose a class i looked in the main menu and it said i was that class ut wouldnt get the sword thanks for the help though ill just make it were tey can pick a class later in game sorry for the lack of decription i am not good with explaining things so yea lol
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,111
Reaction score
13,715
First Language
English
Primarily Uses
RMMV
I am not sure if there is a problem here or not.  The way you describe it, it sounds like it's working just as it's meant to.  If you think it should be doing something different, can you please show a screenshot of the following tabs, with the appropriate items selected:

- Actor tab, with the actor selected who you're trying to get to use the item

- Class tab, with the class selected that you choose later in the game (or whatever class you expect them to be at the time they get the sword)

- Weapons tab, with the weapon selected.

How to take a Screenshot:

You've heard people say to take a screenshot, but how does one take a screenshot of their game? Simple, while the game is running, hit the Prt Scr button on your keyboard, which is located right next to your F12 key. If you're using a laptop, you might have to use the Fn key in combination with the Prt Scr key to get it to work.


Now that you've pressed the button, it's time to paste this screenshot into an image editing software. If you don't have anything fancy such as Adobe Photoshop, GIMP or Paint.NET, no worries; you can use MS Paint instead. Open up your image editing software, create a new file, and then hit ctrl+v on your keyboard, or simply right click on the screen and select paste. This should instantly paste the screenshot into your image editing software. You can go ahead and crop the image to suit your needs, or if you don't even know what that means, you can just upload it as it is.


Save the image as a PNG, or if you really need to, as a high quality JPG.


How to upload the image to the forums
Now that you have you have an image on your computer you'd like to show us, how can you get it to show up on the forums? Firstly, you need to find an image hosting site, photobucket.com or imageshack.us are popular ones. If you have another image uploading website, great - use that one! Either way, upload it to the site, and then get the direct link. Don't get the resized link, or the thumbnail link, but the direct URL. You'll know you have the direct URL if the URL ends with the file extension you saved your image in (which will hopefully be .png).

Once you have this direct URL to your image, simply use the IMG tags in your forum post and paste the URL in between them. If this image is big, please leave the image in spoiler tags.


IMG tags:
 
Last edited by a moderator:

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,051
Messages
1,018,549
Members
137,837
Latest member
Dabi
Top