How can I make a firemaking skill with events?

Geo Bonsai

Warper
Member
Joined
Feb 27, 2014
Messages
4
Reaction score
0
First Language
English
Primarily Uses
Hello all.

I would like to be able to press a key in my game that activates firemaking. If you have a tinderbox and wood you will be able to make a fire anywhere in the game(but not inside structures). So how would I go about doing this? I would like to be able to do this using events but if it's not possible I'm open to scripts I suppose..

Thanks!
 

EternalShadow

Veteran
Veteran
Joined
Sep 16, 2012
Messages
5,781
Reaction score
1,041
First Language
English
Primarily Uses
Lol I get the reference.


A conditional branch for the fire via a common event - if A is pressed (for example), and if 'tinderbox' is in inventory. Put this event on parallel process on outdoor maps.


I'm not sure how the actual fire event would work, but I'm not around the program to check for the possibility of creating an event graphic depending on your X and Y co-ordinates (and direction you're facing), but it is doable. I think you'd have to use regions to ensure people don't make fires in impassable places though.
 

Engr. Adiktuzmiko

Chemical Engineer, Game Developer, Using BlinkBoy'
Veteran
Joined
May 15, 2012
Messages
14,682
Reaction score
3,003
First Language
Tagalog
Primarily Uses
RMVXA
If you can only light 1 fire per map, then you can have the fire event in every map, just make and event that uses the fire graphics, direction fix unchecked, stepping animation checked and make it require a certain switch. Now every start of the map, set switch to false (using a parallel process event maybe that you erase afterwards), then have another parallel process that checks if the button for firemaking is pressed, if yes, check items, if they are present, move the fire event to front of the player (might need conditional branches to set), and set witch to true
 

Geo Bonsai

Warper
Member
Joined
Feb 27, 2014
Messages
4
Reaction score
0
First Language
English
Primarily Uses
Lol I get the reference.

A conditional branch for the fire via a common event - if A is pressed (for example), and if 'tinderbox' is in inventory. Put this event on parallel process on outdoor maps.

I'm not sure how the actual fire event would work, but I'm not around the program to check for the possibility of creating an event graphic depending on your X and Y co-ordinates (and direction you're facing), but it is doable. I think you'd have to use regions to ensure people don't make fires in impassable places though.
If you can only light 1 fire per map, then you can have the fire event in every map, just make and event that uses the fire graphics, direction fix unchecked, stepping animation checked and make it require a certain switch. Now every start of the map, set switch to false (using a parallel process event maybe that you erase afterwards), then have another parallel process that checks if the button for firemaking is pressed, if yes, check items, if they are present, move the fire event to front of the player (might need conditional branches to set), and set witch to true
Thanks guys! I think I get it. I'm going to go try it out.
 

Geo Bonsai

Warper
Member
Joined
Feb 27, 2014
Messages
4
Reaction score
0
First Language
English
Primarily Uses
Okay I'm kind of having trouble if anyone can explain in more detail please do. Thanks a lot.
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,359
Reaction score
7,672
First Language
German
Primarily Uses
RMMV
Geo Bonsai, please avoid double posting, as it is against the forum rules. You can review our forum rules here. Thank you.


If your post is the last and you have something to add, just edit the last post.


Please tell us more details where you have problems, and post a screenshot of the common event you have so far - we cannot help you if we don't know what you've done so far...
 

Geo Bonsai

Warper
Member
Joined
Feb 27, 2014
Messages
4
Reaction score
0
First Language
English
Primarily Uses
Geo Bonsai, please avoid double posting, as it is against the forum rules. You can review our forum rules here. Thank you.

If your post is the last and you have something to add, just edit the last post.

Please tell us more details where you have problems, and post a screenshot of the common event you have so far - we cannot help you if we don't know what you've done so far...
Sorry about the double post :(

I need to know how I can move my event in front of my player. I want to teleport the event in front of my player when he makes a fire. Does that make sense?
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,359
Reaction score
7,672
First Language
German
Primarily Uses
RMMV
I need to know how I can move my event in front of my player. I want to teleport the event in front of my player when he makes a fire. Does that make sense?
yes, and you can do it with the variable commands...
you need two variables, one for X and one for Y.


Set the first variable to the player's X, the second to the player's Y (control variable - game data)


then make conditional branches to check the players facing, and add or substract one from X or Y depending on which direction he's facing.


then set location for the fireplace event based on the two variable's coordinates
 

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

Latest Threads

Latest Posts

Latest Profile Posts

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'??
Yay, now back in action Happy Christmas time, coming back!






Back in action to develop the indie game that has been long overdue... Final Fallacy. A game that keeps on giving! The development never ends as the developer thinks to be the smart cookie by coming back and beginning by saying... "Oh bother, this indie game has been long overdue..." How could one resist such? No-one c

Forum statistics

Threads
105,857
Messages
1,017,018
Members
137,563
Latest member
MinyakaAeon
Top