<?xml version="1.0" encoding="UTF-8"?>        <rss version="2.0"
             xmlns:atom="http://www.w3.org/2005/Atom"
             xmlns:dc="http://purl.org/dc/elements/1.1/"
             xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
             xmlns:admin="http://webns.net/mvcb/"
             xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
             xmlns:content="http://purl.org/rss/1.0/modules/content/">
        <channel>
            <title>
									Targeting Random Enemies and Levelling Up Skills - Questions				            </title>
            <link>https://rpg-paper-maker.com/forum/questions/targeting-random-enemies-and-levelling-up-skills/</link>
            <description>RPG Paper Maker Discussion Board</description>
            <language>en-US</language>
            <lastBuildDate>Sat, 17 Oct 2026 09:15:40 +0000</lastBuildDate>
            <generator>wpForo</generator>
            <ttl>60</ttl>
							                    <item>
                        <title>Answer to: Targeting Random Enemies and Levelling Up Skills</title>
                        <link>https://rpg-paper-maker.com/forum/questions/targeting-random-enemies-and-levelling-up-skills/#post-1194</link>
                        <pubDate>Mon, 12 May 2025 16:57:02 +0000</pubDate>
                        <description><![CDATA[You got me searching on the right track, though!
Based on what I see in a battle script here
If I could access a battle side from a formula or script, such as `battle.side[CharacterKind::Mo...]]></description>
                        <content:encoded><![CDATA[
<p>one of the affects that a status can have is to 'attack a random enemy'.</p>
<p></p>
<p>You got me searching on the right track, though!</p>
<p>Based on what I see in a battle script here https://github.com/RPG-Paper-Maker/Game-Scripts/blob/develop/src/Scene/BattleStartTurn.ts#L205</p>
<p>If I could access a battle side from a formula or script, such as `battle.side[Mathf.random(0, battle.side.length -1)]` that would fix this but I think this needs an extensive plugin to fix... Sorry for now!</p>]]></content:encoded>
						                            <category domain="https://rpg-paper-maker.com/forum/questions/">Questions</category>                        <dc:creator>The Ramen Dutchman</dc:creator>
                        <guid isPermaLink="true">https://rpg-paper-maker.com/forum/questions/targeting-random-enemies-and-levelling-up-skills/#post-1194</guid>
                    </item>
				                    <item>
                        <title>RE: Targeting Random Enemies and Levelling Up Skills</title>
                        <link>https://rpg-paper-maker.com/forum/questions/targeting-random-enemies-and-levelling-up-skills/#post-1191</link>
                        <pubDate>Fri, 09 May 2025 22:17:49 +0000</pubDate>
                        <description><![CDATA[@the_ramen_dutchman I haven&#039;t yet. A random spark of an idea though - within the status window, one of the affects that a status can have is to &#039;attack a random enemy&#039;. Would it be possible ...]]></description>
                        <content:encoded><![CDATA[@the_ramen_dutchman I haven't yet. A random spark of an idea though - within the status window, one of the affects that a status can have is to 'attack a random enemy'. Would it be possible to afflict a status within the skill that applies the 'attack random enemy' restriction before the attacking part of the skill? I have no idea if that made any sense, or if this is just the ramblings of the chronically sleep deprived - my apologies if it's the latter.

on the plus side, I suppose that formula would work if your enemy troops were only made up of the same enemy types. :)]]></content:encoded>
						                            <category domain="https://rpg-paper-maker.com/forum/questions/">Questions</category>                        <dc:creator>Blep.13</dc:creator>
                        <guid isPermaLink="true">https://rpg-paper-maker.com/forum/questions/targeting-random-enemies-and-levelling-up-skills/#post-1191</guid>
                    </item>
				                    <item>
                        <title>Answer to: Targeting Random Enemies and Levelling Up Skills</title>
                        <link>https://rpg-paper-maker.com/forum/questions/targeting-random-enemies-and-levelling-up-skills/#post-1188</link>
                        <pubDate>Fri, 09 May 2025 21:02:02 +0000</pubDate>
                        <description><![CDATA[@blep-13 Did you figure out how to target a random enemy? &#039;cause I&#039;m not sure I have &#x1f605;
I can confirm that &quot;t.id&quot; does not refer to the first, second, third etc. enemy in the troop b...]]></description>
                        <content:encoded><![CDATA[<p>@blep-13 Did you figure out how to target a random enemy? 'cause I'm not sure I have &#x1f605;</p>
<p>I can confirm that "t.id" does not refer to the first, second, third etc. enemy in the troop but to the enemy type ID in the database, referring to this ID:</p>
<p><img src="https://i.postimg.cc/Cxdc6mHX/enemy-id.webp" alt="" width="1100" height="674" /></p>
<p>This is still useful; if I'd ever want to make a skill that targets a specific enemy or deals more/less damage to a specific enemy type I could use this rather than referring to someone that might change such as their English name.</p>
<p>But that does mean that setting a skill to target all enemies and then using this target formula does not do what you want:</p>
<pre contenteditable="false">t.hp &gt; 0 &amp;&amp; t.id === Math.floor(Math.random() * 3)</pre>
<p>I was hoping this would randomly target the first, second or third enemy in the troop but instead it randomly decides whether it targets Woolies, Mushroomies or nobody &#x1f643;</p>]]></content:encoded>
						                            <category domain="https://rpg-paper-maker.com/forum/questions/">Questions</category>                        <dc:creator>The Ramen Dutchman</dc:creator>
                        <guid isPermaLink="true">https://rpg-paper-maker.com/forum/questions/targeting-random-enemies-and-levelling-up-skills/#post-1188</guid>
                    </item>
				                    <item>
                        <title>RE: Targeting Random Enemies and Levelling Up Skills</title>
                        <link>https://rpg-paper-maker.com/forum/questions/targeting-random-enemies-and-levelling-up-skills/#post-1183</link>
                        <pubDate>Thu, 08 May 2025 21:09:49 +0000</pubDate>
                        <description><![CDATA[@the_ramen_dutchman No worries! :)

That&#039;s the one! I appreciate the aid and wish you smooth sailing with your own project :)]]></description>
                        <content:encoded><![CDATA[@the_ramen_dutchman No worries! :)

That's the one! I appreciate the aid and wish you smooth sailing with your own project :)]]></content:encoded>
						                            <category domain="https://rpg-paper-maker.com/forum/questions/">Questions</category>                        <dc:creator>Blep.13</dc:creator>
                        <guid isPermaLink="true">https://rpg-paper-maker.com/forum/questions/targeting-random-enemies-and-levelling-up-skills/#post-1183</guid>
                    </item>
				                    <item>
                        <title>Answer to: Targeting Random Enemies and Levelling Up Skills</title>
                        <link>https://rpg-paper-maker.com/forum/questions/targeting-random-enemies-and-levelling-up-skills/#post-1179</link>
                        <pubDate>Wed, 07 May 2025 21:02:05 +0000</pubDate>
                        <description><![CDATA[Sorry for the belated reply!
I think you mean &quot;Temporarily change target: You can temporarily change the target for this effect only. You have to return an array of battlers. Example: [u.ba...]]></description>
                        <content:encoded><![CDATA[<p>Sorry for the belated reply!</p>
<p>I think you mean "Temporarily change target: You can temporarily change the target for this effect only. You have to return an array of battlers. Example:  will be the user of the item/skill/weapon." from the <a href="https://rpg-paper-maker.gitbook.io/rpg-paper-maker/essentials/battle-system#effects" target="_blank" rel="noopener">Effects description</a>, right?</p>
<p>From that description I'm not exactly sure what it does, either. I'll look at the game scripts and try some things out..!</p>]]></content:encoded>
						                            <category domain="https://rpg-paper-maker.com/forum/questions/">Questions</category>                        <dc:creator>The Ramen Dutchman</dc:creator>
                        <guid isPermaLink="true">https://rpg-paper-maker.com/forum/questions/targeting-random-enemies-and-levelling-up-skills/#post-1179</guid>
                    </item>
				                    <item>
                        <title>RE: Targeting Random Enemies and Levelling Up Skills</title>
                        <link>https://rpg-paper-maker.com/forum/questions/targeting-random-enemies-and-levelling-up-skills/#post-1170</link>
                        <pubDate>Mon, 05 May 2025 12:56:09 +0000</pubDate>
                        <description><![CDATA[@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...]]></description>
                        <content:encoded><![CDATA[@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.]]></content:encoded>
						                            <category domain="https://rpg-paper-maker.com/forum/questions/">Questions</category>                        <dc:creator>Blep.13</dc:creator>
                        <guid isPermaLink="true">https://rpg-paper-maker.com/forum/questions/targeting-random-enemies-and-levelling-up-skills/#post-1170</guid>
                    </item>
				                    <item>
                        <title>Answer to: Targeting Random Enemies and Levelling Up Skills</title>
                        <link>https://rpg-paper-maker.com/forum/questions/targeting-random-enemies-and-levelling-up-skills/#post-1164</link>
                        <pubDate>Sun, 04 May 2025 21:27:59 +0000</pubDate>
                        <description><![CDATA[I&#039;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 &quot;Target: All enemies. Target formula: t.id === M...]]></description>
                        <content:encoded><![CDATA[<ol>
<li>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, <strong>but this doesn't actually work!</strong> The enemy ID and troop size probably have to be something different.</li>
<li>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!</li>
</ol>
<p>Random enemy mockup (does not work!)<br /><img src="https://i.postimg.cc/mr9Yh83t/target-random-enemy.webp" alt="" width="1100" height="674" /></p>
<p>Damage based on level:<br /><img src="https://i.postimg.cc/D00m4zVB/level-damage.webp" alt="" width="1099" height="673" /></p>
<p> </p>
<p>If you want to share your specific damage-idea, I'll gladly help out!</p>]]></content:encoded>
						                            <category domain="https://rpg-paper-maker.com/forum/questions/">Questions</category>                        <dc:creator>The Ramen Dutchman</dc:creator>
                        <guid isPermaLink="true">https://rpg-paper-maker.com/forum/questions/targeting-random-enemies-and-levelling-up-skills/#post-1164</guid>
                    </item>
				                    <item>
                        <title>Targeting Random Enemies and Levelling Up Skills</title>
                        <link>https://rpg-paper-maker.com/forum/questions/targeting-random-enemies-and-levelling-up-skills/#post-1156</link>
                        <pubDate>Mon, 14 Apr 2025 20:51:29 +0000</pubDate>
                        <description><![CDATA[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 ...]]></description>
                        <content:encoded><![CDATA[Hi all! I have a couple questions about combat, as per the title. <br />
<ul>
<li>Is it possible to have skills that target random enemies and</li>
<li>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. </li>
</ul>
<p>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 </p>]]></content:encoded>
						                            <category domain="https://rpg-paper-maker.com/forum/questions/">Questions</category>                        <dc:creator>Blep.13</dc:creator>
                        <guid isPermaLink="true">https://rpg-paper-maker.com/forum/questions/targeting-random-enemies-and-levelling-up-skills/#post-1156</guid>
                    </item>
							        </channel>
        </rss>
		