RMRK is retiring.
Registration is disabled. The site will remain online, but eventually become a read-only archive. More information.

RMRK.net has nothing to do with Blockchains, Cryptocurrency or NFTs. We have been around since the early 2000s, but there is a new group using the RMRK name that deals with those things. We have nothing to do with them.
NFTs are a scam, and if somebody is trying to persuade you to buy or invest in crypto/blockchain/NFT content, please turn them down and save your money. See this video for more information.
Help with NPC and item.

0 Members and 1 Guest are viewing this topic.

**
Rep:
Level 87
How can I make it so that an NPC will give a character and item BUT only if the character is a certain level? If not, can I set the requirement level for a weapon? (claw, for instance)

pokeball :)OfflineMale
********
Cheese
Rep:
Level 95
?
hmm...maybe you can make the character learn a skill on that level he needs to get the item. then use a simple conditional branch set for actor-Skill___< what he learns.
Watch out for: HaloOfTheSun

*
Rep:
Level 97
2014 Most Unsung Member2014 Best RPG Maker User - Engine2013 Best RPG Maker User (Scripting)2012 Most Mature Member2012 Favorite Staff Member2012 Best RPG Maker User (Scripting)2012 Best MemberSecret Santa 2012 ParticipantProject of the Month winner for July 20092011 Best Use of Avatar and Signature Space2011 Best RPG Maker User (Scripting)2011 Most Mature Member2011 Favourite Staff Member2011 Best Veteran2010 Most Mature Member2010 Favourite Staff Member
If not, just do this:

Control Variables: [Character Level] = Arshes' level  
Conditional Branch: Variable [Character Level] >= 12
     Change Items: Iron Sword + 1
Branch END

Coloured stuff is what you edit.
Red = Actor Name, Blue = Level you need to wield the item, Green = item in question

That would do it.

**
Rep:
Level 87
I don't get quite what you mean...how can a skill affect equiping weapons?

And about the code part algebra, where do I put in the code if I want to use it?

pokeball :)OfflineMale
********
Cheese
Rep:
Level 95
?
you dont put the code with copy and paste, open the event and do as he did.


also algebra...I never knew varibles can be set to character's level...My second thing learned from you. =D
Watch out for: HaloOfTheSun

**
Rep:
Level 87
How do I get to control variables? I can't find anything like that in the event screen...

*
Rep:
Level 97
2014 Most Unsung Member2014 Best RPG Maker User - Engine2013 Best RPG Maker User (Scripting)2012 Most Mature Member2012 Favorite Staff Member2012 Best RPG Maker User (Scripting)2012 Best MemberSecret Santa 2012 ParticipantProject of the Month winner for July 20092011 Best Use of Avatar and Signature Space2011 Best RPG Maker User (Scripting)2011 Most Mature Member2011 Favourite Staff Member2011 Best Veteran2010 Most Mature Member2010 Favourite Staff Member
It's just eventing, so you would put it in at the place where the NPC would give you the item if you were the correct level. It's not like a script or anything.


And you should be posting in Tutorials for problems like this:

Read the sticky for what should be posted here.

http://rmrk.net/index.php/topic,12506.0.html


And an event is what your NPC is. That big screen with a graphic in the bottom left - There is a huge white window to the left. You right click that and a menu pops up which shows a list of possible event commands. The code I posted uses three event commands: Change Items, Control Variable, and Conditional Branch. You create an event by right-clicking on any square on the map. I hate to toot my own horn, but I made a tutorial (incomplete) on event commands which I hope will help you with some of the basics. Zxmelee also made an events tutorial which it might be helpful to check out.

Zxmelee:
http://rmrk.net/index.php/topic,157.0.html
Mine:
http://rmrk.net/index.php/topic,14229.0.html


@Nouman: that's actually a compliment - it's hard to come across anything you don't know about RMXP  ;8
« Last Edit: March 31, 2007, 02:02:02 AM by modern algebra »

**
Rep:
Level 87
Wait-so I click on the event of the NPC giving the item, and there is a "Control Variables" event in there?

pokeball :)OfflineMale
********
Cheese
Rep:
Level 95
?
yes under control switches.
Watch out for: HaloOfTheSun

**
Rep:
Level 87
Under the Event Commands, right? I can't find it...


**
Rep:
Level 87
Oh dam. So sorry I forgot to tell, I am using version 2000. Thanks for the picture though it helps.

*
Rep:
Level 97
2014 Most Unsung Member2014 Best RPG Maker User - Engine2013 Best RPG Maker User (Scripting)2012 Most Mature Member2012 Favorite Staff Member2012 Best RPG Maker User (Scripting)2012 Best MemberSecret Santa 2012 ParticipantProject of the Month winner for July 20092011 Best Use of Avatar and Signature Space2011 Best RPG Maker User (Scripting)2011 Most Mature Member2011 Favourite Staff Member2011 Best Veteran2010 Most Mature Member2010 Favourite Staff Member
In 2k it is called Change Variable:



I should've known you were using 2k - The Enemy Encounter post was by you too. Silly me. ;D
« Last Edit: March 31, 2007, 02:14:38 AM by modern algebra »

**
Rep:
Level 87
Oh thanks. So the screen pops up, but I'm not sure what to click from there.

(BTW thanks for sticking with me, I know I'm a noob  :)

*
Rep:
Level 97
2014 Most Unsung Member2014 Best RPG Maker User - Engine2013 Best RPG Maker User (Scripting)2012 Most Mature Member2012 Favorite Staff Member2012 Best RPG Maker User (Scripting)2012 Best MemberSecret Santa 2012 ParticipantProject of the Month winner for July 20092011 Best Use of Avatar and Signature Space2011 Best RPG Maker User (Scripting)2011 Most Mature Member2011 Favourite Staff Member2011 Best Veteran2010 Most Mature Member2010 Favourite Staff Member
Those are the options you have. Click on the three dots next to One to name your variables. Click on the down arrows to change hero






**
Rep:
Level 87
Which down arrows?

*
Rep:
Level 97
2014 Most Unsung Member2014 Best RPG Maker User - Engine2013 Best RPG Maker User (Scripting)2012 Most Mature Member2012 Favorite Staff Member2012 Best RPG Maker User (Scripting)2012 Best MemberSecret Santa 2012 ParticipantProject of the Month winner for July 20092011 Best Use of Avatar and Signature Space2011 Best RPG Maker User (Scripting)2011 Most Mature Member2011 Favourite Staff Member2011 Best Veteran2010 Most Mature Member2010 Favourite Staff Member
The one next to the white bar which has Alex in it

**
Rep:
Level 87
oooh, sorry, I didn't see that.  So which part should I change to level 10 (the required level I want the hero to be)?

*
Rep:
Level 97
2014 Most Unsung Member2014 Best RPG Maker User - Engine2013 Best RPG Maker User (Scripting)2012 Most Mature Member2012 Favorite Staff Member2012 Best RPG Maker User (Scripting)2012 Best MemberSecret Santa 2012 ParticipantProject of the Month winner for July 20092011 Best Use of Avatar and Signature Space2011 Best RPG Maker User (Scripting)2011 Most Mature Member2011 Favourite Staff Member2011 Best Veteran2010 Most Mature Member2010 Favourite Staff Member
that is not in the control variables part. You are done with the Control Variables part now.

For the level thing, you have to go to Fork Conditions, which is an event command in the third tab, second column, 5th row. In that screen, you have to click on variable, set it to the variable you made. Then change the word from same to above, then change the number 0 to the level you want the hero to be

**
Rep:
Level 87
hmmm, okay, I did that, but the NPC still gives it to me if I am level 1

*
Rep:
Level 97
2014 Most Unsung Member2014 Best RPG Maker User - Engine2013 Best RPG Maker User (Scripting)2012 Most Mature Member2012 Favorite Staff Member2012 Best RPG Maker User (Scripting)2012 Best MemberSecret Santa 2012 ParticipantProject of the Month winner for July 20092011 Best Use of Avatar and Signature Space2011 Best RPG Maker User (Scripting)2011 Most Mature Member2011 Favourite Staff Member2011 Best Veteran2010 Most Mature Member2010 Favourite Staff Member
You have to put the Change Items command inside the Fork Conditions. So ABOVE the ELSE and BELOW the FORK

**
Rep:
Level 87
Ugh, is this what I'm supposed to be doing?:

**
Rep:
Level 87
Forget that post...I think I'm missing on something, this is insanely annoying......
Is there another way to make my level requirement 10 to wear the claw?

*
Rep:
Level 97
2014 Most Unsung Member2014 Best RPG Maker User - Engine2013 Best RPG Maker User (Scripting)2012 Most Mature Member2012 Favorite Staff Member2012 Best RPG Maker User (Scripting)2012 Best MemberSecret Santa 2012 ParticipantProject of the Month winner for July 20092011 Best Use of Avatar and Signature Space2011 Best RPG Maker User (Scripting)2011 Most Mature Member2011 Favourite Staff Member2011 Best Veteran2010 Most Mature Member2010 Favourite Staff Member
To first post:
that is... not a picture. This is what it should look like:




Anyway, I have to go now, I'll chack back when I can for a reply, but hopefully you can figure it out from here. My advice is to upgrade to Xp or at least 2k3. There are lots of useful tuts that will help you figure rpg maker out for both of those makers. For 2000, there is really nothing. What we just did is a 3 second process if you know events.

To second post:
Nothing that I could explain before I leave. You would, firstly have to use the same structure. The variable and the conditional branch (just the con. branch would be set to below this time). You would have to put them in a common event set on paralell process, and you would need an additional conditional branch wwhich checked if he was wearing the armor and then a de-equip if he is.