A question about Item placement and Common Event calling...

Status
Not open for further replies.

Pipeptar

Noob
Member
Joined
Jul 12, 2013
Messages
6
Reaction score
0
First Language
Español
Primarily Uses
Hello there! 

I'm Pipeptar, and I've been trying RPG Maker Vx Ace for the last two nights and there's a bunch of things that Im trying to do but cant really figure out how to... I hope someone could enlight me in this matter.

For instance, I'm trying to make an item, that when used (in the map, there's no battles in my game) displays a fireplace in front of the character and triggers a switch X which would make 'Butterflies' events to move towards it...

I was thinking I could create a common event that would display a graphic (fireplace) set to Player's Map X/Y (+ or - 1, depends on which way you're facing) and show text and switch X on...

Although I dont know how to set graphic to coordinates depending on Characters location, or make it so that after you place the fireplace you could pick it up again.

Also, how can i make an item call a common event upon using it from the menu?

Let me explain: in another project, the character can throw fireballs when pressing Q,I tried to make it so that when you use 'Fire Scroll' then the common event is called, but that didn't worked so I used a common event with a branch condition that if 'MainCharacter' was wielding 'Fire' weapon and pressed Q the event would set an event called 'S' location on top of the character (I wanted to set it in front of it but couldn't figure out how :c ) and then move foward depending on wich way the player was facing:

Picture of the event

The problem is, weapons can't call common events upon being equiped, so I had to make an event that calls the comon event and set it as parallel process.. yet, copying this event on everymap seems like torture D: is there a way that the event is always triggered? Like seting it as parallel process would do the trick but then ask for a Switch that triggers it and weapons can't trigger switches either >___< 

I'm sorry if it came out too long of a question but It's the first time I feel inspired by something in a long time, so if anyone could give me a hint i'd really apreciate it
 
Last edited by a moderator:

Baka-chan

☆*:.。. o(≧▽≦)o .。.:*☆
Veteran
Joined
Dec 19, 2012
Messages
490
Reaction score
148
First Language
German
The problem is, weapons can't call common events upon being equiped, so I had to make an event that calls the comon event and set it as parallel process..
Make the common event parallel process and just activate the switch for this common event on the maps you want it to be activated.

Although I dont know how to set graphic to coordinates depending on Characters location, or make it so that after you place the fireplace you could pick it up again.
You can save the players x/y coordinates in a variable.

 

22pepperjack

Veteran
Veteran
Joined
Jun 18, 2013
Messages
235
Reaction score
72
First Language
English
Primarily Uses
two nights?!?! oh my goddesses! it took me the whole 30 day trial just to understand the basics of the program, let alone beginto understand the whole x/y localization stuff! IMPRESSIVE GOOD SIR!
 

Pipeptar

Noob
Member
Joined
Jul 12, 2013
Messages
6
Reaction score
0
First Language
Español
Primarily Uses
Oh my, haha thank you. Though I tried XP a few years ago, so I did knew some of the basics already... 

And Baka-chan, thanks for answering, yet I do know how to set the variables to the characters x,y coordinates, what I need to know is how to tell the event not to "spawn" on top of the character, but in front instead... it's kinda awkward to see the player covered by flames everytime he cast the spell... quite a lousy magician...

I actually made up an answer for my questions, I'll share them here tomorrow, since its really late now (for some reason I can only work at night, it's like daylight weakens my brain... haha)
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,365
Reaction score
7,675
First Language
German
Primarily Uses
RMMV
use a second control variable command to add +1 to one of the coordinates before using the set event location to place it based on the variables.

You can use branching to select a different direction if you don't want it at the same relative positon every time
 

Pipeptar

Noob
Member
Joined
Jul 12, 2013
Messages
6
Reaction score
0
First Language
Español
Primarily Uses
So here it is.. I was able to place an item after using it on the menu by creating an event on the map (in this case called "Z") with the desired graphic ( set to parallel process, through on, standing animation), with no trigger and set to Move route: Transparency ON

On the second page of that event, we set the trigger to a Switch "Pick Up", turn the through off, same as character and activated by Action Button. In here we set the transparency OFF, and show choices, If you pick it up, it'll add the Fireplace item to your inventory again, then switch "Pick up" off then transfer the event to wherever you want it to be while not being used...

We create the item called "Fireplace" (Fogata means fireplace in spanish ñ_ñÛ) and add the effect "Call Common Event: Fireplace"

We now create the common event, that should set 2 variables (in this case 001 and 002) to the player's X and Y location, and depending on the way the player is facing, move foward and set the transparency OFF (I know this step is repeated in the "Z" event itself, but it didnt worked properly otherwise ;___ ; )

Notice that the transparency is set to OFF, AFTER the item has moved, so it wont look like it's on top of the character for a split frame... So after that, add a SE and set the Switch "Pick UP" ON and decrese the item "Fireplace" by 1, :D now you have a nice fireplace set up that you can pick up any time n_n

Although I still have some issues with this...

  1. if I place the item while facing UP, the fireplace stays invisible until I "speak" to it... even though the conditonal branch "If facing UP" is the same as the ones facing down left or right... it should work but it just doesnt... :(
  2. If I use the item outside this map, where there's no Z event, the item will be consumed and nothing will happen, so I'll just end up loosing the item and never getting it back EVER, is there a way to set up the Z event on another map, and call it from there, then send it back there. that way i can use the item anywhere without having to Copy/Paste the "Z" event on every single map ? I tried using this script  but didn't knew how to set it up...
  3. I had a third point but i just forgot, so i'll leave this here and edit it later 'cus I'm silly and really really lazy

So yeah, it kinda worked via noob fixing here and there, but still it bugs, if anyone has any idea how could I improve this please reply... 

use a second control variable command to add +1 to one of the coordinates before using the set event location to place it based on the variables.

You can use branching to select a different direction if you don't want it at the same relative positon every time
Hey thanks! It's really simple now that i think of it haha, i'll give it a try   ;)
 
Last edited by a moderator:

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,365
Reaction score
7,675
First Language
German
Primarily Uses
RMMV
There is no need for the parallel process on page one - that only keeps setting the transparent on again and again (parallel events loop).

Do not set the item for consumption, but reduce the number of items in inventory by command in the common event - and only if you're on the map with the fireplace, not with another map ID. That should solve that issue.

There is a script command that copies an event from another map to the current map - it's a bit complex because the identification of that other event, but once you got the "key" to select the correct event to be copied it's easy to use. Unfortunately I don't have it available and don't know where I read about it, probably in the topic about script equivalents to event commands - you'll have to look for yourself for it with the forum search.
 

Pipeptar

Noob
Member
Joined
Jul 12, 2013
Messages
6
Reaction score
0
First Language
Español
Primarily Uses
I think I'm not supposed to double post (triple, now...) but I really wanna thank you! See, there's always this simple fix that just pass by, thank you!
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,365
Reaction score
7,675
First Language
German
Primarily Uses
RMMV
I think I'm not supposed to double post (triple, now...) but I really wanna thank you! See, there's always this simple fix that just pass by, thank you!
what you did isn't double posting - double posting is if you place two posts without someone else's post between them.

If the last post of a topic is your own, then you're supposed to edit that post if you have something to add instead of placing a second post below it - that second post below your own post would be doubleposting, but answers to others don't count for this.
 

Celianna

Tileset artist
Veteran
Joined
Mar 1, 2012
Messages
10,557
Reaction score
5,592
First Language
Dutch
Primarily Uses
RMMV
Andar, leave the explaining to the moderators, thank you.


This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.
 
Status
Not open for further replies.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,865
Messages
1,017,059
Members
137,575
Latest member
akekaphol101
Top