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.
[RESOLVED] Level and attribute Requirements

0 Members and 1 Guest are viewing this topic.

**
Rep: +0/-0Level 86
So here's the thing, I'm making a game with RMXP, where i need to make the weapons and armor and stuff require a level of the user. So that a level 4 can't use a level 5 weapon. And also that if the chars strength is 25 he can't use a weapon that requires 26 Strength.

I don't know if there's a way by making events or anything, but script would be much easier,,,, kinda..

Maybe a little hard? ::)
but if you guys could help me with that, that would be terrific! ;D
« Last Edit: October 12, 2007, 11:20:10 PM by SirMagus »


********
Hungry
Rep:
Level 96
Mawbeast
2013 Best ArtistParticipant - GIAW 11Secret Santa 2013 ParticipantFor the great victory in the Breakfast War.2012 Best Game Creator (Non-RM Programs)~Bronze - GIAW 9Project of the Month winner for December 2009Project of the Month winner for August 20082011 Best Game Creator (Non RM)Gold - GIAW Halloween
first off, this should be in requests
and you should have the correct tags
(falcon's gna bitch slap you for that one :P)

anyways, I can think of one way that I would do it
I'll see what I can do
no guarantees

FCF3a A+ C- D H- M P+ R T W- Z- Sf RLCT a cmn+++ d++ e++ f h+++ iw+++ j+ p sf+
Follow my project: MBlok | Find me on: Bandcamp | Twitter | Patreon

**
Rep: +0/-0Level 86
thnx dude, I appreciate it  ;D


*
? ? ? ? ? ? ? ? ? The nice kind of alien~
Rep:
Level 92
Martian - Occasionally kind
*moves*

@NAMKCOR: Do you leave the request open for other scripters to take?

**
Rep: +0/-0Level 86
what do you mean? so if someone makes the script it will be available for all? if you meant that, then yes. Why not? =P


*
? ? ? ? ? ? ? ? ? The nice kind of alien~
Rep:
Level 92
Martian - Occasionally kind
Oh no.
It was whether NAMKCOR will do the request or not. It's just so multiple scripters don't do the same thing.

*
A Random Custom Title
Rep:
Level 96
wah
Hmmm.... Just an idea but this would be done with arrays, right? And just comparing the actor's level to the level set in the array? :P

***
Rep:
Level 87
Things we fear the most have already happened 2 us
Yes,,please,,someone make this script

It's gonna be very useful
"If u'r about to die,,then think of how good ur life has treated u up to this point.  On the
other hand,,if life hasn't treated u good up to this point,,then take joy in the fact that
it's not going to bother u for much longer."

********
Hungry
Rep:
Level 96
Mawbeast
2013 Best ArtistParticipant - GIAW 11Secret Santa 2013 ParticipantFor the great victory in the Breakfast War.2012 Best Game Creator (Non-RM Programs)~Bronze - GIAW 9Project of the Month winner for December 2009Project of the Month winner for August 20082011 Best Game Creator (Non RM)Gold - GIAW Halloween
yeah I'll take care of it
it'll be a lot of array work, but I'll do it

FCF3a A+ C- D H- M P+ R T W- Z- Sf RLCT a cmn+++ d++ e++ f h+++ iw+++ j+ p sf+
Follow my project: MBlok | Find me on: Bandcamp | Twitter | Patreon

**
Rep: +0/-0Level 86
Thnx Alot, NAMKCOR! You're a real pal!  ;D


********
Hungry
Rep:
Level 96
Mawbeast
2013 Best ArtistParticipant - GIAW 11Secret Santa 2013 ParticipantFor the great victory in the Breakfast War.2012 Best Game Creator (Non-RM Programs)~Bronze - GIAW 9Project of the Month winner for December 2009Project of the Month winner for August 20082011 Best Game Creator (Non RM)Gold - GIAW Halloween
np
I might just use it myself in a game

just change the tag from AVAILABLE to RESERVED k?

FCF3a A+ C- D H- M P+ R T W- Z- Sf RLCT a cmn+++ d++ e++ f h+++ iw+++ j+ p sf+
Follow my project: MBlok | Find me on: Bandcamp | Twitter | Patreon

**
Rep: +0/-0Level 86
sure thing ^^

*clicks and writes*

done =P


********
Hungry
Rep:
Level 96
Mawbeast
2013 Best ArtistParticipant - GIAW 11Secret Santa 2013 ParticipantFor the great victory in the Breakfast War.2012 Best Game Creator (Non-RM Programs)~Bronze - GIAW 9Project of the Month winner for December 2009Project of the Month winner for August 20082011 Best Game Creator (Non RM)Gold - GIAW Halloween
quick question
this will delay the script slightly, but would you like me to redesign the equip menu as well?
so that when you select a weapon/armor it'll show the stats and stuff as well as required info
(I only ask because it's possible to put that info in the description etc...)

edit: I'm making a custom equip menu but am going to provide it seperately so you aren't required to use it.
the script is simpler than I thought and should be done by the end of the day

I hope you don't mind filling in arrays, cuz that's the only way I could think of doing this
« Last Edit: October 07, 2007, 07:42:20 PM by NAMKCOR »

FCF3a A+ C- D H- M P+ R T W- Z- Sf RLCT a cmn+++ d++ e++ f h+++ iw+++ j+ p sf+
Follow my project: MBlok | Find me on: Bandcamp | Twitter | Patreon

**
Rep: +0/-0Level 86
You mean that you will make a custom window for weapon/armor creation menu?
in that case, that would be AWESOME. things would get much better


********
Hungry
Rep:
Level 96
Mawbeast
2013 Best ArtistParticipant - GIAW 11Secret Santa 2013 ParticipantFor the great victory in the Breakfast War.2012 Best Game Creator (Non-RM Programs)~Bronze - GIAW 9Project of the Month winner for December 2009Project of the Month winner for August 20082011 Best Game Creator (Non RM)Gold - GIAW Halloween
not for weapon/armor creation
I mean a custom Scene_Equip
the script itself is done, but I'm still working on a custom Scene_Equip that lets the player see the weapons' requirements

FCF3a A+ C- D H- M P+ R T W- Z- Sf RLCT a cmn+++ d++ e++ f h+++ iw+++ j+ p sf+
Follow my project: MBlok | Find me on: Bandcamp | Twitter | Patreon

**
Rep: +0/-0Level 86
oh yeaaaah! of course.  Cool! I don't know how you do it, but it's awesome  ;D it's... Funky  :blizj:
I like the idea.


********
Hungry
Rep:
Level 96
Mawbeast
2013 Best ArtistParticipant - GIAW 11Secret Santa 2013 ParticipantFor the great victory in the Breakfast War.2012 Best Game Creator (Non-RM Programs)~Bronze - GIAW 9Project of the Month winner for December 2009Project of the Month winner for August 20082011 Best Game Creator (Non RM)Gold - GIAW Halloween
I gotta come up with a decent design for the Equip menu, so the script may be delayed till tomorrow or so

's that ok?

FCF3a A+ C- D H- M P+ R T W- Z- Sf RLCT a cmn+++ d++ e++ f h+++ iw+++ j+ p sf+
Follow my project: MBlok | Find me on: Bandcamp | Twitter | Patreon

**
Rep: +0/-0Level 86
Sure, but will there be a function to load your own background display in the equip menu by putting a picture file somewhere?
I mean if you made a function that loads a custom picture file in the background by making the name of the file for example "eq_back" or something? if you understand what I'm talking about =P


********
Hungry
Rep:
Level 96
Mawbeast
2013 Best ArtistParticipant - GIAW 11Secret Santa 2013 ParticipantFor the great victory in the Breakfast War.2012 Best Game Creator (Non-RM Programs)~Bronze - GIAW 9Project of the Month winner for December 2009Project of the Month winner for August 20082011 Best Game Creator (Non RM)Gold - GIAW Halloween
do you mean a windowskin or replacing the background behind the windowskin
cuz the menu's probably gna take up the whole screen

FCF3a A+ C- D H- M P+ R T W- Z- Sf RLCT a cmn+++ d++ e++ f h+++ iw+++ j+ p sf+
Follow my project: MBlok | Find me on: Bandcamp | Twitter | Patreon

**
Rep: +0/-0Level 86
You're making it custom, right? so if you could create a way to make us load our own pictures to replace you custom look if needed.
You don't have to, but it would improve. I should be happy for what i get =P
I really appreciate your work =)
« Last Edit: October 07, 2007, 11:11:04 PM by SirMagus »


********
Hungry
Rep:
Level 96
Mawbeast
2013 Best ArtistParticipant - GIAW 11Secret Santa 2013 ParticipantFor the great victory in the Breakfast War.2012 Best Game Creator (Non-RM Programs)~Bronze - GIAW 9Project of the Month winner for December 2009Project of the Month winner for August 20082011 Best Game Creator (Non RM)Gold - GIAW Halloween
you can't load pictures to replace the way the windows are going to be arranged
the most you could do was change the windowskin

FCF3a A+ C- D H- M P+ R T W- Z- Sf RLCT a cmn+++ d++ e++ f h+++ iw+++ j+ p sf+
Follow my project: MBlok | Find me on: Bandcamp | Twitter | Patreon

**
Rep: +0/-0Level 86
Oh, ok  :-\
oh well, then it'll do without  :lol:


**
Rep: +0/-0Level 86
Hey, what's happening, haven't heard from you in days. lol


********
Hungry
Rep:
Level 96
Mawbeast
2013 Best ArtistParticipant - GIAW 11Secret Santa 2013 ParticipantFor the great victory in the Breakfast War.2012 Best Game Creator (Non-RM Programs)~Bronze - GIAW 9Project of the Month winner for December 2009Project of the Month winner for August 20082011 Best Game Creator (Non RM)Gold - GIAW Halloween
sorry, I got sidetracked by projects and finals :tpg:

fear not, it is on the way
sorry for the huge delay

FCF3a A+ C- D H- M P+ R T W- Z- Sf RLCT a cmn+++ d++ e++ f h+++ iw+++ j+ p sf+
Follow my project: MBlok | Find me on: Bandcamp | Twitter | Patreon

**
Rep: +0/-0Level 86
Nothing to worry about =P
If i was to do what you do, i would use years XD
Keep up the good work!  :lol:


********
Hungry
Rep:
Level 96
Mawbeast
2013 Best ArtistParticipant - GIAW 11Secret Santa 2013 ParticipantFor the great victory in the Breakfast War.2012 Best Game Creator (Non-RM Programs)~Bronze - GIAW 9Project of the Month winner for December 2009Project of the Month winner for August 20082011 Best Game Creator (Non RM)Gold - GIAW Halloween

FCF3a A+ C- D H- M P+ R T W- Z- Sf RLCT a cmn+++ d++ e++ f h+++ iw+++ j+ p sf+
Follow my project: MBlok | Find me on: Bandcamp | Twitter | Patreon

**
Rep: +0/-0Level 86
Awesome =D now I'll test it out.
But do i have to edit a part of the script for every weapon i set a requirement for?


********
Hungry
Rep:
Level 96
Mawbeast
2013 Best ArtistParticipant - GIAW 11Secret Santa 2013 ParticipantFor the great victory in the Breakfast War.2012 Best Game Creator (Non-RM Programs)~Bronze - GIAW 9Project of the Month winner for December 2009Project of the Month winner for August 20082011 Best Game Creator (Non RM)Gold - GIAW Halloween
you just need to add the requirements to the arrays
the instructions are included

change the tags btw

FCF3a A+ C- D H- M P+ R T W- Z- Sf RLCT a cmn+++ d++ e++ f h+++ iw+++ j+ p sf+
Follow my project: MBlok | Find me on: Bandcamp | Twitter | Patreon

**
Rep: +0/-0Level 86
I'm a noob at this.
*changes*
Like this?


********
Hungry
Rep:
Level 96
Mawbeast
2013 Best ArtistParticipant - GIAW 11Secret Santa 2013 ParticipantFor the great victory in the Breakfast War.2012 Best Game Creator (Non-RM Programs)~Bronze - GIAW 9Project of the Month winner for December 2009Project of the Month winner for August 20082011 Best Game Creator (Non RM)Gold - GIAW Halloween
yep
so, working out for ya?

FCF3a A+ C- D H- M P+ R T W- Z- Sf RLCT a cmn+++ d++ e++ f h+++ iw+++ j+ p sf+
Follow my project: MBlok | Find me on: Bandcamp | Twitter | Patreon

**
Rep: +0/-0Level 86
arh...
problems.. should i insert something where is says "nil" ?
If so, what should i insert?


********
Hungry
Rep:
Level 96
Mawbeast
2013 Best ArtistParticipant - GIAW 11Secret Santa 2013 ParticipantFor the great victory in the Breakfast War.2012 Best Game Creator (Non-RM Programs)~Bronze - GIAW 9Project of the Month winner for December 2009Project of the Month winner for August 20082011 Best Game Creator (Non RM)Gold - GIAW Halloween
just insert stuff into the arrays, like the instructions say
see the line that says

Code: [Select]
#===============================================
# DO NOT EDIT BELOW THIS LINE UNLESS YOU KNOW WHAT YOU ARE DOING
#===============================================

you don't need to do ANYTHING beyond that line
just imput the values you want into the arrays above that line
(as per the instructions)

FCF3a A+ C- D H- M P+ R T W- Z- Sf RLCT a cmn+++ d++ e++ f h+++ iw+++ j+ p sf+
Follow my project: MBlok | Find me on: Bandcamp | Twitter | Patreon

***
Rep:
Level 87
Things we fear the most have already happened 2 us
SirMagus,,follow this step by step...

1) Add the two scripts that NAMKCOR made,,add them above Main.

Name the first script you added: ERSv1.0
Name the second script you added: Scene_Equip

2) Test play your game, and go to the EQUIP screen.  You MIGHT get an error at this point.  If that happens then,,find lines (8-9 I think) in Scene_Equip script [which should be just above Main]and modify those lines
from:
    self.contents.font.name = $fontface
    self.contents.font.size = $fontsize
to:
    self.contents.font.name = "Arial"
    self.contents.font.size = 24

3) To set the requirements,,you have to modify the ERSv1.0

 example:       @weapon_level_req[0, 3, 10]
 means that:    weapon ID# 1 has no (or 0) level requirement, weapon ID# 2 has a requirement of level 3,,and weapon ID#3 has a requirement of level 10
 
*Note* The array goes in order @weapon_level_req[LvReq_of_weaponID#1, LvReq_of_weaponID#2 ,LvReq_of_weaponID#3, LvReq_of_weaponID#4, LvReq_of_weaponID#5...]

So you modify (line 66 I think) of the ERSv1.0 script to what you want/need
Further lines set other requirements such as strength and dexterity required.

Hope that helps....
« Last Edit: October 13, 2007, 02:12:59 AM by djkdjl »
"If u'r about to die,,then think of how good ur life has treated u up to this point.  On the
other hand,,if life hasn't treated u good up to this point,,then take joy in the fact that
it's not going to bother u for much longer."

********
Hungry
Rep:
Level 96
Mawbeast
2013 Best ArtistParticipant - GIAW 11Secret Santa 2013 ParticipantFor the great victory in the Breakfast War.2012 Best Game Creator (Non-RM Programs)~Bronze - GIAW 9Project of the Month winner for December 2009Project of the Month winner for August 20082011 Best Game Creator (Non RM)Gold - GIAW Halloween
SirMagus,,follow this step by step...

1) Add the two scripts that NAMKCOR made,,add them above Main.

Name the first script you added: ERSv1.0
Name the second script you added: Scene_Equip

2) Test play your game, and go to the EQUIP screen.  You MIGHT get an error at this point.  If that happens then,,find lines (8-9 I think) in Scene_Equip script [which should be just above Main]and modify those lines
from:
    self.contents.font.name = $fontface
    self.contents.font.size = $fontsize
to:
    self.contents.font.name = "Arial"
    self.contents.font.size = 24


3) To set the requirements,,you have to modify the ERSv1.0

 example:       @weapon_level_req[0, 3, 10]
 means that:    weapon ID# 1 has no (or 0) level requirement, weapon ID# 2 has a requirement of level 3,,and weapon ID#3 has a requirement of level 10
 
*Note* The array goes in order @weapon_level_req[LvReq_of_weaponID#1, LvReq_of_weaponID#2 ,LvReq_of_weaponID#3, LvReq_of_weaponID#4, LvReq_of_weaponID#5...]

So you modify (line 64 I think) of the ERSv1.0 script to what you want/need
Further lines set other requirements such as strength and dexterity required.

Hope that helps....

yeah, I always get that error with new scripts
I use Blizzard's Tons of Addons - Shaded Text addon to solve that problem all the time

also, make sure Scene_Equip goes below ERSv1.00

otherwise, you've got it right

FCF3a A+ C- D H- M P+ R T W- Z- Sf RLCT a cmn+++ d++ e++ f h+++ iw+++ j+ p sf+
Follow my project: MBlok | Find me on: Bandcamp | Twitter | Patreon

**
Rep: +0/-0Level 86
Thnx alot!
Just what i needed!


***
Rep:
Level 87
Things we fear the most have already happened 2 us
IF you are still getting an error that says something about,,nil,,or some nonsense like that,,then that is because your array is let's say only 5 items long,,

but the weapon you are trying to equip is like number 23 in your database weapons list.

So obviously your array would have to be AT LEAST 23 items long.
"If u'r about to die,,then think of how good ur life has treated u up to this point.  On the
other hand,,if life hasn't treated u good up to this point,,then take joy in the fact that
it's not going to bother u for much longer."

**
Rep: +0/-0Level 86
but i'm gonna have LOADS of weapons and armors... and i mean LOADS..
For now i have 21 Blades, and then i'll have to make swords, bows and so on.
LOL can the script handle it? XD

And also,, NAMKCOR, on the topic you posted with the script..
you wrote the requester was SirMagnus XD
Many people make that Mistake XD
Why? =P   lol, plz edit it to   SirMagus
Thnx
« Last Edit: October 13, 2007, 03:13:11 AM by SirMagus »


***
Rep:
Level 87
Things we fear the most have already happened 2 us
Yup,,it should.  The works awesome.


LoL imagine putting requirements for some 999 weapons,,LoL!  That would be one loooooong array.
"If u'r about to die,,then think of how good ur life has treated u up to this point.  On the
other hand,,if life hasn't treated u good up to this point,,then take joy in the fact that
it's not going to bother u for much longer."

********
Hungry
Rep:
Level 96
Mawbeast
2013 Best ArtistParticipant - GIAW 11Secret Santa 2013 ParticipantFor the great victory in the Breakfast War.2012 Best Game Creator (Non-RM Programs)~Bronze - GIAW 9Project of the Month winner for December 2009Project of the Month winner for August 20082011 Best Game Creator (Non RM)Gold - GIAW Halloween
IF you are still getting an error that says something about,,nil,,or some nonsense like that,,then that is because your array is let's say only 5 items long,,

but the weapon you are trying to equip is like number 23 in your database weapons list.

So obviously your array would have to be AT LEAST 23 items long.

the nil error is because if nil was a value in the array when you went to equip an item
it would crash
so I put that message in to let the maker know "hey, you need to fix up your arrays"

but i'm gonna have LOADS of weapons and armors... and i mean LOADS..
For now i have 21 Blades, and then i'll have to make swords, bows and so on.
LOL can the script handle it? XD

And also,, NAMKCOR, on the topic you posted with the script..
you wrote the requester was SirMagnus XD
Many people make that Mistake XD
Why? =P   lol, plz edit it to   SirMagus
Thnx

yes, the script can handle it, you can use as many elements in the arrays as you need, you just need to keep adding commas and values inside the brackets (no comma after the last value)

yeah, they will be long arrays, I tried to find an easier, neater, way to get the job done
but it had to be done with arrays if you wanted every last weapon/armor to be included

and yeah, I noticed that earlier and fixed it up right away

FCF3a A+ C- D H- M P+ R T W- Z- Sf RLCT a cmn+++ d++ e++ f h+++ iw+++ j+ p sf+
Follow my project: MBlok | Find me on: Bandcamp | Twitter | Patreon

**
Rep: +0/-0Level 86
Thnx, and awesome service here =D


********
Hungry
Rep:
Level 96
Mawbeast
2013 Best ArtistParticipant - GIAW 11Secret Santa 2013 ParticipantFor the great victory in the Breakfast War.2012 Best Game Creator (Non-RM Programs)~Bronze - GIAW 9Project of the Month winner for December 2009Project of the Month winner for August 20082011 Best Game Creator (Non RM)Gold - GIAW Halloween
no problems, 's what I do

FCF3a A+ C- D H- M P+ R T W- Z- Sf RLCT a cmn+++ d++ e++ f h+++ iw+++ j+ p sf+
Follow my project: MBlok | Find me on: Bandcamp | Twitter | Patreon