Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Topics - Shadow Eye31

1
Hello.

I was wondering if there is a way to record the distance traveled by a projectile before impact to a variable for use in the attack_effect method. For instance, if the player fires an arrow that travels 3 tiles, variable @distance_traveled is set to 3. Then, in attack_effect, @distance_traveled can be referenced for various things, such as damage multiplier or hit rate. I do not know if this is possible, but if it is, how would I go about recording that distance and referencing it in attack_effect?

Thank you.
2
If this is the wrong sub-forum for this thread, i apologize in advance.

I have created a rudimentary 'limit break'-esque system for my game. Basically, once the 'trance' counter reaches a point, the character gains a special state. Everything works save for the visual effect of gaining the state. I cannot for the life of me find how to play the animation correctly; everything I have tried either does not work or only plays the animation on the controlled character, regardless of who actually gained their state.

It may be a simple question, but I cannot figure it out. How do I make animations play per actor/battler, rather than the currently controlled one? Also, the animation will be called in the attack_effect and skill_effect sections of Game_Battler, right after the game runs the trance checks.

Thank you for your time.
3
Hello, all.

I have been trying to make several combo skills that involve the character moving, such as dashing forward and the like. However, when I execute said skill, while every action in the combo is played out in sequence, the Character Movement Speed command is either skipped or not working, so the character moves at his walking speed rather than the dash forward I am going for. I can dash if I hold my run key, but I'd very much like to fix this command so that is not needed. This problem persists regardless of default movement and pixel movement rate, and I have no scripts that touch movement speed or even Game_Character for that matter, other than Blizz ABS.

I have searched both Google and here for this problem, searching for RMXP blizz ABS combo, RMXP BABS Combo, RMXP BABS Combo movement, and RMXP Blizz ABS Combo Movement. Nothing has come up that is relevant to my issue. Anyone got any ideas? Thanks.
4
Mathematics / Discrete Mathematics
November 08, 2012, 05:26:51 am
Hello there.

Probably not what someone expected in this section, but here it goes.

I am studying discrete mathematics of my own accord. As I have no professor, nor do any of my peers understand even the fundamentals of logic (seriously, how hard is it to tell me if A is a knight or a knave?), I am struggling to fully grasp and understand what I am teaching myself. It's most likely a long shot, but I figured perhaps someone here may have a firm enough grasp to help me as I move through the text book I have, or maybe point me to where I can find such help.

Before anyone suggests this, my job does not readily allow me to take regular college courses, online or otherwise, due to irregular work hours highly prone to change. So, no, I cannot take a course for this subject, nor do they even offer one where I live currently.

At the moment, I am merely seeing if there is someone who might be able to help me with my study. I have a fairly good grasp of propositions, though I am a bit frustrated when trying to translate from English to a proposition, but I have no concrete issues at this time. I am using Discrete Mathematics and Its Applications (Seventh Edition) as my reference, just finishing section 1.2 yesterday.

If anyone would like to throw up a hand and allow me to prod their brain from time to time when I'm confused about something I'm currently working on in regard to discrete mathematics, I'd be grateful.
5
Hello there.

I recently had an issue in creating a script due to my lack of general knowledge on RGSS. I have read several articles, tutorials, guides, and topics for learning RGSS, however, I find I learn much faster if I learn in an engaged way. Merely reading an article on a function or topic does not leave the same impression a lesson or conversation would, for example. To this end, I'd like to request some help with understanding attr_writer/reader/accessor.

I recently created a script for creating custom stats which I required help with. KK20 jumped in and provided the solution:

Quote: ShowHide
Quote from: KK20
It's exactly what the message window says: You don't have a 'set' method for your variables. Easy way to do that would be to make your new stats be attr_writer
attr_writer :vit


I noticed you defined your 'get' methods, so I that's why I didn't suggest attr_accessor.


Once I set the attr_writer for all of the new variables I was using, everything worked. If I held a better understanding of these functions, I feel I wouldn't have had this issue. So here I am.

I believe attr_writer/reader provide the writing/reading function to a value, respectively. However, I have little to no understanding of attr_accessor, except that perhaps it provides both of these functions. Beyond those basic statements, I haven't the foggiest impression of their function and how to effectively utilize them.

Bottom Line-
For attr_reader/writer/accessor, would someone mind going in-depth in explaining these for me?
For attr_accessor, how would this differ from using attr_reader/writer and definitions? Is it more effective?

Thank you in advance if you decide to indulge my curiosity.
6
Hello there.

I have been tinkering with a script to add two new stats to the actors and have them effect Hp and Sp, as well as a new point-based level-up screen to use this feature. Everything works fine, except when I try to leave the level-up screen. If I confirm changes, it shoots this error each time:

Error Message: ShowHide


If I try to just exit without confirming changes, it shoots a similar error, just referencing the actor's variable that holds the amount of points they have. I am able to level the character up, as the variable seems to change correctly within the Game_Actor class, but if I try to spend a point to increase a stat, it throws the error, again, referencing the new variable. Same error, different line each time. The game reads the variables, utilizes them correctly, but can't alter them outside Game_Actor. I tried to follow the way the original stats were set up, but I seem to be missing something.

The link below is the download for my demo project for it, including the module, Game_Battler, Game_Actor, and Scene_LevelUP with all corresponding windows. Maybe someone more savvy with RGSS can see what I'm doing wrong.

http://www.mediafire.com/?chn6gch9u6agboh

Thank you for reading through this topic, and thanks in advance if you decide to help.
7
Hello, all.

I have been trying to create a script for new equipment for the better part of two days, and find myself stuck. The script will create five new equipment slots, two that will be based on weapons, three based on armors. I have added them to Game_Actor, Interpreter, and created a custom equip scene and windows to go along with it, as well as defined what items are equip-able via two id-defined elements.

So far, I have gotten the new scene running, the correct weapons/armor populating the lists, and said weapons/armor are not appearing in the regular equip scene, which is all correct. However, when I go to equip an item in this new scene, it will unequip the corresponding piece of equipment from the original equip scene without equipping the item. Let's say I try to equip the first weapon 'shard', as I call them, which is set as equip_type  5, but is the first on the list, making it index 0. It will unequip my weapon (equip_type 0, index 0 on the original screen), and will not equip the item to either slot, be it weapon or the first shard. The second weapon shard slot (equip_type 6, index 1) will do the same to the shield (type 1, index 1).

I feel like it is something simple I am missing, seeing as how everything else works fine, but I can't figure it out for the life of me. If anyone here could possibly point me in the right direction, I'd really appreciate it. You might even get a cookie!
8
I am currently trying to make a basic save/load system that creates a unique save file for each character, which is named (actor name).save, and then on the loading screen, brings up all character files. located via the .save extension. I have successfully written the saving portion, but I am stuck on the loading portion. I can't seem to find a way for the script to just look for .save and not a file header as well. Here's a better example:


The default File, Save, and Load scripts deal with this:
return "Save#{file_index + 1}.rxdata"

I want to have them search for just the extension, the .rxdata, of the files, not the header as well. Something like:
return ".rxdata"

But that doesn't work, I tried.


I've searched through several RGSS guides, including the ones that come with the program, but nothing has told me how to do this. If anyone could help, I'd appreciate it. It's probably really easy, but I've been at it for the past few hours and its midnight now, so my brain is shot.