Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Topics - Papyrus

#1
hi!
First, i begin to believe, AGS is the most addictived "game" i've ever played...(laugh)

ok, i need player change room throug region only at two situations:
1.-when player have a object (no problem with that)
2.-when a specific NPC's loop have been run.

i use a conditional into function region_walkOnto
Code: ags

function region1_WalksOnto()
{
  if (player.HasInventory(isello))
  {
    player.ChangeRoom(7, 150, 550);
  }
  else if (character[cPortero].loop==8)// This is what i don't know
  {
    player.ChangeRoom(7, 150, 550);
  }
  else
  {
    cPortero.LockView(3);
    cPortero.Animate(2, 3, eOnce, eNoBlock); 
    cPortero.Say("EH! TU!...SI NO PAGAS NO ENTRAS");
    player.Walk(468, 495, eBlock);
    player.FaceCharacter(cPortero);
  }
}
[\code]

thanks for answering!(roll)
#2
Hi all!
Im trying that player throw a little marble to a NPC and latter slips and falls.
i have a NPC and player animations working fine; player throw the marble and NPC falls, but i need the marble moving from Player's hand to NPC's feet.
I made a object in the room and selected "false" in "Visible" propierties.
Firsty,i tried that object come in view when player View loop(player throw marble) end.
Code: ags

  else if ((player.HasInventory(icanica)) && (player.ActiveInventory==icanica))
    {
      player.Walk(629, 509, eBlock);
     player.FaceCharacter(cPortero);
     cEgo.LockView(1);
     cEgo.Animate(8,5);
     cEgo.Say("DAME SUERTE CANICA!");
     cEgo.UnlockView();
     oCanica.Visible = true;
     cPortero.LockView(3);
     cPortero.Animate(8, 3, eOnce);
    }

it give me this error:
GlobalScript.asc(599): Error (line 599): Undefined token 'oCanica'

then i tried with "Object[ID].Visible=true"
so i recieve this error:
GlobalScript.asc(599): Error (line 599): fixed size array cannot be used in this way


how can i do, mainly to object comes in view, secondly to start object animations and ending to move it.
Thanks for your time and help.
#3
Hi everyone! im newbie, i don`t have idea about scrpting, im triying to make my first game (i thought it would be easier :X). I was creating another char when suddenly appear this message and i can't understand why becouse, i think, i didn't touch this code.

"error 563: Variable 'initialize_control-panel' is already defined"

i did three things before this error: "Interact character", "Look at character" and rewrite one display message for one inventory item. I read all the GlobalScript but i didn't find out a 2initialize_control_panel" before. So i read all three steps i did before and all seems be ok.

here is the line 563 and all since { to }.

Code: ags

function initialize_control_panel(){
  // Centre the control panel
  gPanel.Centre(); 
  // Centre the Restart dialog as well
  gRestartYN.Centre();
  if (!IsSpeechVoxAvailable()) { 
    // If there is no speech-vox file, and therefore no speech,
    // disable all the controls related with speech.
    lblVoice.Visible = false;  
    btnVoice.Visible = false;  
    sldVoice.Visible = false;
  }
  else {
    // If there *is*, then set it to voice and text. It's best to use
    // both whenever possible, for the player's sake.
    Speech.VoiceMode = eSpeechVoiceAndText;
    // And reflect this in the control panel.
    btnVoice.Text = "Voice and Text"; 
  }
  if (!System.SupportsGammaControl) {
    // If we can't change the gamma settings, disable the relevant options.
    sldGamma.Visible = false; 
    lblGamma.Visible = false;
  } 
  
  //And now, set all the defaults
  System.Volume = 100;
  sldAudio.Value = System.Volume;
  SetGameSpeed(40);
  sldSpeed.Value = 40;
  if (IsSpeechVoxAvailable()) {
     Speech.VoiceMode = eSpeechVoiceAndText;
     btnVoice.Text = "Voice and Text";
     sldVoice.Value = 255;
     SetSpeechVolume(255);
  }
  if (System.SupportsGammaControl) {
    System.Gamma = 100;
    sldGamma.Value = 100;
  }
}




I can't find out what is happening. Further, my english is so bad...(laugh)
¿what could be wrong?
Thanks everyone will respond to me.
SMF spam blocked by CleanTalk