Jump to content

Recommended Posts

Posted

Afternoon all,

 

I created a quest which involves recovering a certain item. Quest is almost finished, everything works as it should.

 

I want to script the item so that if the player's karma is too low, a "karma is too low" message will display. Problem is I don't know where to start.

 

Any help would be greatly appreciated.

 

Joe

Posted

If player.getAV Karma < (minimum value)
  ShowMessage (Karma is too low message)
Endif

 

The stuff in parenthesis must be replaced with the correct info (like the actual amount of karma and the name of the message).

Posted

Thank you for the reply pkleiss. Question: I have already scripted this item with an ability, does this code need to have it's own block or could it be inserted?

 

Figured I would ask before I start messin with it again.

 

Anyhow,

Thanks again

 

Cheers

Posted

i think it must be inserted in the script that you have .. but be sure that it's not conflicting with the script so make a back up for the script or fill this in and give it a new scriptname.

 

also i have to mention that you actaully have to make the message in the mesage section on the left otherwise it won't play the message or you can't save the script because there is no message made. :thumbsup:

Posted
deepside is right, you can insert it in your script where you want the message to appear. If you have doubts, just post the script.
  • Recently Browsing   0 members

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