Jump to content

papyrus script error: extraneous input '.' expecting ID


giannis196

Recommended Posts

so, i tried to make my own papyrus script, i fix lot of my mistakes on the code after a lot of work but i have got a little small mistake here (it seem the last one)
the error message is that: extraneous input '.' expecting ID
so, what does that mean and what did i should do?

Link to comment
Share on other sites

The compiling error should have a number that tells which line in your code that generates the error. Posting your script would make helping you easier.

here is my script:

event.ondrop

wait(50) and then Disable;
endevent

 

 

i hope it helps

btw what did i forgot (or what did i make wrong?)

Link to comment
Share on other sites

I can't find OnDrop as an existing event, which makes it an invalid syntax. There is a function similar to it though. I suspect your script should look something like this.

Form Property ObjectToDrop Auto
Int Property qty auto
Event SomeEvent()

     Objectreference MyRef = Game.getPlayer().DropObject(ObjectToDrop, qty)
     utility.wait(50)
     MyRef.Disable()

EndEvent

SomeEvent is not a valid syntax though. A few questions:

- What triggers the drop?

- Who should drop it?

- Is the object needed for later or should it also be deleted after 50 seconds?

Edited by Sjogga
Link to comment
Share on other sites

it's ok, i solved it
here is my script:

Event OnLoad()
Utility.Wait(7.5)
self.delete()
endEvent

i wanted when it appear to dissapear after some seconds
thank you for your help!

edit: can i ask something last?
i also want it to dissapear slowly slowly so, how i can put fade at dissapear so it dissapear slow and not that fast?
Edited by giannis196
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...