Jump to content

What is wrong with this?


liambenny

Recommended Posts

Trying to save this as a quest script but i'm getting the classic "Line 5Invalid block type for quest script" error

 

scn Deathclawcavemessagescript

short shown

begin ontriggerenter player

if [shown ==0]
showmessage Deathclawmessage
set shown to 1

DEATHCLAWREF.ENABLE
endif


end

 

I'm at my witts end, I can't find anything online at all. If anyone could let me know the problem that;d be great.

Edited by liambenny
Link to comment
Share on other sites

The error tells you what the problem is. OnTriggerEnter is not a valid block for quest scripts. Save it as an object script and attach it to a cubic activator.

 

You also can't enclose your condition with brackets in line 7. Use parantheses instead. You can also leave them out if you want.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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