Force Points Script Request

Started by Yin, April 25, 2009, 10:25:46 pm

Previous topic - Next topic

Yin

This is a request for a new script.

Script Title:
I would name this script "Force Points"
RMXP or RMVX:
XP
Detailed Description:
What this script would do is add another attribute in battle called Force Points. Maximum points would be 20 for every character. It is basically like an MP, but for everything. I should be able to choose how many points each command (Attack, Defend, Skip, Etc) removes/adds and also how many points each skill removes/add. Force points should be carried on to the next battle unless they sleep at an inn (meaning I should be able to refill the points through a call script, if possible I would also like to be able to recharge 1 point at a time through call scripts, but if not, I'm fine with it just refilling). Also, if the character doesn't have enough, they won't be able to use the command or the skill that takes more than the amount that they have. I wish I could be more descriptive.

Screen shots:
Here is where I would like the FP to be displayed.


Other Scripts I am using (in order):
http://www.sendspace.com/file/7jt7gh
This is my scripts rxdata. So you know exactly what scripts I am using. Please make it compatible with that battle system if you can only make it for the default, I can see if I can make it compatible myself and I know I have SDK in there somewhere, but I would like it to be unsdk. Thank you to anyone who is willing to take on this task.

If you need more information, let me know through PM or through this topic and I will add the information to this post.
Newly formed MUGEN, RPG Maker, and BOR forum.
http://cavernofcreativity.com
Opening in September
My Partner in crime = TREXRELL

Ryex

in this like an action points system like in fallout 1 and 2? and in the VATS system in fallout 3?
I no longer keep up with posts in the forum very well. If you have a question or comment, about my work, or in general I welcome PM's. if you make a post in one of my threads and I don't reply with in a day or two feel free to PM me and point it out to me.<br /><br />DropBox, the best free file syncing service there is.<br />

Yin

I have absolutely no idea. Never played it before. But if it's like what I posted, then yes. :)
Newly formed MUGEN, RPG Maker, and BOR forum.
http://cavernofcreativity.com
Opening in September
My Partner in crime = TREXRELL

G_G

So you're pretty much saying Force Points are Action Points?
You attack it takes away some points.
You use a skill it takes away some points
etc.
and every turn you get a few points back?

Reno-s--Joker

Sounds like it. This system sounds interesting and restrictive - i.e. challenging. I hate games where you can just spam attack the bad guys and never use any skills. :/

I don't think I'm the man for the job but I'd be interested to see if someone else can do this. :) Good luck. o.O

G_G

What I have setup right now is everytime you attack it takes away 5 action points. Skill 5, Item 3, Defend, 3 and I'm working on every turn you get 5 points back. All the things are customizable if I can get this.

Yin

Yes, exactly. But I want it to be for each skill too if it's possible, and remove different amount of points for different characters. So if I have a mage or something, it will take out less points for magic as it would for a warrior.
Newly formed MUGEN, RPG Maker, and BOR forum.
http://cavernofcreativity.com
Opening in September
My Partner in crime = TREXRELL

G_G

I'm not that advanced. I can get the basic part maybe and maybe someone else can get the rest.

Yin

OK that's great! I will be sure to credit you too!
Newly formed MUGEN, RPG Maker, and BOR forum.
http://cavernofcreativity.com
Opening in September
My Partner in crime = TREXRELL

G_G

Well I about have it done Yin. :D
I'll probably have to get it to you tomorrow though. Sorry :^_^':

Yin

No problem, I'll check back here tomorrow!  :)
Newly formed MUGEN, RPG Maker, and BOR forum.
http://cavernofcreativity.com
Opening in September
My Partner in crime = TREXRELL


G_G

Okay Yin heres what I got done right now I'll wait to give you the script til you answer my next question.
First what I have done is
Every times the round starts, each actor gets a certain amount of points per turn, attack, item, and skill take away action points, and defend adds action points to avoid having the actor not being able to do anything and not be able to move on with the battle.

Okay so I can make each skill take away a certain amount of Force Points on one condition, the only way I can think of doing it is going to require you to type alot of lines of code like so
$data_skills[id here].fp = amount of points here


You'd have to do that with every skill, or you can just have it every skill use the same amount.

Blizzard

Wouldn't this work with normal SP, SP consuming attacks and SP regen combined?
Check out our game brands:

Daygames
Game Night Games
Chugnar Games

Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

G_G

April 26, 2009, 07:26:00 am #14 Last Edit: April 26, 2009, 07:54:30 am by game_guy
Wait ;__; are you saying I just did this for nothing xD

Oh well I'll still make it and post it but yea that'd make it way easier :P


@Yin: Nvm about using the
$data_skills[id].fp = fp here

Blizzard taught me something new :D so I'll do the each skill uses a certain amount of FP and if you dont define the skill FP it'll just have a defualt then.

Yin

April 26, 2009, 08:53:20 am #15 Last Edit: April 26, 2009, 09:03:13 am by Yin
Ok, it sounds great so far and user friendly too! And Blizzard, I think it would work like that, but I don't want a regular attack or items to consume MP. I DO want the player to be able to run out of MP so they can use MP regenerating items.
And even if I did have to do it like
$data_skills[id].fp = fp here
It would still be great (yeah I'd have hundreds of lines, but it would be worth it). :) I can't wait to finally see it. I don't exactly know how to power up (not really used to forums) but if I did I'd give you lots of them, you have been very helpful and soooo speedy.

Oh and game_guy, is this for default or are you making this using the system I posted?

PS: I am so not supposed to be up this early... lol
Newly formed MUGEN, RPG Maker, and BOR forum.
http://cavernofcreativity.com
Opening in September
My Partner in crime = TREXRELL

G_G

right now its for default but once i get this dam bug fixed I'll convert it for you to your system

Yin

Ok, perfect! BTW I found the power up button. (which definitely wasn't there before or at least it wasn't so obvious) so, yeah.... Much power. :D
Newly formed MUGEN, RPG Maker, and BOR forum.
http://cavernofcreativity.com
Opening in September
My Partner in crime = TREXRELL

G_G

April 26, 2009, 09:19:06 am #18 Last Edit: April 26, 2009, 09:20:40 am by game_guy
http://cid-b4a439303792c7fe.skydrive.live.com/self.aspx/.Public/Script%20Bed.exe Just a demo of the defualt one still has one bug in it that I'm trying to fix.

Anyways attack, use different skills, use differennt items and whatnot. Notice how the FP (force points) change every round and whatnot.

Offtopic
The power up button goes there once you have more than 10 posts.

Dont quite mess with the config yet just kinda play with the demo I still have to fix a bug.

Yin

April 26, 2009, 09:37:43 am #19 Last Edit: April 26, 2009, 09:50:59 am by Yin
OK, I'm checking it out now.
EDIT:
OK, I noticed that when I choose and then cancel, the points are still added and points also go over 20 (when I do that). I'll continue testing to see what else I can find. Oh and you said don't really mess with the config yet right? So I'm just testing that with the default settings.
Newly formed MUGEN, RPG Maker, and BOR forum.
http://cavernofcreativity.com
Opening in September
My Partner in crime = TREXRELL

Reno-s--Joker

April 26, 2009, 09:44:14 am #20 Last Edit: April 26, 2009, 09:45:41 am by Reno-s--Joker
(Lol epic bug with cancelling actions. :D)
Looks good. Not to repeat myself it is a great system. :xD:

EDIT: My bad, you got it in the right place for the skills, just not for Attack/Defend and stuff.

Yin

Also, when you press the attack button, and cancel before choosing an enemy, it still goes down, but it doesn't update. You just know only when you can't choose it anymore.
Newly formed MUGEN, RPG Maker, and BOR forum.
http://cavernofcreativity.com
Opening in September
My Partner in crime = TREXRELL

GAX

Why hasn't someone brought up Soul Rage yet?  It probably wouldn't be hard to add a regeneration factor to Soul Rage.

Rule 2: ShowHide
Quote from: Rule No.2Keep your signatures at reasonable size. The pictures in your signature may altogether be no more than 200kB and take up an area of 1600px2. That means 2 pictures of 400x200 are fine, one picture of 800x200 is fine and so on. Also your pictures height must not exceed 200 pixels, width can be as big as you want as long as your pictures match the other criteria. Every signature not matching this criteria is a subject of the moderator team to remove and leave this rule as message in your signature.

G_G

Ok sorry havent been on all day. Had to hang out with latisha anyways I'm going to work on the script some more and try to fix that nasty bug.

Yin

Oh, it's np. I am patient!  :haha: I'll keep checking back.
Newly formed MUGEN, RPG Maker, and BOR forum.
http://cavernofcreativity.com
Opening in September
My Partner in crime = TREXRELL

Reno-s--Joker

Quote from: PKMNTrainer RED on April 26, 2009, 07:44:52 pm
Why hasn't someone brought up Soul Rage yet?  It probably wouldn't be hard to add a regeneration factor to Soul Rage.

I tried that myself, and called them force points actualy come to think about it... o_O
...... But yeah you have a good point. :^_^':

It's G_G's call.

Yin

What is soul rage? If it can make his job easier and still have the same effect then that's a great idea! What do you think game_guy? And Reno, I guess great minds think alike.  :D
Newly formed MUGEN, RPG Maker, and BOR forum.
http://cavernofcreativity.com
Opening in September
My Partner in crime = TREXRELL

Reno-s--Joker

Soul Rage is a sort of skill points system which has a few similarities to this Force Points idea. The best way I could describe it is like a limit break bar which can be used up in parts to perform skills attached to equipment/your limit skill. G_G would just have to change the SR increasing/decreasing to when you perform certain commands (instead of when you get hurt/make a move) but the limiting at 100% is there and it comes with a bar (if you want).

Anyways, it lives here: http://forum.chaos-project.com/index.php?topic=110.0 (along with some other scripts)

Again its his call but I reckon he's getting somewhere with what he has in this script so far. :)

... And lol, thanks! :D

Yin

April 27, 2009, 12:56:12 am #28 Last Edit: April 27, 2009, 01:03:02 am by Yin
Oh, I see, well it's ultimately up to game_guy if he wants to use this as a base, but as you said, he has a nice chunk already. And a bar would be nice, but is not really required, I've seen a bar script and it looks REALLY complicated.  :wacko:
Newly formed MUGEN, RPG Maker, and BOR forum.
http://cavernofcreativity.com
Opening in September
My Partner in crime = TREXRELL

Blizzard

My bar script looks really complicated. But then again, my bar script can draw 7 different styles. #_#
Check out our game brands:

Daygames
Game Night Games
Chugnar Games

Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

Yin

That is true, but man I can't tell left from right when I'm just looking at it! :P
Newly formed MUGEN, RPG Maker, and BOR forum.
http://cavernofcreativity.com
Opening in September
My Partner in crime = TREXRELL

G_G

see my problem isnt having it not take away points or adding it every turn, mine is knowing what amount to subtract when you cancel to go to the previous actor.

WAIT I GOT IT!!!! This just now occured to me, I'll have it take away the Force POints after the action is done instead of it taking it away right when you choose the selection.

Yin

April 27, 2009, 06:09:46 pm #32 Last Edit: April 27, 2009, 06:12:54 pm by Yin
Good to know that it's coming along well  :) Once I have this, I'll know exactly how to set up my enemies.
Newly formed MUGEN, RPG Maker, and BOR forum.
http://cavernofcreativity.com
Opening in September
My Partner in crime = TREXRELL

G_G

April 27, 2009, 10:35:03 pm #33 Last Edit: April 27, 2009, 10:49:04 pm by game_guy
GOOD NEWS MY GOOD FRIEND YIN!!!!!
The script is done! It works perfectly! I'll still need to get it for your battle system havent looked into it yet but I will. First the demo
http://cid-b4a439303792c7fe.skydrive.live.com/self.aspx/.Public/Script%20Bed.exe

Now to configure it go to
Configure + Addon script
change the max amount of Force POints for each thing.
Attack
Defend
PointsPerTurn
Starting Points

Then go down to the Configure a bit below and you'll see one for skill and items.
Each item and skill can have its own amount of force points used and if theres not enough force points for any action it wont let you attack also when you choose Fight it'll add three points but when you cancel back it'll take away those three points.

The instructions are all in the Config + Addon to configure the stuff. They're not the best but hopefully you'll get it. Ignore teh Configure for Weapons thing it says that for both skills and items but I wasnt thinking right.

To add force points use
$game_actors[id here].add_force_points(amount here)

To minus points
$game_actors[id here].take_force_points(amount here)

Yin

Ok, now it works! Thank you! It may be difficult to implement this in the system I'm using though. At least the battle system looks complicated.
Newly formed MUGEN, RPG Maker, and BOR forum.
http://cavernofcreativity.com
Opening in September
My Partner in crime = TREXRELL

G_G

I found a bug in the items. Use this demo instead.

http://cid-b4a439303792c7fe.skydrive.live.com/self.aspx/.Public/Script%20Bed.exe

Yin

Oh, good thing you caught it, I guess I was so excited that I didn't notice? Or was it not so obvious?
Newly formed MUGEN, RPG Maker, and BOR forum.
http://cavernofcreativity.com
Opening in September
My Partner in crime = TREXRELL

G_G

it onyl happened when you tried to use items

Yin

Oh. So I found another bug. The Force points go passed 20. Is that how you meant to do it or is that a bug?
Newly formed MUGEN, RPG Maker, and BOR forum.
http://cavernofcreativity.com
Opening in September
My Partner in crime = TREXRELL

G_G

thats how it was intended. Thats an easy fix though. I'll ad another option for Max Force Points

Yin

This is coming along perfectly! I really wish I could script :( But I'm afraid I'm just a real dunce when it comes to things like that.
Newly formed MUGEN, RPG Maker, and BOR forum.
http://cavernofcreativity.com
Opening in September
My Partner in crime = TREXRELL

G_G

I keep getting errors and stuff when I run test the project with those scripts. It cant find files and stuff like that. SO I cant say for sure if it works.

Yin

Should I just give you the demo for the battle system? If so, it is here. http://punkid89.b1.jcink.com/index.php?showtopic=588&st=0 or i can send you a copy of my test map which has the scripts used in my game. You have to give me time to make the demo though I just have to take out some files so that the size isn't so big.
Newly formed MUGEN, RPG Maker, and BOR forum.
http://cavernofcreativity.com
Opening in September
My Partner in crime = TREXRELL

G_G

Upload the demo map somewhere and email it to me or pm it to me.
email is gameguy27@hotmail.com

Yin

April 28, 2009, 06:30:27 pm #44 Last Edit: April 28, 2009, 07:12:30 pm by Yin
Making now, I'll pm it to you. Ok, I tried to trim out all the extra stuff, but it still was too big, I'm just going to upload it to sendspace. Here it is!
http://www.sendspace.com/file/ukz5mq Just talk to the yellow flower to the right to get into a fight. If anything like a missing file comes up, just let me know.
Newly formed MUGEN, RPG Maker, and BOR forum.
http://cavernofcreativity.com
Opening in September
My Partner in crime = TREXRELL

G_G

I run the game and get a
"Failed to create bitmap" in Tons Part 2, so I commented those lines and I get a "Failed To create bitmap in a bunch of other scipts"
Tons Part 2
Face Add On THing
MACL and more

Yin

Hmm, that's weird? :wacko: The demo I made seems to work fine on my end. Does it say which images? Or does it just say that it failed? Sorry for being such a pain... Hmm... Well, can you just use the demo for the battle system and then I'll put it in my game? Any errors in my game and I won't hold you accountable.  :P You would be done with me  :P
Newly formed MUGEN, RPG Maker, and BOR forum.
http://cavernofcreativity.com
Opening in September
My Partner in crime = TREXRELL

G_G

The demo is still ther you could try putting them in the game.

Yin

Ok, I will try it, oh and is that the demo with the max points?
Newly formed MUGEN, RPG Maker, and BOR forum.
http://cavernofcreativity.com
Opening in September
My Partner in crime = TREXRELL

King Munkey

Doubtful since he put the demo up before he said he was going to do the max points

G_G Is my hero!
Munkey != monkey
Munkey > monkey

Yin

Ok, I will try this one in my game.
Newly formed MUGEN, RPG Maker, and BOR forum.
http://cavernofcreativity.com
Opening in September
My Partner in crime = TREXRELL

King Munkey


G_G Is my hero!
Munkey != monkey
Munkey > monkey

Yin

Nope doesn't work, but I'll see what I can do. Thanks game_guy. This is good, and it can help me with my scripting. :) You WILL be credited.
Newly formed MUGEN, RPG Maker, and BOR forum.
http://cavernofcreativity.com
Opening in September
My Partner in crime = TREXRELL

Blizzard

Quote from: Yin on April 28, 2009, 09:00:01 pm
Hmm, that's weird? :wacko: The demo I made seems to work fine on my end. Does it say which images? Or does it just say that it failed? Sorry for being such a pain... Hmm... Well, can you just use the demo for the battle system and then I'll put it in my game? Any errors in my game and I won't hold you accountable.  :P You would be done with me  :P


There's a piece of code that is trying to create a Bitmap with width and/or height less than 1.
Check out our game brands:

Daygames
Game Night Games
Chugnar Games

Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

G_G

So you're saying you're Tons of Add Ons ultimate font override (which is currently off) is making a bitmap with height less then 1? O.o by they way Yin none of your scripts are in the right order. You have tons of scripts below tons and whatnot.

You want all scripts that arent blizzards on top of blizzards scripts.
http://forum.chaos-project.com/index.php?topic=23.0

Yin

When I do it like that, none of Blizzard's scripts work. That's why it's in that order. I really like all of blizzard's battle effects, and that is the only way they will work. I know Zeriab told me that my setup is a scripter's nightmare lol, and another scripter told me that it made no sense how it's still working, but it seems to work perfectly fine.  :???:
Newly formed MUGEN, RPG Maker, and BOR forum.
http://cavernofcreativity.com
Opening in September
My Partner in crime = TREXRELL