RMRK is retiring.
Registration is disabled. The site will remain online, but eventually become a read-only archive. More information.

RMRK.net has nothing to do with Blockchains, Cryptocurrency or NFTs. We have been around since the early 2000s, but there is a new group using the RMRK name that deals with those things. We have nothing to do with them.
NFTs are a scam, and if somebody is trying to persuade you to buy or invest in crypto/blockchain/NFT content, please turn them down and save your money. See this video for more information.
"Switch" Techniques - - Single Target

0 Members and 1 Guest are viewing this topic.

**
Rep:
Level 84
<Jesus Saves>
Yeah, is it possible to use a technique (a switch one) that targets one specific enemy, as opposed to every monster on the field? @_@


ハープダープ

*
I love Firerain
Rep:
Level 97
=D
You mean hitting one enemy with an attack instead of all?


if so,
LOL
Arlen is hot.

********
Hungry
Rep:
Level 96
Mawbeast
2013 Best ArtistParticipant - GIAW 11Secret Santa 2013 ParticipantFor the great victory in the Breakfast War.2012 Best Game Creator (Non-RM Programs)~Bronze - GIAW 9Project of the Month winner for December 2009Project of the Month winner for August 20082011 Best Game Creator (Non RM)Gold - GIAW Halloween
do you mean, a move that could select -either- all enemies on the field, or just one, and change damage based on that?

if so: I'm not sure about it in 2k3, but it could be scripted in XP or VX

FCF3a A+ C- D H- M P+ R T W- Z- Sf RLCT a cmn+++ d++ e++ f h+++ iw+++ j+ p sf+
Follow my project: MBlok | Find me on: Bandcamp | Twitter | Patreon

*
I love Firerain
Rep:
Level 97
=D
lol,  I think he means a move that is like either for one enemy or for all.


In which case, i say again,

LOL
Arlen is hot.

***
Rep:
Level 84
puking up frothing vitriolic sarcastic spittle
@Ceasar + Andrew: He means a skill that activates a Switch and then targets only one enemy instead of all of them. You use the Skill and it turns on a Switch that activates a an Event in battle. When you use Switch events in battle the DBS will NOT ask you which enemy you want to target, so I am guessing that is the problem here.

@Kail: To answer the question, you can have the attack target only one enemy by using "Change Enemy HP" as part of the event. The player wouldn't be able to choose the enemy that is targetted directly, as I already explained, so you would have to do this yourself. Simply use the "Show Choice" tab to give the player a choice between each enemy on screen and then take the appropriate amount of HP off that target and "Show Battle Animation on that target. You would have to input this for every single enemy group that you made, and edit the choice for every enemy there, so it could be difficult.

I don't see why you would want to do this with a Switch instead of just using a normal attack - any particular reason? Also, if you're still confused I'll write out an example of the exact code needed.

*
I love Firerain
Rep:
Level 97
=D
but there's an option in the spell tab in databse which allows you to chose wether it effects one or all enemies..

...


LOL.
If you mean one random enemy, then yes..that may be a problem.
Just put "one enemy" move you arrow keys and press enter at random
Arlen is hot.

**
Rep:
Level 84
<Jesus Saves>
Well, for example... a skill that attacks each enemy, but not all at once (think PSI Thunder). The switch activates, and the spell is cast x number of times, hitting (or missing) an enemy each time.


ハープダープ

***
Rep:
Level 84
puking up frothing vitriolic sarcastic spittle
but there's an option in the spell tab in databse which allows you to chose wether it effects one or all enemies.

Not for Switch events, hence the point...

Quote from: Kail
Well, for example... a skill that attacks each enemy, but not all at once (think PSI Thunder). The switch activates, and the spell is cast x number of times, hitting (or missing) an enemy each time.

In that case, for each enemy group you're going to have to make a seperate event. They'll all basically be edited versions of this kind of thing, though...

Code: [Select]
>Change Var: Var[xxxx: Random Monster Choice] Set Random: 0-1
>If Var[xxxx: Random Monster Choice] Equals 0 Then
  >Show Battle Animation: Lightning: Monster 1
  >Change Monster 1 HP: Some Value Here
>End If
>If Var[xxxx: Random Monster Choice Equals 1 Then
  >Show Battle Animation: Lightning: Monster 2
  >Change Monster 2 HP: Some Value Here
>End If

You just need to repeat this over as many times as you want the attack to hit, and remember to change the random choice so that it equals the right number of monsters and change the If statements so the right number are available... I guess that's kinda obvious. You could also use a loop rather than repeating the same thing over and over so you could reduce the number of things you need to change. Also, if you want the attack to hit a random number of times each time it is cast then you could modify the loop so that it happens a random number of times before dropping out. If you want something more like that I could show you that too.

Haha, I may well have to steal this idea...
« Last Edit: November 01, 2008, 07:25:02 PM by Griever »

**
Rep:
Level 84
<Jesus Saves>
^o^ This'll be great for PSI thunder... now I just have to work out a damage algorythm. x3...


ハープダープ

***
Rep:
Level 84
puking up frothing vitriolic sarcastic spittle
I forgot to mention, you'll need to add a message telling the player that damage has been done or the player won't actually know...

Message: Superman did \v[xxxx] damage to Spiderman.

Or whatever.

**
Rep:
Level 84
<Jesus Saves>
Actually, if you reduce the HP, then the damage done will show. I've used it to make a Graviga spell once upon a time, so... yah ^^;


ハープダープ

***
Rep:
Level 84
puking up frothing vitriolic sarcastic spittle
Oh, are you using RM2K3? RM2K isn't quite as smart. :P