question about the formula

angelique

Veteran
Veteran
Joined
Feb 11, 2014
Messages
74
Reaction score
0
First Language
English
Primarily Uses
Due to copyright and permission being too complicated and getting denied by the creator of the avatar site I was using for busts...the previous project has been shut down.

-----------

On to topic:

I'm trying to make a game where theres dice play in the formula...I have a demo...but I wanna add a new skill but I don't know how to add the formula for the new skill yet...any suggestions?
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,365
Reaction score
7,676
First Language
German
Primarily Uses
RMMV
it would help if you tell us what the skill is supposed to do - we can't tell you how to solve a problem if we don't know what the problem is ;-)
 

angelique

Veteran
Veteran
Joined
Feb 11, 2014
Messages
74
Reaction score
0
First Language
English
Primarily Uses
Well it applies for all types of skills since thats what the original D&D version does is use dice for attacks and skills.
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,365
Reaction score
7,676
First Language
German
Primarily Uses
RMMV
You don't understand - the problem is with your wording. You can't fit a dice (a physical object that you can take into your hand) into a mathematical text line.


So what do you want to place into the damage formula? If you want to place a random number there that can be achieved by the ruby codes for the randomizer, but that does not return regular numbers.


So you'll need multiplier or a special script call to convert numbers.


But that all depends on what exactly you want as a result, script functions need to be written to specifications.


Or to summarize:


Basically anything can be done in the formula.


Some things need a lot more work than others however.


And only with a more detailed description of what you want there can we tell you how much work it would be to make that happen.
 

angelique

Veteran
Veteran
Joined
Feb 11, 2014
Messages
74
Reaction score
0
First Language
English
Primarily Uses
The demo I had had a dice roll mechanism that said "You rolled a 8 + 2 critical hit" thats what I want >_>
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,365
Reaction score
7,676
First Language
German
Primarily Uses
RMMV
That will need scripting - and a lot of it.

Changing numbers being processed in the damage formula is easy, but to display parts of them (instead of only the result) you'll have to change the Vocabs to include multiple parts of the formula, for that you'll have to change the ruby code calling the vocab in the battle engine, then that part of the battle engine needs access to the different numbers to be used.

That in turn would mean you have to change how to place the damage formula into the game, and fit all changes together.

That is not easily done - you might search if there is a script that does this, but a year ago there wasn't one and I don't remember seeing something like that since my last going through the master script list. There have been some scripts to change Ace into something similiar to D&D and one of them might help you, so search for yourself.
 

Trihan

Speedy Scripter
Veteran
Joined
Apr 12, 2012
Messages
2,604
Reaction score
1,960
First Language
English
Primarily Uses
RMMV
Sounds like you just want to roll two random numbers between 1 and 6 and output the result: the script snippet I linked you to does that, so what is it you want that I'm missing?
 

Iavra

Veteran
Veteran
Joined
Apr 9, 2015
Messages
1,797
Reaction score
863
First Language
German
Primarily Uses
Adding the result of the roll to the game message.


I can't test it currently, but as far as i'm aware, the message doesn't get shown until "wait_for_message" is calles, yes? If so, the message is hopefully available inside the damage formula and can be modified accordingly.
 

angelique

Veteran
Veteran
Joined
Feb 11, 2014
Messages
74
Reaction score
0
First Language
English
Primarily Uses
That will need scripting - and a lot of it.

Changing numbers being processed in the damage formula is easy, but to display parts of them (instead of only the result) you'll have to change the Vocabs to include multiple parts of the formula, for that you'll have to change the ruby code calling the vocab in the battle engine, then that part of the battle engine needs access to the different numbers to be used.

That in turn would mean you have to change how to place the damage formula into the game, and fit all changes together.

That is not easily done - you might search if there is a script that does this, but a year ago there wasn't one and I don't remember seeing something like that since my last going through the master script list. There have been some scripts to change Ace into something similiar to D&D and one of them might help you, so search for yourself.
I have that game/demo with those scripts but I'm still trying to figure out what do I put in the formula that the creator of the demo did for my own skills.

Sounds like you just want to roll two random numbers between 1 and 6 and output the result: the script snippet I linked you to does that, so what is it you want that I'm missing?
ah I'll look at it again,
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

so hopefully tomorrow i get to go home from the hospital i've been here for 5 days already and it's driving me mad. I miss my family like crazy but at least I get to use my own toiletries and my own clothes. My mom is coming to visit soon i can't wait to see her cause i miss her the most. :kaojoy:
Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD

Forum statistics

Threads
105,868
Messages
1,017,078
Members
137,580
Latest member
Snavi
Top