varchild4

Veteran
Veteran
Joined
Nov 13, 2015
Messages
30
Reaction score
3
First Language
Francais
Primarily Uses
I made a boulder and switch puzzle. With a parallel process; when the boulder is standing on the switch it opens a door. It was successful using variables to check the position of boulder (35,28) but i wanted to simplify the event cause their will be many of those. I don't want to use variables for each one.

  • I tested with the hero and it works.. I've put this scipt in the conditional branch:        $game_player.x == 35 and $game_player.y == 28

  • But with the bouler (EVO21) it doesn't work! I've put this scipt in the conditional branch instead:         $game_map.events[021].x == 35 and $game_map.events[021].y == 28 



Do you know why? Thanks a lot   :)

Here's a sceenshot of the event: 

[IMG]http://snag.gy/kIzSk.jpg[/IMG]
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
34,282
Reaction score
8,732
First Language
German
Primarily Uses
RMMV
I've moved this thread to Ace support. Please be sure to post your threads in the correct forum next time. Thank you.

This has nothing to do with RGSS script support, because you aren't using scripts, you're using events only.
 

Shaz

Global Moderators
Global Mod
Joined
Mar 2, 2012
Messages
44,102
Reaction score
15,524
First Language
English
Primarily Uses
RMMV
You could use this. The only difference is that you have events with switches instead of a specific tile, but it will still work if you do everything that tutorial says.
 

varchild4

Veteran
Veteran
Joined
Nov 13, 2015
Messages
30
Reaction score
3
First Language
Francais
Primarily Uses
This has nothing to do with RGSS script support, because you aren't using scripts, you're using events only.
Thanks Andar. And to be clear, should i understand that a script used in a conditional branch is considerent only event and no script for the purpose of the forum?
 

Shaz

Global Moderators
Global Mod
Joined
Mar 2, 2012
Messages
44,102
Reaction score
15,524
First Language
English
Primarily Uses
RMMV
If you do it with event commands, it is not a script, even if you use a script within those event commands.


If you have to hit F11 and go into the REAL scripts to do it, THEN it's a script question :)
 

varchild4

Veteran
Veteran
Joined
Nov 13, 2015
Messages
30
Reaction score
3
First Language
Francais
Primarily Uses

varchild4

Veteran
Veteran
Joined
Nov 13, 2015
Messages
30
Reaction score
3
First Language
Francais
Primarily Uses
I saw your tutorial Shaz, and wondered at that time if it applied to my need.I think it's now time to go throught and read it fully ;)

But meanwhile, if someone can read and anwers personnally to my question instead of introducing me to an other of those great tutorials, but not specific to my problem, it would help a lot.

My event is two line long, and is working with the hero but not the other events :( Why? Is there a probleme with the script.. or is it something else..

Thanks a lot to th 3 of you for your swift anwers and i'll keep you informed!! 
 
Last edited by a moderator:

Shaz

Global Moderators
Global Mod
Joined
Mar 2, 2012
Messages
44,102
Reaction score
15,524
First Language
English
Primarily Uses
RMMV
Try getting rid of the 0 at the start of the event id. Just use $game_map.events[21] instead of [021]


Also, you really don't need it to be a parallel process event. Those run EVERY frame, and you know that you REALLY only need to test the position of the boulder after it's moved, which will not happen every frame.


So you can put the test on the boulder instead of on the switch. In the event commands, put Move Away from Player, with a wait for completion, and then do the test. That means it will only run each time it moves, rather than every frame, even when it's not moving.
 

varchild4

Veteran
Veteran
Joined
Nov 13, 2015
Messages
30
Reaction score
3
First Language
Francais
Primarily Uses
Nice! Thanks! I will need some days to test all the opportunities (i don't have much time, it's end of session in school), but at least i get some solid anwers there! :)
 
Last edited by a moderator:

varchild4

Veteran
Veteran
Joined
Nov 13, 2015
Messages
30
Reaction score
3
First Language
Francais
Primarily Uses
@Shaz!

GOOD NEWS.. removing the "0" in event script works! I thought to have try that a couple of times before but seeems not! So it works smootly now. 

For the parrallel process advise: geat ideal also :)  I did put a "wait 120 frames" command to slow the thing down, but i can do even better with your advise!

Now i need a tutorial to make some fragil things in the way of the boulders to break in their path!  But it's for an other topic.. :p
 
Last edited by a moderator:

Latest Threads

Latest Posts

Latest Profile Posts


It's a Spanish devlog don't get scared!.
Just read the forum rules just for kicks and rule 14 reminds me of this:
150.jpg
I'm in the process of converting all locks and intimidate/persuade dialogue options into D20 DC based success/fail (modified by player skill). Before, it required a certain flat amount you had to meet, but with rolls, it offers more freedom. For instance, you can repeatedly try to unlock a door instead of just not meeting the requirement to unlock it.
Since we get very close: If you want to enjoy the advent calendar as it is intended, wait til your date and the day in the URL line up, so you have the final day on actual christmas and not the day before... time zones ;3
1638170340913.png
Crossover Inn is getting very crowded, and I love it

Forum statistics

Threads
117,050
Messages
1,104,157
Members
153,013
Latest member
Camixx
Top