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.
[VXA] Monster Catalogue

0 Members and 2 Guests are viewing this topic.

*
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
It's an incompatibility with another script - a Yanfly script I believe and probably one that has something to do with classes. It can be fixed by going to that line and replacing:

Code: [Select]
       if enemy.class.method_defined?(:mamc_analyze_now) && enemy.mamc_analyze_now

with:

Code: [Select]
       if Game_Enemy.method_defined?(:mamc_analyze_now) && enemy.mamc_analyze_now

***
Rep:
Level 69
How do I store the amount of monsters completed? I'd want to make use of this for an achievement and giving equipment sort of purposes.  :)

(Such as rewarding the player when they've killed 10 unique monsters, again when 30 and so on and forth)

*
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
I actually don't have completion data stored in any particular variable. Instead, it appears that it calculates it each time.

I'm not overly happy with the way it's done, but I'll assume for the moment that I had good reasons for doing it that way, so I could write a method in Interpreter that could get it for you. Basically, you would need a method like this.

Code: [Select]

  def completed_monsters(cat_id = 0)
   a = 0
   $data_enemies.compact.each { |enemy|
     if enemy.category_ids.include?(cat_id) && !$game_system.mamc_hide_ary.include?(enemy.id)
       a += 1 if $game_system.mamc_data_conditions_met?(MAMC_CONFIG[:complete_when], enemy.id)
     end
   }
   return a
 end

However, where you put it depends on how you want to use it. In other words, if you intend to do it in an event by script call, you would need to put it in Game_Interpreter. However, if you wanted to retrieve it in some other script, it would probably be better off in some other class. So let me know.

***
Rep:
Level 69
For dual purposes really. Like I said, in both event call (When you talk to the guy who gives rewards based on it) but also in a script to check when you've completed all the stuff to award the achievement. Is why I said it'd be simple to do it via variable and conditional branches.

*
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
Alright, well insert the following code into its own slot somewhere between Main and Materials:

Code: [Select]
class Game_System
  def completed_monsters(cat_id = 0)
   a = 0
   $data_enemies.compact.each { |enemy|
     if enemy.category_ids.include?(cat_id) && !$game_system.mamc_hide_ary.include?(enemy.id)
       a += 1 if $game_system.mamc_data_conditions_met?(MAMC_CONFIG[:complete_when], enemy.id)
     end
   }
   return a
 end
end

The code:

Code: [Select]
$game_system.completed_monsters(cat_id)

will return the number of monsters completed in the category with cat_id. If you exclude cat_id, then it will give you the number in total.

Examples:


Code: [Select]
a = $game_system.completed_monsters(4)
$game_variables[9] = a

That would put into variable 9 the number of monsters completed in category 4.


Code: [Select]
a = $game_system.completed_monsters
$game_variables[13] = a

That would put in Variable 13 the number of monsters completed in total.

**
Rep: +0/-0Level 55
RMRK Junior
I just expanded this method with the two marked lines

  def get_completion
    a, b = 0, 0
    $data_enemies.compact.each { |enemy|
      if enemy.category_ids.include?(@category) && !$game_system.mamc_hide_ary.include?(enemy.id)
        b += 1
        a += 1 if $game_system.mamc_data_conditions_met?(MAMC_CONFIG[:complete_when], enemy.id)
        $game_variables[28] = a
        $game_variables[29] = b

      end
    }
    return a, b
  end

Seems to work just fine, too. Is there anything I would be overlooking?

*
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
That will work fine, but mind you, the variables will only update when that method is called, which I believe it is when one of the windows is shown. So, whenever the player kills a new monster, those variables will be off until he or she actually checks his or her catalogue.

**
Rep: +0/-0Level 55
RMRK Junior
That's correct. I'm only using the variables for something like a summary window, so that's alright. Thanks for the quick reply!

*
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
Then it should be fine. Ordinarily, it wouldn't be good practice to rely on global variables changed in an unrelated method in some other class, but where you're just doing a rough patch, it is fine. What I should have done was keep an array and just updated it when a new monster was completed. Calculating it like that everytime is a waste. But for now, it's how I did it.

****
Bitch
Rep:
Level 87
Bits'n'Pixels
Is there any reason why the species icon wouldn't be showing up underneath the name?

I put in all the species id's in the noteboxes, but it just doesn't show up at all:
http://rpgmaker.net/games/4865/images/35284/

Also, (but not really important, but possibly relevant) when I checked the "show icon next to enemy name" line, the icon was persistently species #5, no matter what the enemy notetag had it as.

Not a huge thing; just something that's been bugging me mainly since I just can't figure out why.  Can live without it though, if it's some complicated problem; other than that, loving the script.  Nice and simple, looks clean and concise and I oh-so-love plug'n'play scripts!

*
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
It looks like it was an error in my instructions. The noteboxes should use:

Code: [Select]
\species[n]

not:

Code: [Select]
\species_id[n]
« Last Edit: March 11, 2013, 02:06:25 AM by modern algebra »

****
Bitch
Rep:
Level 87
Bits'n'Pixels
Ah, such a simple thing. 

Cheers for the fix, and cheers again for the pretty script :)

**
Rep: +0/-0Level 71
RMRK Junior
Hey modern algebra. I was just wondering if you might be able to make a script that's similar to this, but is used to keep track of the treasure chests that you've collected in the game. Instead of a list, it would be small boxes in rows along the screen. While the chest hasn't been opened, it's entry would have question marks, just like the monster catalogue, but when you open the chest, the question marks will be replaced with the name of the item found in it. I've been looking for a script like this for ages, but haven't had any luck. This was featured in Kingdom Hearts II, and i've really enjoyed the whole collection side quest part of games. This is just an thought, and not an actual request, so I thought I'd post it here instead of the script requests.

**
Rep: +0/-0Level 55
RMRK Junior
Hey modern algebra. I was just wondering if you might be able to make a script that's similar to this, but is used to keep track of the treasure chests that you've collected in the game. Instead of a list, it would be small boxes in rows along the screen. While the chest hasn't been opened, it's entry would have question marks, just like the monster catalogue, but when you open the chest, the question marks will be replaced with the name of the item found in it. I've been looking for a script like this for ages, but haven't had any luck. This was featured in Kingdom Hearts II, and i've really enjoyed the whole collection side quest part of games. This is just an thought, and not an actual request, so I thought I'd post it here instead of the script requests.

Gambit just released something like that in the other forum: http://www.rpgmakervxace.net/topic/15788-gambit-icon-list/ =)

**
Rep: +0/-0Level 51
RMRK Junior
Is there a possibility that you could make it so that the user can scroll through the description text of an enemy, say with like Insert-Delete, Home-End, Page Up-Page Down?
You've done 'scroll description text on another script before.
Reason being is that I'd like to have more room for just 2 lines of description, simply because there's often just more to say than that.
Perhaps?

**
Rep: +0/-0Level 51
RMRK Junior
 ::)Say? I, as well as i'd think some others, have more to say than the text space limit you've imposed. Things like habitat, time of day/ seasons it appears, things like strategies that it changes to (like a healer strategy when in the presence of lesser allies versus a striker strategy when actors are gaurding to break guard, i would want to describe these things), special characteristics like heals from thunder, has a very high critical hit ratio, drops and stealable items, types of attacks it uses...
The default doesn't give you enough room to put all that. I'd say it's not very trivial of request.
« Last Edit: September 08, 2013, 10:51:33 PM by rubydragon44 »

**
Rep: +0/-0Level 51
RMRK Junior
Or does this sound trivial to you?

*
The Hero of Rhyme
Rep:
Level 83
( ͡° ͜ʖ ͡°)
2014 Best RPG Maker User - StoryProject of the Year 20142014 Queen of RMRK2011 Best Newbie2014 Best RPG Maker User - Creativity2014 Kindest Member2013 Queen of RMRKBronze SS AuthorBronze Writing ReviewerSecret Santa 2013 ParticipantFor taking arms in the name of your breakfast.GOOD!For frequently finding and reporting spam and spam bots2012 Best Yuyubabe Smiley2012 Best RPG Maker User (Creativity);o
Spoiler for My Games and Art:
ℒℴѵℯ❤


My Artwork Thread

The Lhuvia Tales [Current]

Ambassador [Complete]

The Postman [Complete]

The Wyvern [Complete]

Phoenix Wright: Haunted Turnabout [Complete]

Major Arcana [Cancelled]


*
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
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.
Hey rubydragon44. Please stop PM'ing me naked photographs of yourself. Being as I am only 14 years of age (well turning 15 ;o) this is illegal in most countries.

Thank you.
&&&&&&&&&&&&&&&&

**
Rep: +0/-0Level 51
RMRK Junior
I'm not PMing anyone. Huh? How would my account be hacked? And idk I think if you're going to give the ability to descibe an enemy and if there's enemies with more complicated traits then I'd say more than just a couple lines would be needed

*
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
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.
I understand that people have their own tastes, but I don't understand why you would insert a smurf doll into your, hmmm...

Anyway, I've already asked you to stop sending me those photos. If this continues, I'll be forced to contact the moderators of the forum.
&&&&&&&&&&&&&&&&

**
Rep: +0/-0Level 51
RMRK Junior
Am I being trolled? I have no messages and I see no sent box to confirm that my account has sent any messages. That and I don't know how to change my password.
-I changed my password. I have sent nothing.
« Last Edit: November 22, 2013, 01:02:43 AM by rubydragon44 »

*
The Hero of Rhyme
Rep:
Level 83
( ͡° ͜ʖ ͡°)
2014 Best RPG Maker User - StoryProject of the Year 20142014 Queen of RMRK2011 Best Newbie2014 Best RPG Maker User - Creativity2014 Kindest Member2013 Queen of RMRKBronze SS AuthorBronze Writing ReviewerSecret Santa 2013 ParticipantFor taking arms in the name of your breakfast.GOOD!For frequently finding and reporting spam and spam bots2012 Best Yuyubabe Smiley2012 Best RPG Maker User (Creativity);o
Am I being trolled?

Yes.

And idk I think if you're going to give the ability to descibe an enemy and if there's enemies with more complicated traits then I'd say more than just a couple lines would be needed

Now to be serious. You're coming across as rather demanding, dude. At least be nicer when asking someone to dedicate their time into making something better for you.
Spoiler for My Games and Art:
ℒℴѵℯ❤


My Artwork Thread

The Lhuvia Tales [Current]

Ambassador [Complete]

The Postman [Complete]

The Wyvern [Complete]

Phoenix Wright: Haunted Turnabout [Complete]

Major Arcana [Cancelled]


*
Rep:
Level 102
2014 Biggest Forum Potato2014 Best Non-RM Creator2014 Biggest Narcissist Award2013 Best Game Creator (Non-RM)2013 Best IRC ChatterboxParticipant - GIAW 112012 Best IRC Chatterbox2012 Most Successful Troll2012 Funniest Member2012 Best Use Of Avatar and Signature spaceSecret Santa 2012 ParticipantProject of the Month winner for November 2009For being a noted contributor to the RMRK Wiki2010 Best IRC Chatterbox2010 Most Successful Troll2010 Biggest Forum Couch Potato
Okay, I just got an an obscene image from rudy in my inbox too.

*
The Hero of Rhyme
Rep:
Level 83
( ͡° ͜ʖ ͡°)
2014 Best RPG Maker User - StoryProject of the Year 20142014 Queen of RMRK2011 Best Newbie2014 Best RPG Maker User - Creativity2014 Kindest Member2013 Queen of RMRKBronze SS AuthorBronze Writing ReviewerSecret Santa 2013 ParticipantFor taking arms in the name of your breakfast.GOOD!For frequently finding and reporting spam and spam bots2012 Best Yuyubabe Smiley2012 Best RPG Maker User (Creativity);o
Oh.

I, a humble moderator, should do something about this!!


* yuyubabe does something about this.
Spoiler for My Games and Art:
ℒℴѵℯ❤


My Artwork Thread

The Lhuvia Tales [Current]

Ambassador [Complete]

The Postman [Complete]

The Wyvern [Complete]

Phoenix Wright: Haunted Turnabout [Complete]

Major Arcana [Cancelled]