Jump to content
  • 0

Getting error using .@input$ ?


Auryn

Question


  • Group:  Members
  • Topic Count:  69
  • Topics Per Day:  0.02
  • Content Count:  147
  • Reputation:   1
  • Joined:  01/26/12
  • Last Seen:  

Hi there, I'm having a problem with a simple NPC, using .@input$, here it is :

ivo_fild,102,50,0	script	Antitée	452,3,3,{
mes "[Mana]";
mes "Comment appel-t'on le marteau de Thor ?";
next;
[b]input .@input$;
if (.@input$ == "Mjolnir" || "mjolnir"){
mes "[Mana]";
mes "C'est ça.";
close;
}
}

The error I get :

[Error]: script:op_2: invalid data for operator C_LOR
[Debug]: Data: number value=0
[Debug]: Data: string value="mjolnir"
[Debug]: Source (NPC): AntitÚe at ivo_fild (102,50)

Edited by Auryn
Link to comment
Share on other sites

2 answers to this question

Recommended Posts


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2350
  • Joined:  10/28/11
  • Last Seen:  

this

if (.@input$ == "Mjolnir" || "mjolnir"){

should be this

if (.@input$ == "Mjolnir" || .@input$ == "mjolnir"){

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  69
  • Topics Per Day:  0.02
  • Content Count:  147
  • Reputation:   1
  • Joined:  01/26/12
  • Last Seen:  

This was dumb.

Thanks for your light.

Edited by Auryn
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...