Jump to content

Creating an item that automates a console command


Dragonovith

Recommended Posts

How can I create an item that, when clicked on, uses a console command?

 

Let me give an example of what I need:

 

- I created an item called "Radio", now every time I click on the "Radio" item inside my inventory, it uses the console command "stopquest [quest id]".

 

How can I make such item?

 

 

Link to comment
Share on other sites

You Create a potion named radio and a magic effect. then you make that potion apply the magic effect. on the magic effect add the following script :

Quest Property TheQuestYouWantToStop Auto

Event OnEffectStart(Actor akTarget, Actor akCaster)
  TheQuestYouWantToStop.Stop()
endEvent

Some more information on the fuctions used: OnEffectStart, Stop

Edited by LoneRaptor
Link to comment
Share on other sites

  • Recently Browsing   0 members

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