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

Messages - Melee Island Resident

#1
i got the script from a very old thread, so some things are obsolete

   holddown ++;
   if (holddown >= 40) {
        holddown = 0;
       gIconbar.Visible = true;

GlobalScript.asc(75): Error (line 75): Undefined token 'holddown'

what is the newer equivalent of this script?
#3
I'd like it to be when the mouse button is held down the GUI becomes visible
#4
on this line a get an error message

if (mouse.IsButtonDown (eMouseLeft)  gIconbar.Visible = true == 0)

GlobalScript.asc(74): Error (line 74): Parse error in expr near 'gIconbar'

could someone please explain to me what is wrong with this in a way that a four year old could understand?
it's just I'm having a really hard time when I get error messages like these
#5
function Button5_OnClick(GUIControl *control, MouseButton button)
{
gSaveGame.Visible = true;

{
  if gSaveGame.Visible = true  {
    gIconbar.Visible = false;
  }

}

GlobalScript.asc(600): Error (line 600): expected '('

help please you guys
#6
okay what i'm trying to do is if the player has iMedallion in their inventory, then region1 takes them to room 8, but this just runs the same dialog every time i go on it and doesn't take me to room 8, and when the dialog runs background 0 and 1 keep alternating.

I can probably fix the background problem my self but could anyone help me with inventory thing? I blame myself for not explaining to you guys what I was hoping to do.
#7
function region1_WalksOnto()
{
if player.ActiveInventory(iMedallion);
player.ChangeRoom(11);{
}
else player.Say("I feel drawn to something in this room")
player.Say("I really want to find out what it is");

I have this code and I keep getting this error message:

room9.asc(87): Error (line 87): expected '('

I've tried for the past few hours to fix this, but I can't, could someone please explain to me why I'm an idiot?
#8
cheers
#9
at the end of a certain dialog i want the player to change room and have another dialog start up.

i tried a changeroom command, and then a dialog start command, but it says that i can't start a dialog for the next room in this script

if i wanted to make this happen how would i do that?

another idea i had was if the player had had the conversation he could just walk into the next room and then if he had went through the first dialog that he could do the second dialog, but i don't know how to do a variable like that

i could really use your guy's help  :)
#10
okay i have advanced further and have gotten stuck at a similar problem
// Dialog script file
@S  // Dialog startup entry point
Troll: You can't go in there without the code.
return
@1
Troll: Well what is it then?
    if (player.ActiveInventory == iCode) {
    dTroll2.Start();
   
    else player.Say("I don't know.");
return

Dialog 2(10): Error (line 10): PE04: parse error at 'else'

what exactly am i doing wrong?

#11
cheers mate ;D
#12
in the script it's capitalized

and there's no space inbetween the dot

and im still getting the same error
#13
k done that

Dialog 1(10): Unknown command: player .addinventory(icode). The command may require parameters which you have not supplied.

im sure im doing something really stupid
#14
// Dialog script file
@S  // Dialog startup entry point
Ghost: Oh my god, you stole Dracule's prized Flower Pot.
Ghost: You Truly are evil
return
@1
Ghost: Of course it does
Ghost: Here it is

player.AddInventory(iCode);
    Display ("The Code is now in your inventory");
  }
stop

i tried it but it gave me an error

am i on the right track at least?
#15
okay by making this change i've gotten it to show the dialogue

function cGhost_UseInv()
{
  if (player.ActiveInventory == iFlowerPot) {
    dFlowers.Start();
    }
}

but the player still needs to get iCode
#16
test doesn't show
#17
okay i've got this code here, could someone please explain to me what's wrong with it?


function cGhost_UseInv()
{

  if (player.ActiveInventory == iFlowerPot) {
    dFlowers.Start();
    player.AddInventory(iCode);
    Display ("The Code is now in your inventory");
  }

}

when i use the flower pot on the character it does nothing
#18
but i didn't see @hostspot@ i would've told you if i did

i did change a few other things around like i had the text as grey and the background as black ::) so maybe i just wasn't looking hard enough

anyway thanks for your help
#19
agh i wrote over hostspot
sorry guys it works fine now

thanks for your patience you guys really rule
#20
i have description on almost every hotspot but nothing shows
SMF spam blocked by CleanTalk