joey2176 Posted December 8, 2009 Posted December 8, 2009 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
pkleiss Posted December 8, 2009 Posted December 8, 2009 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).
joey2176 Posted December 9, 2009 Author Posted December 9, 2009 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
deepside Posted December 9, 2009 Posted December 9, 2009 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:
pkleiss Posted December 10, 2009 Posted December 10, 2009 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.
Recommended Posts