Hey! I wanted to know how to make throwable items? I know there is a plugin with victor engine but I could never get it to work..So i was wondering if was a way just to code a notetag on an item to make it a throwable item kinda like how it was in VX ACE? and if I can throw an item that it would decrease because in VX ACE I had a problem where the items would never decrease and they would loop so I would like to see if there is a method in RPG MAKER MV to do this without a plugin. And if I have to use a plugin? would one would benefit besides Victor engine? thanks in advance good people of the forum <3
How would I make a throwable item just using notetags on an item?
RPG Maker MV SupportYou can't, because you completely misunderstood what notetags are.
By themselves, text in the notebox (usually called notetags) does absolutely nothing. And never did anything, neither in VXA nor MV.
However, it can be used to give data to a script or a plugin. And that script or plugin then does something with the data.
However, that completely depends on the script or plugin - so you'll have to find a script or plugin that creates and handles throwable objects, and then check the instructions of the script or plugin on how to use it.
By themselves, text in the notebox (usually called notetags) does absolutely nothing. And never did anything, neither in VXA nor MV.
However, it can be used to give data to a script or a plugin. And that script or plugin then does something with the data.
However, that completely depends on the script or plugin - so you'll have to find a script or plugin that creates and handles throwable objects, and then check the instructions of the script or plugin on how to use it.
Is this what you are looking for?
not only do I love your cat profile pic I also love that video but I was more so thinking about throwing items while in battle but I will consider using this video as well I am very happy you shared it with me meow!
Any way to set this up so that different party leaders will do different things? Like one will shoot fireballs, one will shoot electricity, etc?
@mobiusclimber I don't want to lie to you and tell you something that isn't true, but it might be possible with a conditional branch with else branching. > _ > Because you could have a branch with an else branch branching in your conditions.
I will try playing around with that and see if I can figure out how to get it working, and post here with the results. Thanks!
I can't seem to get this working right at all. For one thing, the projectile doesn't line up with the leader half the time. I also can't get it to use a different projectile depending on how the leader is. I tried setting it up with a variable whose number is either based on the actor ID of the party leader, or by using a call script for the same. Then I tried doing the conditional branches. I've tried leading with a conditional branch if/else that checks what number the variable is, and I've tried with the first conditional branch being whether the button is pressed AND THEN who the leader is. Neither way works, unless I'm doing something wrong...
Meow, I don't think I am interested in this mechanic for my own game, but when I get settled in for my weekend I'll check it out and see if I can help meow. Probably best to correspond telepathically or in pms. > _ >
I actually think I might have found the problem. I only had time to fix things up on my lunch break, but if I get it working, I'll post the code so others will know what to do if they want this mechanic in their game.
Here's how I got this to work. Mind you, I'm still having the problem with the fireball not being in the correct place, but off by one. It's like it's coming out of the side of the main character. It's weird bc it seems to only happen sometimes. Anyway here's the code:
I have a parallel event with a switch trigger - this is because I have a cutscene in this room. You will shoot fireballs every time you press the "A" button in my set-up. You can always change which button it is by using it's corresponding number (I'll post a link for that later) instead of the 65 in this code. At any rate you'll want to turn it off if you don't want the player to be able to shoot fireballs while talking with an event, so that's why there's a switch. I have an auto run event for my cutscene, which ends with turning on the switch that will cause this to happen.
Anyway, first parallel event:
Then I have this parallel process, which you'll want to set up for however many events you're going to want to interact with (my project will have way more but for now, this is all I've done - and I actually should have done a third one bc I have extra code for it later... it won't hurt anything, it's just unnecessary without it):
This is the main parallel process, where all the fun stuff happens:
Then the enemies are set up like this, with one page having a walking around character graphic and then an empty second page with a switch condition:
I'm still working on this, but I figured other people might have fun things to do with this, so here it is.
I have a parallel event with a switch trigger - this is because I have a cutscene in this room. You will shoot fireballs every time you press the "A" button in my set-up. You can always change which button it is by using it's corresponding number (I'll post a link for that later) instead of the 65 in this code. At any rate you'll want to turn it off if you don't want the player to be able to shoot fireballs while talking with an event, so that's why there's a switch. I have an auto run event for my cutscene, which ends with turning on the switch that will cause this to happen.
Anyway, first parallel event:
Code:
◆Control Variables:#0010 Leader = Actor ID of the party member #1
◆Script:Input.keyMapper[65] = 'fireball'
Then I have this parallel process, which you'll want to set up for however many events you're going to want to interact with (my project will have way more but for now, this is all I've done - and I actually should have done a third one bc I have extra code for it later... it won't hurt anything, it's just unnecessary without it):
Code:
◆Control Variables:#0001 Transform = 0
◆Control Variables:#0002 Transform2 = 0
◆Control Self Switch:A = ON
This is the main parallel process, where all the fun stuff happens:
Code:
◆If:Script:Input.isTriggered("fireball")
◆If:Leader = 1
◆If:Projectile is OFF
◆Play SE:Battle1 (90, 70, 0)
◆Control Variables:#0003 Char_Dir = Direction of Player
◆Control Variables:#0004 Char_X = Map X of Player
◆Control Variables:#0005 Char_Y = Map Y of Player
◆If:Char_Dir = 8
◆Control Variables:#0005 Char_Y -= 1
◆Set Event Location:Projectile1, ({Char_X},{Char_Y})
◆Set Movement Route:Projectile1 (Wait)
:Set Movement Route:◇Turn Up
◆
:End
◆If:Char_Dir = 6
◆Control Variables:#0005 Char_Y += 1
◆Set Event Location:Projectile1, ({Char_X},{Char_Y})
◆Set Movement Route:Projectile1 (Wait)
:Set Movement Route:◇Turn Right
◆
:End
◆If:Char_Dir = 4
◆Control Variables:#0004 Char_X -= 1
◆Set Event Location:Projectile1, ({Char_X},{Char_Y})
◆Set Movement Route:Projectile1 (Wait)
:Set Movement Route:◇Turn Left
◆
:End
◆If:Char_Dir = 2
◆Control Variables:#0004 Char_X += 1
◆Set Event Location:Projectile1, ({Char_X},{Char_Y})
◆Set Movement Route:Projectile1 (Wait)
:Set Movement Route:◇Turn Down
◆
:End
◆Control Switches:#0001 Projectile = ON
◆
:End
◆If:Projectile is ON
◆Loop
◆If:Char_Dir = 8
◆Set Movement Route:Projectile1 (Wait)
:Set Movement Route:◇Move Up
:Set Movement Route:◇Move Up
:Set Movement Route:◇Opacity:150
:Set Movement Route:◇Move Up
◆
:End
◆If:Char_Dir = 6
◆Set Movement Route:Projectile1 (Wait)
:Set Movement Route:◇Move Right
:Set Movement Route:◇Move Right
:Set Movement Route:◇Opacity:150
:Set Movement Route:◇Move Right
◆
:End
◆If:Char_Dir = 4
◆Set Movement Route:Projectile1 (Wait)
:Set Movement Route:◇Move Left
:Set Movement Route:◇Move Left
:Set Movement Route:◇Opacity:150
:Set Movement Route:◇Move Left
◆
:End
◆If:Char_Dir = 2
◆Set Movement Route:Projectile1 (Wait)
:Set Movement Route:◇Move Down
:Set Movement Route:◇Move Down
:Set Movement Route:◇Opacity:150
:Set Movement Route:◇Move Down
◆
:End
◆Control Variables:#0008 Projectile_X = Map X of Projectile1
◆Control Variables:#0009 Projectile_Y = Map Y of Projectile1
◆Control Variables:#0006 Enemy_X = Map X of Enemy
◆Control Variables:#0007 Enemy_Y = Map Y of Enemy
◆If:Projectile_X = Enemy_X
◆If:Projectile_Y = Enemy_Y
◆Show Animation:Enemy, Pierce Fire (Wait)
◆Change Enemy HP:Entire Troop, - 40
◆Battle Processing:2nd Fight 1
:If Win
◆Control Variables:#0002 Transform2 += 1
◆
:If Lose
◆Game Over
◆
:End
◆
:End
◆
:End
◆Control Variables:#0008 Projectile_X = Map X of Projectile1
◆Control Variables:#0009 Projectile_Y = Map Y of Projectile1
◆Control Variables:#0017 Enemy2_X = Map X of Enemy2
◆Control Variables:#0018 Enemy2_Y = Map Y of Enemy2
◆If:Projectile_X = Enemy2_X
◆If:Projectile_Y = Enemy2_Y
◆Show Animation:Enemy, Pierce Fire (Wait)
◆Change Enemy HP:Entire Troop, - 40
◆Battle Processing:2nd Fight 1
:If Win
◆Control Variables:#0002 Transform2 += 1
◆
:If Lose
◆Game Over
◆
:End
◆
:End
◆
:End
◆Control Variables:#0008 Projectile_X = Map X of Projectile1
◆Control Variables:#0009 Projectile_Y = Map Y of Projectile1
◆Control Variables:#0019 Enemy3_X = Map X of Enemy3
◆Control Variables:#0020 Enemy3_Y = Map Y of Enemy3
◆If:Projectile_X = Enemy3_X
◆If:Projectile_Y = Enemy3_Y
◆Show Animation:Enemy, Pierce Fire (Wait)
◆Change Enemy HP:Entire Troop, - 40
◆Battle Processing:2nd Fight 1
:If Win
◆Control Variables:#0002 Transform2 += 1
◆
:If Lose
◆Game Over
◆
:End
◆
:End
◆
:End
◆Break Loop
◆
:Repeat Above
◆
:End
◆
:End
◆If:Leader = 2
◆If:Projectile2 is OFF
◆Play SE:Battle1 (90, 70, 0)
◆Control Variables:#0003 Char_Dir = Direction of Player
◆Control Variables:#0004 Char_X = Map X of Player
◆Control Variables:#0005 Char_Y = Map Y of Player
◆If:Char_Dir = 8
◆Control Variables:#0005 Char_Y -= 1
◆Set Event Location:Projectile2, ({Char_X},{Char_Y})
◆Set Movement Route:Projectile2 (Wait)
:Set Movement Route:◇Turn Up
◆
:End
◆If:Char_Dir = 6
◆Control Variables:#0005 Char_Y += 1
◆Set Event Location:Projectile2, ({Char_X},{Char_Y})
◆Set Movement Route:Projectile2 (Wait)
:Set Movement Route:◇Turn Right
◆
:End
◆If:Char_Dir = 4
◆Control Variables:#0004 Char_X -= 1
◆Set Event Location:Projectile2, ({Char_X},{Char_Y})
◆Set Movement Route:Projectile2 (Wait)
:Set Movement Route:◇Turn Left
◆
:End
◆If:Char_Dir = 2
◆Control Variables:#0004 Char_X += 1
◆Set Event Location:Projectile2, ({Char_X},{Char_Y})
◆Set Movement Route:Projectile2 (Wait)
:Set Movement Route:◇Turn Down
◆
:End
◆Control Switches:#0002 Projectile2 = ON
◆
:End
◆If:Projectile2 is ON
◆Loop
◆If:Char_Dir = 8
◆Set Movement Route:Projectile2 (Wait)
:Set Movement Route:◇Move Up
◆
:End
◆If:Char_Dir = 6
◆Set Movement Route:Projectile2 (Wait)
:Set Movement Route:◇Move Right
◆
:End
◆If:Char_Dir = 4
◆Set Movement Route:Projectile2 (Wait)
:Set Movement Route:◇Move Left
◆
:End
◆If:Char_Dir = 2
◆Set Movement Route:Projectile2 (Wait)
:Set Movement Route:◇Move Down
◆
:End
◆Control Variables:#0011 Projectile2_X = Map X of Projectile2
◆Control Variables:#0012 Projectile2_Y = Map Y of Projectile2
◆Control Variables:#0006 Enemy_X = Map X of Enemy
◆Control Variables:#0007 Enemy_Y = Map Y of Enemy
◆If:Projectile2_X = Enemy_X
◆If:Projectile2_Y = Enemy_Y
◆Show Animation:Enemy, Pierce Fire (Wait)
◆Change Enemy HP:Entire Troop, - 40
◆Battle Processing:2nd Fight 1
:If Win
◆Control Variables:#0002 Transform2 += 1
◆
:If Lose
◆Game Over
◆
:End
◆
:End
◆
:End
◆Break Loop
◆
:Repeat Above
◆
:End
◆
:End
◆If:Leader = 3
◆If:Projectile3 is OFF
◆Play SE:Battle1 (90, 70, 0)
◆Control Variables:#0003 Char_Dir = Direction of Player
◆Control Variables:#0004 Char_X = Map X of Player
◆Control Variables:#0005 Char_Y = Map Y of Player
◆If:Char_Dir = 8
◆Control Variables:#0005 Char_Y -= 1
◆Set Event Location:Projectile3, ({Char_X},{Char_Y})
◆Set Movement Route:Projectile3 (Wait)
:Set Movement Route:◇Turn Up
◆
:End
◆If:Char_Dir = 6
◆Control Variables:#0005 Char_Y += 1
◆Set Event Location:Projectile3, ({Char_X},{Char_Y})
◆Set Movement Route:Projectile3 (Wait)
:Set Movement Route:◇Turn Right
◆
:End
◆If:Char_Dir = 4
◆Control Variables:#0004 Char_X -= 1
◆Set Event Location:Projectile3, ({Char_X},{Char_Y})
◆Set Movement Route:Projectile3 (Wait)
:Set Movement Route:◇Turn Left
◆
:End
◆If:Char_Dir = 2
◆Control Variables:#0004 Char_X += 1
◆Set Event Location:Projectile3, ({Char_X},{Char_Y})
◆Set Movement Route:Projectile3 (Wait)
:Set Movement Route:◇Turn Down
◆
:End
◆Control Switches:#0003 Projectile3 = ON
◆
:End
◆If:Projectile3 is ON
◆Loop
◆If:Char_Dir = 8
◆Set Movement Route:Projectile3 (Wait)
:Set Movement Route:◇Move Up
◆
:End
◆If:Char_Dir = 6
◆Set Movement Route:Projectile3 (Wait)
:Set Movement Route:◇Move Right
◆
:End
◆If:Char_Dir = 4
◆Set Movement Route:Projectile3 (Wait)
:Set Movement Route:◇Move Left
◆
:End
◆If:Char_Dir = 2
◆Set Movement Route:Projectile3 (Wait)
:Set Movement Route:◇Move Down
◆
:End
◆Control Variables:#0013 Projectile3_X = Map X of Projectile3
◆Control Variables:#0014 Projectile3_Y = Map Y of Projectile3
◆Control Variables:#0006 Enemy_X = Map X of Enemy
◆Control Variables:#0007 Enemy_Y = Map Y of Enemy
◆If:Projectile3_X = Enemy_X
◆If:Projectile3_Y = Enemy_Y
◆Show Animation:Enemy, Pierce Fire (Wait)
◆Change Enemy HP:Entire Troop, - 40
◆Battle Processing:2nd Fight 1
:If Win
◆Control Variables:#0002 Transform2 += 1
◆
:If Lose
◆Game Over
◆
:End
◆
:End
◆
:End
◆Break Loop
◆
:Repeat Above
◆
:End
◆
:End
◆If:Leader = 4
◆If:Projectile4 is OFF
◆Play SE:Battle1 (90, 70, 0)
◆Control Variables:#0003 Char_Dir = Direction of Player
◆Control Variables:#0004 Char_X = Map X of Player
◆Control Variables:#0005 Char_Y = Map Y of Player
◆If:Char_Dir = 8
◆Control Variables:#0005 Char_Y -= 1
◆Set Event Location:Projectile4, ({Char_X},{Char_Y})
◆Set Movement Route:Projectile4 (Wait)
:Set Movement Route:◇Turn Up
◆
:End
◆If:Char_Dir = 6
◆Control Variables:#0005 Char_Y += 1
◆Set Event Location:Projectile4, ({Char_X},{Char_Y})
◆Set Movement Route:Projectile4 (Wait)
:Set Movement Route:◇Turn Right
◆
:End
◆If:Char_Dir = 4
◆Control Variables:#0004 Char_X -= 1
◆Set Event Location:Projectile4, ({Char_X},{Char_Y})
◆Set Movement Route:Projectile4 (Wait)
:Set Movement Route:◇Turn Left
◆
:End
◆If:Char_Dir = 2
◆Control Variables:#0004 Char_X += 1
◆Set Event Location:Projectile4, ({Char_X},{Char_Y})
◆Set Movement Route:Projectile4 (Wait)
:Set Movement Route:◇Turn Down
◆
:End
◆Control Switches:#0004 Projectile4 = ON
◆
:End
◆If:Projectile4 is ON
◆Loop
◆If:Char_Dir = 8
◆Set Movement Route:Projectile4 (Wait)
:Set Movement Route:◇Move Up
◆
:End
◆If:Char_Dir = 6
◆Set Movement Route:Projectile4 (Wait)
:Set Movement Route:◇Move Right
◆
:End
◆If:Char_Dir = 4
◆Set Movement Route:Projectile4 (Wait)
:Set Movement Route:◇Move Left
◆
:End
◆If:Char_Dir = 2
◆Set Movement Route:Projectile4 (Wait)
:Set Movement Route:◇Move Down
◆
:End
◆Control Variables:#0015 Projectile4_X = Map X of Projectile4
◆Control Variables:#0016 Projectile4_Y = Map Y of Projectile4
◆Control Variables:#0006 Enemy_X = Map X of Enemy
◆Control Variables:#0007 Enemy_Y = Map Y of Enemy
◆If:Projectile4_X = Enemy_X
◆If:Projectile4_Y = Enemy_Y
◆Show Animation:Enemy, Pierce Fire (Wait)
◆Change Enemy HP:Entire Troop, - 40
◆Battle Processing:2nd Fight 1
:If Win
◆Control Variables:#0002 Transform2 += 1
◆
:If Lose
◆Game Over
◆
:End
◆
:End
◆
:End
◆Break Loop
◆
:Repeat Above
◆
:End
◆
:End
◆
:End
Then the enemies are set up like this, with one page having a walking around character graphic and then an empty second page with a switch condition:
Code:
◆Battle Processing:2nd Fight 1
:If Win
◆Show Animation:This Event, Pierce Fire
◆Show Animation:Enemy2, Pierce Fire
◆Show Animation:Enemy3, Pierce Fire
◆Control Variables:#0002 Transform2 += 1
◆
:If Lose
◆Game Over
◆
:End
I'm still working on this, but I figured other people might have fun things to do with this, so here it is.
Wow, that is impressive. This might need to be separated into a different thread, you can "report" your post if you want to a mod, or start a new one, with your information, meow. So cool to see how people take little snippets and roll with it.
I put it up in the "tutorial" section (so it's awaiting moderation), but I think there's gotta be another way to do this so that the system can make calculations faster. The problem with this is that half the time the projectiles don't do anything bc even tho it looks like it's touching, you really have to either be right up on it (if you don't set the projectiles to "through") or it's just not connecting for whatever reason. This gets even more wonky when the event you're trying to interact with is walking around. I'm trying to think of a better way, but so far the only thing I've come up with is having more variables for the area around the event, but that would eat up a lot of variables and I'm not sure it wouldn't just bog down the system even more and thus make it's calculations take even longer. XD I'm probably just going to end up using the Galv plugin instead of this, but this is nice if you only want to set up a puzzle system. As long as you don't want to use the projectiles on moving targets, this works fine.
Well, now that it is there, I have an idea or two meowhehe.
Well, lay em on me! LOL I've put off working on that project for a few days bc at this point I'm considering trying to figure out Galv's plugin, which stumped me in the past.
Original thread: https://forums.rpgmakerweb.com/threads/how-would-i-make-a-throwable-item-just-using-notetags-on-an-item.95513/