In my game, I want more interaction with the environment but I'm not sure of how make it work properly.
For example. I want that the final damage input of skills are affected by the terrain, like:
In a mountain, Wind skills receive damage boost of 10%-30% and Earth skills damage decreased by 10-20% depending on height.
In a beach, water skills are increased by 40% because of the ocean presence and moist air. So the weather would play a part too. Dry areas would diminish the water damage because of both the lack of water and dry air. So the boost would be not a simple boost of 30% on all situations where a element is more present. The boost could range from 10%-40%. Is this possible?
I think I could do that through variables in normal situations, but in the world map how can I assign the terrain effects to different areas inside the same map?
The variables would go on the skill damage formula like:
1 - water terrain
2 - earth.....
and
1 - moist ar
2 - dry air
3 - rain
and
1 - underground area - earth damage increased
2 - normal ground level - normal damage
3 - mid height - earth damage decreased
4 - high height - earth damage decreased even more
Maybe switches are easier for this system? I don't know! I'm trying to make this work but opinions would be welcome. Thanks in advance!
For example. I want that the final damage input of skills are affected by the terrain, like:
In a mountain, Wind skills receive damage boost of 10%-30% and Earth skills damage decreased by 10-20% depending on height.
In a beach, water skills are increased by 40% because of the ocean presence and moist air. So the weather would play a part too. Dry areas would diminish the water damage because of both the lack of water and dry air. So the boost would be not a simple boost of 30% on all situations where a element is more present. The boost could range from 10%-40%. Is this possible?
I think I could do that through variables in normal situations, but in the world map how can I assign the terrain effects to different areas inside the same map?
The variables would go on the skill damage formula like:
1 - water terrain
2 - earth.....
and
1 - moist ar
2 - dry air
3 - rain
and
1 - underground area - earth damage increased
2 - normal ground level - normal damage
3 - mid height - earth damage decreased
4 - high height - earth damage decreased even more
Maybe switches are easier for this system? I don't know! I'm trying to make this work but opinions would be welcome. Thanks in advance!