VX - SCRIPT PROBLEM...

Posts

Pages: first prev 12 last
New thing, how would I go about checking whether the target of an attack/skill is an Actor or Enemy? I just need to make a slight change in my formula depending on the target. Thanks in advance again.
self.is_a?(Game_Actor) or self.is_a?(Game_Enemy)
assuming you are calling from within the methods you posted.
Craze
why would i heal when i could equip a morningstar
15170
If you're using Melody, you can use self.enemy? instead.
Thanks Racheal. And naa I'm not using Melody, I've looked at it, but it doesn't suit this game, will probably end up using it in the future, if I can get the Grandia system to run with less laggyness.

EDIT: Funny how Ruby can be so damn inconsistent, especially when it nags me about using attacker for magic abilities, but not physical ones. Ahwell, at least every-things implemented and fixed up properly now.

Also, have an image of an underpowered spell being used by a level 150 Monster VS a level 99 party (Terra is guarding, so damage is halved as normal)

And yes, I did just say underpowered. The spell was hitting 100-ish damage when I had that monster set at level 99, whereas it should be hitting 400-ish
Hahaha I forgot something about ** vs ^. Yes, Ruby supports ^ but ^ is not an exponent calculation like x^y, it's actually the bitwise operation 'XOR'. Proof: Put "print 2^2" and "print 2**2" somewhere. The first will return 0 (not the result of 2*2), the second will return 4 (is the result of 2*2).

I can't believe I forgot all about bitwise operations
Hmm, strange that it's been giving me the right sort of answer though... ahwell it's only a small change to the script anyway, not like it's gonna take me a while to fix.
Pages: first prev 12 last