A few ideas for flare...

A few ideas for flare...

I have a couple of ideas that I think could sagnificantly improve the engine.

1. Basic prgramming operators such as if/elif/else, var (i.e. global variables) and random()

This would really improve the engine. Here is how I can see it working:

[power]

id=1

....

if physical >= 10: {

post_effect=stun,0,1s

}

To give a stun effect when the player has Physical 10 or more.

Global variables that could be acessed by "event" triggers and anywhere else. Defined like so:

var=[Variable_Name],[Value]

Value can be anything, a string, a number, etc...

To set randomly:

var=[Variable_Name],random,[Value_Min],[Value_Max]

This code can be used in any file, even loot.

For example, a certain item could only be found in loot if the player has enough of a certain stat... luck perhaps?

 

2. Degradation - Items can be equipped below their requirement, bu their effectiveness is reduced

This means an item requires Physical 10

requires_primary=physical,10

OR

requires_stat=physical,10

This means an item only requires Physical 8, but is most effective at 10 or more:

requires_primary=physical,8,10

OR

requires_stat=physical,8,10

For each point below the second number (in this case 10), the players stats will be reduced while the item is equipped. The stats that are reduced are defined like so:

stat_degraded=[stat name],[% reduction per level]

For example:

stat_degraded=accuracy,5

To reduce accuracy by 5% of your current accuracy for each level below the requirement.

 

Sorry I cannot make this myself, I only do Python, so I don't have any ide how to do C. I know you don't have to add either of these, but both, especially the first one, would make the engine much better.