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.
Target Items?

0 Members and 1 Guest are viewing this topic.

********
Resource Artist
Rep:
Level 94
\\\\\
Project of the Month winner for June 2009
Hmm. So I was just thinking about making an Identify Item event system. I know how to accomplish all of that except for the part where I don't know how (of if you can) target items with other items or abilities. The event system would have been purely item based, so using something like an Item Scroll would then identify an item of your choice to be identified. If there's no possible way (other than a script**), then I would probably end up making the event system just automatically convert all 'Unknown' Items in a player's inventory into identified items.

**How hard would it be, if it does require a script, to just make a small plugin (or maybe big, idk) to make it possible to have items target items?

In the end, what I'd like to do is just event this unless there's no other way.

*
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 would not be pleasant to event a target item scene, but it is possible. It would require picture eventing. A great resource for that sort of thing is just looking at 2k3 games, as a lot of fancy stuff is done with picture eventing. I wrote a tutorial for that kind of thing once at RMRevolution, but I don't remember if it ever made it to rmrk before RMRevolution was taken down (not RRR, by the way). The basic idea is that you take a picture of the windowskin, enlarge it to the size you need, and that would be one picture. You then draw it, and for each item that can be unidentified, you would want a picture of it's name and Icon. Then, you would check each if they were in inventory, and you would draw it. There are a number of ways you can reduce the number of conditionals that would require, if you're clever, but it is a tough event system to write efficiently in any case, and it could never be plug & play.

If you do want to use a script, I would suggest you simply use my Evidence script in the database and list all identifiable items as evidence.

********
Resource Artist
Rep:
Level 94
\\\\\
Project of the Month winner for June 2009
Haha, yeah that was my alternative, but it wasn't going to be particularly for myself and I didn't feel like doing all the picture work to get it to flow. Plus people would have to change it to fit their personal windowskins and random other things I'd have to tell people if I shared it. Bleh.

Thanks for the reply MA, but I probably won't do it lol.

~

Actually come to think of it,

Quote
  • $game_temp.evidence_name   -    the name of the item chosen
  • $game_temp.evidence_amount   -   the amount of item in the party's possession
  • $game_temp.evidence_type   -   0 => Item, 1 => Weapon, 2 => Armor
  • $game_temp.evidence_id   -   the ID of the item chosen

You can use any of these in a conditional branch by utilizing the script condition and typing in this:

  • $game_temp.evidence_name == 'name'
  • $game_temp.evidence_amount == positive integer
  • $game_temp.evidence_type == integer between 0 and 2, inclusive
  • $game_temp.evidence_id == positive integer

That seems really useful, and your script is actually pretty short. I could still do it maybe. I would just include the script~ But the issue would be with people changing the values and ID# of stuff from the database into the script and events. Maybe I'll just make it for myself then... lol
« Last Edit: May 13, 2009, 05:45:22 PM by grafikal009 »