Jump to content

Kayzee

Member
  • Content Count

    3,880
  • Joined

  • Last visited

  • Days Won

    426

Everything posted by Kayzee

  1. Kayzee

    [VXA] Move the skills to the item menu

    Yeah note tags can be a pain in the butt to deal with sometimes, especially since every script basically needs it's own way to load/parse them. Personally though when I write scripts I don't even bother making each script load/parse it's own note tags and use this script to load/parse stuff for all my scripts instead. It makes things a million times simpler for me as someone who makes a lot of my own scripts. If you only are using three skills though? Yeah, just use conditionals I say.
  2. Kayzee

    [VXA] Move the skills to the item menu

    Methods maybe? Operators in Ruby are really just fancy methods. For example this would be how you actually define '+': class SomeClass def +(value) # do something here end end Really in Ruby 'x + y' kinda translates to 'x.+(y)' Personally I would have probobly used a note tag of some kind. Though really items and skills are basically the same thing. In most cases you could probably just use reusable items instead of skills, but I don't know if that is practical in this case.
  3. Kayzee

    [VXA] Move the skills to the item menu

    One alternative to 'x += y' for arrays would I think be 'x.push(*y)' where * in this case is the splat operator. Not sure if 'x << *y' would work though, because although .push accepts multiple arguments, I am not sure if << does. Yeah that's weird... as far as I know += should be defined if + is defined... Though it could be that for totaldata's class '+' is not defined, but it is for object's class and Ruby will use object's '+' when it encounters that situation because for numbers x + y and y + x are the same thing. This isn't always true for other types of objects, but I could imagine this being assumed. If so, this is what I might expect to happen if 'totaldata' is nil (or undefined) and 'object' is a string. Saying something like ' nil + "string" ' might actually work fine then because Ruby would reinterpret it as ' "string" + nil ' which would try and convert nil to a string by calling nil.to_s which I believe always returns the empty string (aka ""). Therefore 'totaldata = totaldata + object' would work, even though it really shouldn't. However 'totaldata += object' would not. Because + is not defined for totaldata, += would not be defined either and in this case Ruby would not assume that x += y is the same as y += x because they obviously wouldn't be the same even for numbers. Usually in that case you would want to set totaldata to "" before you start using it. That way you are absolutely sure it's a string. Good luck then! *sprinkles fairy dust on you*
  4. Kayzee

    [VXA] Move the skills to the item menu

    Keep in mind that += and << do very different things. Pretty sure that << works identically to the .push method, adding something as a new member on to the array. On the the other hand += is a way of combining two arrays into one. In this case, '$data_skills.select {|skill| usable?(skill) }' is an array containing all usable skills. Using << here would add one new member to the @data array containing the usable skills array, which is not what we would want is it? Using += here would add each member of the usable skills array to the end of the @data array, which is what we would actually want to do. Side note: By a 'section that does not use math operators in a full capacity' I can only assume you are talking about the traditional difference between 'statements' and 'expressions' in many programing languages. In some languages operations like += might be defined as 'statements' and not allowed to be used where the language expects an 'expression'. Probably mostly in languages that use '=' to both set if used as a statement (such as 'x = 5') and compare things if used as an expression (such as 'if x = 5') rather then use '=' to set and '==' to compare. In Ruby however the difference between 'statements' and 'expressions' is virtually (but I don't think entirely) nonexistent. Otherwise, math operators are defined purely by the object(s) they operate on. The biggest reason something like 'x += y' might give an error is that ether the + operator is not defined for the class of x, or that the + operator for the class of x is unable to handle an object of the class of y. Happens most often in my experience because x and/or y were never actually set and default to nil. Then again... I am kind of confused because I thought you wanted a bunch of skills to show up in the item menu, not just one?
  5. Kayzee

    Passive vs Active Sea Travel

    Why not both? That is, why not start the game with passive sea travel and give the player a ship of their own later in the story? This is actually something that's pretty common in JRPGs, particularly the Final Fantasy series. When game starts out, you don't really have a lot of options on where you can travel, and the game can be quite linear. But after a suitably climatic part of the story the player reaches what I have heard described as 'the Freedom Point', where the player can finally go anywhere they wish. This can often happen in stages too, which is why RPG Maker has different vehicle types. A boat for shallow water, a ship for shallow+deep water, and an airship that can go everywhere. Also many Final Fantasy games aren't afraid to give you a ship or airship for a little bit and take it away later, but they eventually give it back for good.
  6. Kayzee

    [VXA] Move the skills to the item menu

    Cause you are using '@data =' twice in make_item_list, so the list of skills is overwriting the list of items. Try adding a '+' before the '=' for the second one, or to put it another way, change: @data = $data_skills.select {|skill| usable?(skill) } into: @data += $data_skills.select {|skill| usable?(skill) } That will tell ruby to append the array rather then overwrite it.
  7. Kayzee

    rpg maker xp Unexpected file format. How do I fix it?

    I remember someone asking me about this in a pm not to long ago... I don't know if they ever got their game working again. Anyway here is a slightly condensed/edited version of what I told them: ... How long was a while back? Have you done much with the computer since then? Sometimes checking the disk for errors will be able to fix some files for you. You can do this (in windows) by right clicking a hard drive in 'my computer', then choosing properties, then click on the tools tab thing and the first option should be error checking. Problem is sometimes data might be in places that are incorrectly marked as free, so the computer might overwrite them if you don't check right away. Not sure how common this is though. Be careful though, you might want to make a back up on another disk just in case it screws something up and makes it worse. It's also a good idea to take another backup after the error checking just in case. Okay now we come to the more tricky part: Now, go into your game's data directory, and have a look at all the file sizes. Using View -> Details is helpful here. Anyway, you are looking to see if any files are size zero. If so: Make a new project in RPG Maker and save it. For every file of size zero in your data directory: If it is a map (Mapxxx.rvdata where xxx is the map number), replace it with a copy of the Map001.rvdata from the new project's data directory. If it is not a map, replace it with a copy of the file with the same name from the new project's data directory. Then when you replaced all the size zero files, if any, try and load the project in the editor and/or test it. If it works, great that's this step done! Skip everything else bellow. If it doesn't, now we need to do some grunt work. Make another new project . Yes another one. Now follow these steps: Close the second new project if it's open in RPG Maker. Replace one of the non-map files that you haven't replaced yet in the data directory of the second new project with one from your project. Try opening the second new project in the editor/testing the game. If it gives an error (other then missing images or such) replace the same file with a copy from the first new project. Repeat above until all non-map files are replaced. Close your project if it's open in RPG Maker. Replace all non-map files in the data directory of your project with ones from the second new project. Try opening the your project in the editor/testing the game. If it gives an error, it's probobly something that only a professional data recovery expert can help you with, if anyone can at all. This won't always recover everything, but it's a start!
  8. Kayzee

    Advanced Confusion State?

    I am curious too! Edit: Also sorry for confusing you... To be honest I find the whole way the battle system works in VX Ace a bit confusing myself. Mostly because everything is scattered about different places and it can be hard to find what you want.
  9. Kayzee

    Help Developing an Army system!!

    How large an army we talking here? Cause your example of 9 soliders seems like it would be better if each one was it's own actor. At hundreds and hundreds of solders though your not gonna want to micromanage everyone. Maybe each type of soldier was the same database actor that was just cloned in battle? Instead of each having their own equipment/levels/ect, they would just share a 'uniform' and the levels would be based on the player's over all skill with them maybe?
  10. Kayzee

    Advanced Confusion State?

    Really 'confusion' status usually implies being confused about what is an ally and what isn't and/or scrambling the player's controls. What you are talking about I am pretty sure is usually called 'charm' I think. Actually in my game I have a charm status that petty much works exactly like you describe, but I am using my own battle system/enemy AI system and it doesn't work in the default battle system. Also it only effects enemies right now anyway since I have no AI code on the player's end. I will tell you one thing though: The basic idea about how my charm status worked is that it mostly just swaps the @friends_unit and @opponents_unit when creating a Game_Action object. With the default battle system the status might be able to work by doing that and setting a actor's 'auto battle' flag.
  11. Kayzee

    Entry 00C: Ramsey and More Problems

    Using Tileset E for ceiling tiles should have precisely 0% to do with a event graphic being rendered on top of you, so my guess is this: It doesn't. It was something else you did within the same timeframe that did it.
  12. Kayzee

    Entry 00C: Ramsey and More Problems

    Well actually it should be 'Same as Characters' not 'Below Characters' I said the wrong thing before. But actually I was assuming you were using Tile E graphics for the doors for some reason, othewise I have no clue why the heck giving walls priority would cause the events on them to be higher priority. I think It must be a script you added or something. Of course if the doors weren't higher priority they would be covered up by the wall, unless you had a hole in the wall for the door. In witch case why would it make the doors higher priority?
  13. As a fairy, I approve of this game! Hehe... I am not sure about what you mean with 2 and 3, but I do know 1! If you don't use a feature to set the special HIT ex-parameter on either the hero or the weapon, when the hero attacks they will always miss! I use VX Ace myself, but it's basically the same there too.
  14. Kayzee

    Permanently Remove Input Up

    You are welcome! Helping is nice sometimes. *sprinkles fairy dust on you*
  15. Kayzee

    Clothing System need help

    Not sure what has you so confused really. My best guess is you don't know what scripts/plugins are? But you did use the phrase "coding mechanism" so maybe not? Well if so, generally when an engine says something like "no programming required" that's usually only technically true... Or it could even be a big fat lie since it's debatable if events count as 'programming' or not (not sure if Ren'Py has an event system or not, but RPG Make sure does). Regardless some kind of programing language is usually supported like Javascript for RPG Maker MV and Python for Ren'Py, and that's how systems like this are usually made. I pretty much only use RPG Maker VX Ace which uses Ruby, so I couldn't really go into much detail about MV or Ren'Py, but generally stuff like this are packaged into scripts/plugins/addons/mods/whatever (they can be called different things depending on the engine) so they can be shared and there are a lot of them floating around. But of course, though people make and share a lot of them, sometimes they aren't exactly what you want and/or there are bugs or other problems with them. Here's a bit of advice: You probobly shouldn't rely too much on things like this unless you know how to code things yourself or have someone working with you that does, because getting help for this stuff can be a shot in the dark sometimes.
  16. Kayzee

    Pathway: Desire Resources

    Probably because it's been four years and the resources are no longer online. ...Kinda like the image in your signature. :P
  17. Kayzee

    Permanently Remove Input Up

    Yeah, looking at the code now that you found it, pretty sure that won't work right. Because 1. As I said, the movement code is totally rewritten, and 2. The problem wouldn't go away anyway, because Input.dir4 would still prioritize up over left and right, which is why the problem exists in the first place.
  18. Kayzee

    Permanently Remove Input Up

    Again, probobly doesn't apply because all the movement code was rewritten for the platformer thing.
  19. Kayzee

    Permanently Remove Input Up

    A diagonal script wouldn't work since the whole movement system is being replaced anyway. It seems to me like the Khas Arc Engine thing probobly uses Input.dir4 instead of checking each button individually. Honestly, RPG Maker really isn't the best for platformers. Or action RPGs. Yes people have made scripts to make RPG Maker do that. Problem is... all of the ones I have seen are awful buggy messes that just don't work right half the time, especially when you start adding new scripts. Anyway let me take a look at this Arc Engine... AH HA! I was right! Look at the Arc Engine script starting at line 2769 (or so, might be off if it's not the same version I had, but you can find the line by searching for Input.dir4): case Input.dir4 when 4 @vx -= @key_acc set_direction(4) @deny_resistance = false r = (Input.press?(:SHIFT) ? Running_Resistance : Body_Resistance) when 6 @vx += @key_acc set_direction(6) @deny_resistance = false r = (Input.press?(:SHIFT) ? Running_Resistance : Body_Resistance) else r = (@wallkick ? Body_Resistance : Stop_Resistance) end Silly Khas... Try replacing that with: case when Input.press?(:LEFT) @vx -= @key_acc set_direction(4) @deny_resistance = false r = (Input.press?(:SHIFT) ? Running_Resistance : Body_Resistance) when Input.press?(:RIGHT) @vx += @key_acc set_direction(6) @deny_resistance = false r = (Input.press?(:SHIFT) ? Running_Resistance : Body_Resistance) else r = (@wallkick ? Body_Resistance : Stop_Resistance) end Now doesn't that make so much more sense?
  20. Kayzee

    RPG Stat Systems

    Er... Actually... ... Nevermind. I think it would be more worth it to go to the script list, right click on any script name, and select find and search for 'luk' instead. (PS, why must you do this to me...)
  21. Kayzee

    Permanently Remove Input Up

    That's not really what I was asking. I mean the only real reason to remove up as an input even in menus is to screw with the player right? Will you abuse your power? Punish the player unfairly? I don't know know if I can trust you not to inflict your sadistic whims on the player! ...That's my job! The player is my plaything! I called dibs! Hmmm... Though it might be amusing to watch what you come up with... Okay fine, I guess I could try and make a little something for you... Though do you really want to just completely remove the up input? Were you thinking of being able to toggle it on and off? What's your plan here?
  22. Kayzee

    Permanently Remove Input Up

    Nooo! Not the up key! My down key is already broken, now you are going to take my up key as well?! You monster! ...Okay that joke didn't really make sense because you can remap keys to different inputs or use a gamepad anyway, buuut, yes. Yes it is possible. With scripting! The question is, can you be trusted with that power?
  23. Kayzee

    RPG Stat Systems

    LUK does a lot of little things I think. It also effects item drop rates and crit rates I am pretty sure.
  24. Kayzee

    RPG Stat Systems

    How much does LUK effect by default I wonder? I should search the scripts for it and see sometime. I might replace it too, though probobly not with Charisma. My game is mostly a dungeon crawler and I don't think Charisma would be that useful. Also, I think something worth thinking about with stats is theming. For example, most computer/video games with an 'Intelligence' stat seem to use it mostly or entirely for magic. I would argue that in most cases it doesn't make very much sense because the stat isn't actually related to intelligence at all. For this reason I often prefer to name the primary magic stat 'Will' instead. DnD it's self actually uses Int, Wis, or Cha for spellcasting depending on the class and/or the spell. The stereotype of "intelligence = magic" is kind of an oversimplification created by treating all magic users as related to the DnD 'wizard' class archetype where magic is obtained through years of dedicated study by stuffy scholar types.
  25. Kayzee

    RPG Stat Systems

    Our elusive lord and master has made a thread in Theory and Development and I almost missed it? That won't do at all! Anyway, I think it should be noted that there can be a big divide between DnD-style tabletop RPGs and most computer/video game RPGs. Loosely speaking a lot of DnD's gameplay revolves around a player going "I want to do this" and the DM going "Okay, but you need to pass x stat check to do it". The math involved is usually relatively simple, it's pretty clear how stats factor in to what you are doing at the moment, and a lot of it is improvised on the spot so your stats could effect anything and everything. For computer/video game RPGs on the other hand, while some try and emulate a kind of stat check most basically use them for combat and nothing else. I think some of DnD's stats don't really get to shine that way. Cha in particular seems to be neglected.
×