Targeting Random En...
 
Notifications
Clear all

Targeting Random Enemies and Levelling Up Skills

2 Posts
2 Users
0 Reactions
157 Views
0
Topic starter

Hi all! I have a couple questions about combat, as per the title. 

  • Is it possible to have skills that target random enemies and
  • Is it possible to level up the damage of skills alongside the heroes? I can see that it's possible to unlock new skills as the heroes level up, but I don't want previous skills to become obsolete because their damage output is less significant. 

I'm new to coding and game making in general, so, while I suspect it's something to do with variables, I just don't know how I would go about it. Any help would be appreciated, thanks a bunch 

1 Answer
0
  1. I'm not sure how to target a random enemy, but if the ID of an enemy within a troop can be retrieved in a formula you could do something like "Target: All enemies. Target formula: t.id === Math.random()*troop.count". I attached a screenshot below, but this doesn't actually work! The enemy ID and troop size probably have to be something different.
  2. Of course it is! Skills that incorporate any stat already kind of level with you but you probably want to read the user's Level and deal damage based off that? If you want to deal 10 damage per user's level you should use the damage formula "u.lv*10". If you can give the specific idea you want, I can help you with that, as well!

Random enemy mockup (does not work!)

Damage based on level:

 

If you want to share your specific damage-idea, I'll gladly help out!

This post was modified 2 days ago by The Ramen Dutchman
Blep.13 Topic starter 05/05/2025 2:56 pm

@the_ramen_dutchman Thanks for your answer! I did end up working out how to scale with level shortly after posting after I learned what the abbreviations in the original formulae meant, haha, but I appreciate your breaking it down! I ended up scrapping the idea for random targets, at least until I get a better understanding of how to build skills.

With a similar thought in mind, do you know how to utilise the 'temporarily change target' option in effects? I read the section in RPG Paper Maker's guide, but I don't know what 'you have to return an array of battlers' actually means in practice.

Share: