Home
Help
Search
Calendar
Login
Register
Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
Click here to join us on IRC (#charas on irc.freenode.net)!
Charas-Project
»
Game Creation
»
Requests
»
RPG Maker Programming
»
Item Turn-In or Items as "currency" tutorial?
« previous
next »
Print
Pages: [
1
]
Author
Topic: Item Turn-In or Items as "currency" tutorial? (Read 2014 times)
dakota49
Member
Initiate
Posts: 19
I teach History and English Lit
Item Turn-In or Items as "currency" tutorial?
«
on:
February 20, 2008, 04:32:59 AM »
I was really hoping one of you guys could help me with this question.
In my game, there is an area where the main character needs to collect feathers from monsters in order to buy certain items. For example...
Vision Shield: 15 Eagle Feathers
Sturdy Spear: 10 Eagle Feathers
...etc.
I want the feathers to come from dead monsters only. I could make it so that feathers are "found" and that when it is picked up I can make the switch add the variable +1. However, I don't want to do that. I want them to come off monsters only. If I do that, I can't make the +1 variable option. (I might be able to but I don't know how)
How do I make it so the following happens:
Character has collected 10 feathers and is going to buy the spear. however he cannot be allowed to buy the Shield. How do I make common items act as "currency" in certain situations.
I assume it would have to be each feather is a +1 to a variable and that a fork condition would say whether a character would have enough feathers to buy a particular item, however, I can't increase variables on an item if they fall off monsters.
Maybe I'm just missing a step and I would appreciate any input from you guys. Thank you for help with this.
Logged
Prpl_Mage
Administrator
Sage
Posts: 7,645
The Administrator Mage
(No subject)
«
Reply #1 on:
February 20, 2008, 06:41:55 AM »
Have you tried to just set the variable equal to number of "Feathers" in the party?.
Variable Operations.
Well, conditional branches are the way to go here. Since the maker itself doesn't have a command for "number of items held" you more or less have to make the variable equal to the number.
Now add a page to the shopper(trader whatever since I don't know if it would work with the ordinary shop window) where you add a label firstly and then a conditional branch "Variable: 'Feathers held' is equal to or greater than 5" if you chose one of the items.
Just make the "Else Handler" make the merchant say something like "I'm sorry but no feathers; no deal" and then jump back to the label.
Not sure if this helps though, Perhaps I didn't read your post good enough.
Logged
Cool RPGM Project!
Sprite till you die
Oh my god, this was ...10 years ago...
dakota49
Member
Initiate
Posts: 19
I teach History and English Lit
(No subject)
«
Reply #2 on:
February 20, 2008, 08:56:40 PM »
I'll definitely try your suggestion out. I appreciate your response to this. :-D Thanks for the help.
UPDATE:
I tried your suggestion and it worked perfectly!! Thanks again!
Logged
Prpl_Mage
Administrator
Sage
Posts: 7,645
The Administrator Mage
(No subject)
«
Reply #3 on:
February 20, 2008, 10:33:57 PM »
That's good to hear. You'll be amazed by all the stuff you learn after making a couple of features like this...
Like back in the old days when I couldn't make anything myself.... And here I am seeing everything pretty obvious.
Oh well, I guess you know that I don't need any credit for this. The praises are all I need.
Logged
Cool RPGM Project!
Sprite till you die
Oh my god, this was ...10 years ago...
Print
Pages: [
1
]
« previous
next »
Charas-Project
»
Game Creation
»
Requests
»
RPG Maker Programming
»
Item Turn-In or Items as "currency" tutorial?