Dynamic Features

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,365
Reaction score
7,675
First Language
German
Primarily Uses
RMMV
@ksjp17


if I read your post correctly, you misunderstood what this script does.


This script adds or removes features - nothing else.


remove features works for ex-params and sp-params because those are only set by features, but the main parameters are set by the class values, the features only modify them.


So if you remove all features modifying the params, it will cause them to go to the class default and NOT to zero.


To get a parameter to zero, you need to add a feature that multiplies the value with 0%
 

Kes

Veteran
Veteran
Joined
Aug 3, 2012
Messages
22,299
Reaction score
11,712
First Language
English
Primarily Uses
RMVXA
To get a parameter to zero, you need to add a feature that multiplies the value with 0%


Do you know by any chance how that would be done? I tried the following, but it does not quite work


add_feature:)actor, 1, :param, 2, *0)


This produces the result 1, not zero.  If necessary I can live with this, but I would like zero if that is at all possible.
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,365
Reaction score
7,675
First Language
German
Primarily Uses
RMMV
That is something Shaz has to answer, but it might be that the engine forces a minimum of 1 on all main parameters, and that would require a plugin to change the parameter limits to overwrite.
 
  • Like
Reactions: Kes

Kes

Veteran
Veteran
Joined
Aug 3, 2012
Messages
22,299
Reaction score
11,712
First Language
English
Primarily Uses
RMVXA
I wondered if that was the reason.  If so, I'll live with it.


Thank you for your help.
 

Engr. Adiktuzmiko

Chemical Engineer, Game Developer, Using BlinkBoy'
Veteran
Joined
May 15, 2012
Messages
14,682
Reaction score
3,003
First Language
Tagalog
Primarily Uses
RMVXA
I just tested it and yes the game seems to limit params to a minimum of 1 by default (except for maximum mp).. so to fix it just pop this into your scripts

Code:
class Game_BattlerBase

  def param_min(param_id)
    return 0
  end

end
 
Last edited by a moderator:

Kes

Veteran
Veteran
Joined
Aug 3, 2012
Messages
22,299
Reaction score
11,712
First Language
English
Primarily Uses
RMVXA
@Engr. Adiktuzmiko Thanks, that makes everything neat and tidy.


I think I can now mark this one as solved.
 
Last edited by a moderator:

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
lol - please don't close my thread ;)
 
Last edited by a moderator:

Kes

Veteran
Veteran
Joined
Aug 3, 2012
Messages
22,299
Reaction score
11,712
First Language
English
Primarily Uses
RMVXA
I didn't - I had a momentary blip and thought this was a thread I'd started (I'd had one on a related aspect of this).  As soon as I'd posted it I realised my error.  
 

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

Latest Threads

Latest Posts

Latest Profile Posts

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
How many parameters is 'too many'??

Forum statistics

Threads
105,867
Messages
1,017,061
Members
137,575
Latest member
akekaphol101
Top