Jump to content
Rpg²S Forum
  • 0

Associare una variabile degli eventi (variabili non RGSS) ad una variabile RGSS


Tribe X
 Share

Question

salve, vorrei correggere un grosso difetto del menu cambia party fatto da GTOnizuka, ossia dove c'è NUMERO_PG=8 invece del valore fisso vorrei mettere il valore di una variabile degli eventi (Tipo "Numero gruppo" che aumenta con l'incontro degli altri membri del party, da 0 a 8). Ora io sono scarso con il linguaggio ed altre cose, cosa posso mettere a posto dell'8?
TRIBE X: MEMBRO FONDATORE DEL DIGITADREAM PROJECTProgetti in corso:ERTHIA - THE LOST DIMENSIONProgetti in sospeso (Da riprendere al più presto):ARKANA CHRONICLESPS: Cercasi Scripter da includere nel team!
Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

variabile = $game_variable[IDVARIABILE]

 

Attento che NUMERO_PG è una costante non una variabile, ti conviene sostituire NUMERO_PG con $game_variable[iDVARIABILE] in tutti i punti in cui appare.

Link to comment
Share on other sites

  • 0

mi da problemi! in pratica ho tolto la costante e messo una variabile in quel modo ma provo ad avviare e mi da errore!

 

io ho scritto

 

numeroparty = $game_variable[0018]

 

ma niente

TRIBE X: MEMBRO FONDATORE DEL DIGITADREAM PROJECTProgetti in corso:ERTHIA - THE LOST DIMENSIONProgetti in sospeso (Da riprendere al più presto):ARKANA CHRONICLESPS: Cercasi Scripter da includere nel team!
Link to comment
Share on other sites

  • 0
infatti la sintassi corretta non è $game_variable ma $game_variables.

Partecipante al Rpg2s.net Game Contest 2008/2009
http://www.rpg2s.net/contest/GameContest0809/gc0809-bannerino.jpg
Gioco in Sviluppo: Oromis' Tale

Premi Rpg2s.net Game Contest 2008/2009:
http://www.rpg2s.net/gif/GC_programmazione2.gif Miglior Programmazione XP: 2°
http://www.rpg2s.net/gif/GC_premio3.gif Longevità: 3°

Hiken... Tsubame Gaeshi!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...