Jump to content

Making an item of clothing a trigger


antstubell

Recommended Posts

for the message you can use Debug.Notification("write your message here")

 

So using the script that gasti posted and Ghaunadaur modified it will look like this:

 

ObjectReference property TeleDest auto
 auto state BeginSate
        Event OnContainerChanged(ObjectReference akNewContainer, ObjectReference akOldContainer)
                if akNewContainer == Game.GetPlayer()
                        Game.GetPlayer().MoveTo(TeleDest)
                        Debug.Notification("write your message here")
                endif
                GotoState("Done")
        endEvent
endState

 state Done
      ; Do nothing
endState

 

That will show a notification on the screen like the bounty ones when you hit a civilian

Link to comment
Share on other sites

for the message you can use Debug.Notification("write your message here")

 

So using the script that gasti posted and Ghaunadaur modified it will look like this:

 

ObjectReference property TeleDest auto
 auto state BeginSate
        Event OnContainerChanged(ObjectReference akNewContainer, ObjectReference akOldContainer)
                if akNewContainer == Game.GetPlayer()
                        Game.GetPlayer().MoveTo(TeleDest)
                        Debug.Notification("write your message here")
                endif
                GotoState("Done")
        endEvent
endState

 state Done
      ; Do nothing
endState

 

That will show a notification on the screen like the bounty ones when you hit a civilian

 

The message for a bounty only appears when the action is completed i.e. You kill a civilian/guard (action over) then bounty is implemented. This is not what I want as I need the player to always know that re-picking the item will result in a teleport. Will this script appear in the inventory under the item saying that dropping and re-picking up the item will always teleport?

Both gasti's and ghaunadaur's scripts are perfect and I am still undecided which one to use as I'm not sure I want the player to be able to return to that cell.

Link to comment
Share on other sites

If you want to make it run only once use Gaud's script.

 

If you want the player to teleport everytime he picks up the item, use my script and write something in the item's "description" panel.

 

If it's not working then you have to create an empty magic effect and assign it to the item. Let me know.

Edited by gasti89
Link to comment
Share on other sites

If you want to make it run only once use Gaud's script.

 

If you want the player to teleport everytime he picks up the item, use my script and write something in the item's "description" panel.

 

If it's not working then you have to create an empty magic effect and assign it to the item. Let me know.

 

Both scripts work fine just I am undecided what I want the player to be able to do.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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