Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

VX Item Help

Umm yeah might as well make this also an Intro thread o.O but you can ignore this segment if you want it will just save me time... I was introduced to VX yesterday and promptly got it. I dont know if that person is a member here, but still thank that person as it is very fun. He directed me to this forum for me to learn. But I digress...

I want to make an Item script that doesnt repeat itself. But I cannot use a treasure chest with this map as it is an Island.
This is my script so far but I am still VERY new at this stuff so please help me?
Code:
@> Play SE: 'Item1', 80, 100
@> Text: -,-, Transparent, Bottom
:     :You Broke off 2 pieces of Driftwood.
@> Change Items: [Driftwood], +2
@>

After that sadly I am stumped  :down:
 
You want to make is so you don't do it again, right?

You'll have to use the SWITCHES, witch are actually preety simple to use, but alot of people get confused with it (like I did xD).

Switches are exactly what the name says. What is a switch? Something that when ON or OFF has different usabilities. There's a closed door and a switch turned in the OFF position. You go there, press ON, door will open.

Now, for example, you have that thing, right? Well, as you can see, events have conditions (it need THIS or THAT in order to happen) and pages. After the "script" of your treasure, insert a switch (Control Switches) and give it a name like: Treasure 1. so you know what it is. After it is inserted, create a second page with the condition Switch 0001:Treasure 1 ON, and in that page, put nothing at all. When the switch is on, as that event (which, I suppose, is a piece of wood) has a second page that states: "When the switch is on, nothing will happen." everything will dissapear.
 
You must forgive me as I learn with less words and more directions <_<...
So now it looks like:
Code:
@> Play SE: 'Item1', 80, 100
@> Text: -,-, Transparent, Bottom
:     :You Broke off 2 pieces of Driftwood.
@> Change Items: [Driftwood], +2
@> Control Switches: [0001: Got Driftwood] = ON
Then on the second page on conditions I checked the switch to have
0001:Got Driftwood is ON

but it still doesnt do as you said >.<
 

poccil

Sponsor

RPG Maker VX doesn't prevent you from changing the graphic of the treasure chest.  When you create the chest, double click on the graphic to choose a different graphic for the chest, in this case a piece of driftwood.

To make it appear that the wood was gathered, you can go to event page 2 and set the graphic to "(None)".
 
But everything in the Second Page has to be in blank, so the Driftwood disapears forever! No more nothing, no image, no command, anything in there.

What you are trying to do is making the Driftwood not pickable anymore, am I correct?
 
Then it would work exactly like we said.

@> Play SE: 'Item1', 80, 100
@> Text: -,-, Transparent, Bottom
:    :You Broke off 2 pieces of Driftwood.
@> Change Items: [Driftwood], +2
@> Control Switches: [0001: Got Driftwood] = ON

after this, create a new page with the condition: Switch:0001: Got Driftwood ON and in that event, put nothing! nothing at all!
 
Now, now, NunoAle, be nice.  You're starting to come across as yelling.  I took two screenshots to show you what it should look like, Icyblue.  Click on the images to enlarge them.

http://img244.imageshack.us/img244/6954/72823012jq6.th.png[/img]
http://img244.imageshack.us/img244/7295/10301771mg6.th.png[/img]

I used a self switch, since they won't take up a switch space.  You can also click 'Stepping Animation' on the first event page to make it look more like the wood is floating.  I hope that helps.  ^-^
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top