Main Menu
  • Welcome to The RPG Maker Resource Kit.

Job specific Items

Started by epson777341, January 28, 2007, 06:09:40 AM

0 Members and 1 Guest are viewing this topic.

epson777341

How do i make some items job specific (Like Shurikens for Ninjas)

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

:)

I don't understand the example...just give another?
Watch out for: HaloOfTheSun

ataraxy2

Here's a good example Nouman. Shurikens and drinks.

&&&&&&&&&&&&&

Quote from: epson777341 on January 28, 2007, 06:09:40 AM
How do i make some items job specific (Like  for Ninjas)

I don't know if i need a script or not.
Quote from: Nouman on January 28, 2007, 06:28:00 AM
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.
&&&&&&&&&&&&&&&&

modern algebra

Go to Classes tab in Database. Check off Shurikens for all classes except Ninjas.

ataraxy2

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.

epson777341

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!

:)

then set it up in the database.
Watch out for: HaloOfTheSun

epson777341

You can't do it in the database! There's nothing that makes only one class able to use an item!

modern algebra

Sorry, I had misunderstood. I suppose you could maybe set it up as a common event. Just, something like:


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.

epson777341

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 :
Conditional Branch: Script: $game.actors[actor_id].ninja


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

modern algebra

#11
My syntax wasn't proper earlier. It'd be more like:

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.

modern algebra

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.