Submit Your Article


 
RPG Maker

Welcome Guest ( Log In | Register )


  Games Resources RPG Maker VX RPG Maker XP Scripts Tutorials Downloads

 
Reply to this topicStart new topic
> Commun event with game variables?
mikuri
post Dec 22 2011, 09:25 PM
Post #1



Group Icon

Group: Member
Posts: 2
Type: Developer
RM Skill: Skilled




Hello!
I have a problem here, I try to call a commun event related to a game variable. Like I want to call X commun event where X is a game variable.

I use:
$game_temp.common_event_id = X

And it works fine, but:
$game_temp.common_event_id = $game_variables[X]
Doesn't work.

(X being a number)

Can someone help me?
Thank you.
Go to the top of the page
 
+Quote Post
   
Jens of Zanicuud
post Dec 23 2011, 07:21 AM
Post #2


Dark Jentleman
Group Icon

Group: Local Mod
Posts: 904
Type: Scripter
RM Skill: Skilled
Rev Points: 120




QUOTE
And it works fine, but:
$game_temp.common_event_id = $game_variables[X]
Doesn't work.


Correct me if I'm not alright, ok?

You do exactly these things:
-set the $game_variables[X] value to common_event_id;
-set the call script as you stated before;
And nothing happens...

I've just tried this out, but it works perfectly...
No problems at all...
Are you sure the $game_variables[X] value to be > 0 or related to a existent common event?
I think this could be the one problem...

Jens

This post has been edited by Jens of Zanicuud: Dec 23 2011, 07:27 AM


__________________________
"Thorns are the rose's sweetest essence..."
-Jens of Zanicuud


Games I'm working on:
>

official website: TryAdIne eFfeCt

>

Games I worked on (mainly as a scripter):
>
(Warning: it's a 3rr3's project and it's in Italian!)


Awards

Go to the top of the page
 
+Quote Post
   
mikuri
post Dec 23 2011, 11:53 AM
Post #3



Group Icon

Group: Member
Posts: 2
Type: Developer
RM Skill: Skilled




Oh god... I don't know what happenned but my game variable was indeed missing, the condition to set it was off, I don't know why, since I know I made it... Oh well, it all works now!

Thank you very much smile.gif!
Go to the top of the page
 
+Quote Post
   

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Lo-Fi Version Time is now: 23rd May 2013 - 10:59 AM
RPG RPG Revolution is an Privacy Policy and Legal
eXTReMe Tracker