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.
Display enemy Element Table?

0 Members and 1 Guest are viewing this topic.

***
Rep:
Level 82
We learn by living...
is there a way to display/decrypt the enemy's element table so I can make comments on them or add them up numerically?

Like if the assignments are

fire A
ice C
thunder C
water B
...

etc.

How can I access what these values are, or possibly change them?

********
Hungry
Rep:
Level 96
Mawbeast
2013 Best ArtistParticipant - GIAW 11Secret Santa 2013 ParticipantFor the great victory in the Breakfast War.2012 Best Game Creator (Non-RM Programs)~Bronze - GIAW 9Project of the Month winner for December 2009Project of the Month winner for August 20082011 Best Game Creator (Non RM)Gold - GIAW Halloween
read up on RPG::Enemy.element_ranks

jftr: I found that by searching the in-program help file for 'enemy' then going to the enemy class listing.

FCF3a A+ C- D H- M P+ R T W- Z- Sf RLCT a cmn+++ d++ e++ f h+++ iw+++ j+ p sf+
Follow my project: MBlok | Find me on: Bandcamp | Twitter | Patreon

***
Rep:
Level 82
We learn by living...
read up on RPG::Enemy.element_ranks

jftr: I found that by searching the in-program help file for 'enemy' then going to the enemy class listing.

Code: [Select]
p $data_enemies[1].element_ranks

spat out some mess, so I tried this

Code: [Select]
p $data_enemies[1].element_ranks[9]
p $data_enemies[1].element_ranks[8]
p $data_enemies[1].element_ranks[10]

and got some pretty good results, like 1,3, and 3, which I presume mean A, C, and C?
In what ways can these values be changed? Like only in battle and then they reset, or is it permanent for the run time of the game until restart?



*****
Rep:
Level 84
This text is way too personal.
Bronze - GIAW 11 (Hard)Silver - GIAW Halloween
Should be permanent. You could always change it back later using the same code.

***
Rep:
Level 82
We learn by living...
Should be permanent. You could always change it back later using the same code.

can I address player characters using this? or would I end up targeting their classes?

*****
Rep:
Level 84
This text is way too personal.
Bronze - GIAW 11 (Hard)Silver - GIAW Halloween
Like Nam said, just do a search of "element" in the help file index and see what happens.

***
Rep:
Level 82
We learn by living...
Like Nam said, just do a search of "element" in the help file index and see what happens.

good point.

I've checked the outputs and what's in the helpfile is off by 1 point. This array uses 1-6, rather than 0-5. Something important to remember, as F should read 5 but actually reads as 6.

********
Hungry
Rep:
Level 96
Mawbeast
2013 Best ArtistParticipant - GIAW 11Secret Santa 2013 ParticipantFor the great victory in the Breakfast War.2012 Best Game Creator (Non-RM Programs)~Bronze - GIAW 9Project of the Month winner for December 2009Project of the Month winner for August 20082011 Best Game Creator (Non RM)Gold - GIAW Halloween
the help files are, incidentally, very helpful.
I learned a lot about RGSS just by looking things up :)

I don't know if they can be changed, I've never tried.  Give it a shot.

FCF3a A+ C- D H- M P+ R T W- Z- Sf RLCT a cmn+++ d++ e++ f h+++ iw+++ j+ p sf+
Follow my project: MBlok | Find me on: Bandcamp | Twitter | Patreon

*
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
They can be changed, but they will be reset the next time the game loads the data objects, generally through Scene_Title after restarting unless you or someone else codes them in to reload somewhere else. But really NAM's right, if you want to know whether you can do something, just try it. If it works, it's a lot faster than asking us, and if it doesn't, you can always ask us after and see if there's another way.