NOICREC'S PROFILE

Search

Basic Scripting Question(RM VX Ace)

I believe it's a basic scripting question nevertheless.

This is the problem: I want a variable take a random number between 1 and Variable. The problem is, that the RPGMaker doesn't allow any random numbers between a number and another variable, or two variable. It only takes whole integers.

"Okay, no problem, I'll just see how it's done by scripting."
I tried to, really.
I kinda couldn't find a single decent tutorial about scripting variables. I found one, which made me a very sad boy: http://www.rpgmakervxace.net/topic/2910-scriptingwfz-variables/

Kinda thought about a workaround, involving RM preset settings only, but I'm more interested in a scripting solution: since I'll prolly be having more of those problems with the stuff I'm working on.

I think just a scripting solution to this problem would be enough, should be enough data for me, to figure out how to manually set variables through scripting. So if anyone could help me out here... Would be awesome!

Need help with preventing abusal of multiple weaponsets in my system.

Dat topic title.

So here's the deal. I'm making a system where equipped weapons have influence on your level up stat gaining.
For example, equipping the "awesome supah dupah longsword" gives you extra damage on level up, but decreases amount of defense gained. Or the "MegaLAZ0R of D00m and D3sp41r" gives you extra health on lvlup, but decreases the damage gained on lvlup.

Of course, every weapon also has their own stats. So the longsword has maybe 15 att, while the laz0r has 12 att, but a small defence boost.

Now here's the problem: You can "abuse" this system by just wearing one weapon you like during most of the battles, but switching it, just before you level up to gain that other weapons bonus.
So to take the previous example.. I like the longsword, but don't like it's bonus. So I just grind until I'm 99%, switch over to the laz0r, to get it's bonus on level up, just level up and then continue using my longsword once more.

This is not what I intend on my game. I want players to stuck with certain types of weapon when they want to get stronger, not to switch in the last second to get another bonus.

I've been thinking about locking weapons and stuff, but that would make obtaining new weapons quite a pain: you have to wait until your weapon unlocks, before you can equip your new weapon.

Also been thinking about making weapons class specific, but that would completely cancel out switching to another weapon, because you want to level up another bonus halfway the game or something.


So... I'm completely stuck here!
Does any of you have any idea's how I can prevent this abusal?


Edit: I'm using the RPGmaker VX Ace, currently using the RPGmakers options only, but I'm willing to look into scripting of course :3

Ohai

Just wanted to introduce myself. Started playing around with the RPGmaker ages ago, before 2k3 got out, but haven't been doing much with it. I made a few games in the old days, but kinda want to pick it up once more.

I'm particularly interested in the whole scripting thing. I used to made complicated(at least, I tried to)battlesystems just by using the makers preset. now there's a proper scripter, I'm actually interested in mastering it, and you know.. Do shit with it. Make minds go boom and stuff.

So... Introduction!

Hello n.n
Pages: 1