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.
Job specific Items

0 Members and 1 Guest are viewing this topic.

***
Rep:
Level 89
... I got nothing.
How do i make some items job specific (Like Shurikens for Ninjas)

I don't know if i need a script or not.

pokeball :)OfflineMale
********
Cheese
Rep:
Level 95
?
I don't understand the example...just give another?
Watch out for: HaloOfTheSun

****
Rep:
Level 88
Here's a good example Nouman. Shurikens and drinks.

*
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
Rep:
Level 96
&&&&&&&&&&&&&&&&&&&&&&&&&&&
GIAW 14: 2nd Place (Hard Mode)2013 Zero to Hero2013 Biggest Drama WhoreParticipant - GIAW 11Secret Santa 2013 ParticipantFor taking arms in the name of your breakfast.
How do i make some items job specific (Like  for Ninjas)

I don't know if i need a script or not.
I don't understand the example...just give another?

Either your joking, or your slow... I'm guessing, knowing you, joking.

Ok, no, you dont need a script, it's already in the maker.

And if your not joking, he means, you can equip a Shuriken to a ninja, but not a knight.
&&&&&&&&&&&&&&&&

*
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 Veteran2011 Favourite Staff Member2011 Most Mature Member2011 Best RPG Maker User (Scripting)2011 Best Use of Avatar and Signature Space2010 Most Mature Member2010 Favourite Staff Member
Go to Classes tab in Database. Check off Shurikens for all classes except Ninjas.

****
Rep:
Level 88
Either you don't understand what he means or I don't understand what he means...

I'll ask a question to try and understand which one.

Espon!

A - Do you mean limited items such as Shurikens, where one shot they go and you need to use another one (like an item I suppose) and drinks?

B - Or do you mean something else?

I need the answer to A myself.

***
Rep:
Level 89
... I got nothing.
Yes! A! i want it so that only my ninja class can use shurikens! If not, then they hurt themselves or something. Not a weapon but an item!

pokeball :)OfflineMale
********
Cheese
Rep:
Level 95
?
then set it up in the database.
Watch out for: HaloOfTheSun

***
Rep:
Level 89
... I got nothing.
You can't do it in the database! There's nothing that makes only one class able to use an item!

*
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 Veteran2011 Favourite Staff Member2011 Most Mature Member2011 Best RPG Maker User (Scripting)2011 Best Use of Avatar and Signature Space2010 Most Mature Member2010 Favourite Staff Member
Sorry, I had misunderstood. I suppose you could maybe set it up as a common event. Just, something like:

Code: [Select]
Conditional Branch: Script: $game.actors[actor_id].class name
    [Whatever animations and stuff you want in here, damage, buffs, etc...]
    Change items: Shuriken -1
else
     Your class cannot use this item.

***
Rep:
Level 89
... I got nothing.
Thank You! That's exactly what i need! Except. I need it for all my characters(i have only 4)

Would i do it like this :
Code: [Select]
Conditional Branch: Script: $game.actors[actor_id].ninja

or would i have to acdtually add the actor's id? 

*
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 Veteran2011 Favourite Staff Member2011 Most Mature Member2011 Best RPG Maker User (Scripting)2011 Best Use of Avatar and Signature Space2010 Most Mature Member2010 Favourite Staff Member
My syntax wasn't proper earlier. It'd be more like:

Code: [Select]
Conditional Branch: Script: $game_actors[<actor_id>].class_id == <class_id>

So, [Conditional Branch: Script: $game_actors[001].class_id == 001]
would check that the 1st hero is of the first class in the database.
So, if standard, it would check if Arshes is a fighter.


But, in thinking about it, it probably will not work the way you want it to since it would work for any character as long as that one character was the right class. I guess you might have to define a variable or something which determines who is using the item. I'm not a very competent scripter unfortunately, and I'm not sure what the syntax is to determine who is using the item in battle. I'll see if I can find it. In the meantime, maybe someone else knows.
« Last Edit: January 29, 2007, 06:45:26 AM by modern algebra »

*
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 Veteran2011 Favourite Staff Member2011 Most Mature Member2011 Best RPG Maker User (Scripting)2011 Best Use of Avatar and Signature Space2010 Most Mature Member2010 Favourite Staff Member
Sorry, I'm not really sure how it could be done. Maybe someone else will know. One thing you can do (it's kind of a cop-out) is make "Throw Shuriken" a common event-based skill which costs 0 mana in the database and just have your guys forget it if they switch classes. It'd be a similar construction, but instead of the conditional branch checking class, it'd just check to see if you have the appropriate item. It'd be a lot easier because not only do you not have to check who is taking the action, you can also target enemy.