Added "Addability" to Setgodmode and experimenting with Mediate

Use /Setgodmod addability <String format> IE bh_sh3
This commit is contained in:
Wefi
2013-12-10 17:33:56 -06:00
parent 5f616ed5f0
commit 06d22cae9e
3 changed files with 25 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
import sys
def setup():
return
def run(core, actor, target, commandString):
##To do make it reset moodanimations when meditation is cancled.
if actor.getPosture() != 0x08:
actor.sendSystemMessage('You need to sit',0)
actor.setMoodAnimation('neutral')
return
if actor.getPosture() == 0x08:
actor.setMoodAnimation('meditating')
return
if actor.getPosture() == 0x00:
actor.setMoodAnimation('neutral')
return
return
+4
View File
@@ -40,4 +40,8 @@ def run(core, actor, target, commandString):
elif command == 'cash' and arg1 is int(arg1):
actor.setCash(actor.getCash() + int(arg1))
actor.sendSystemMessage('The Galactic Empire has transferred ' + arg1 + ' credits to you for your service.')
elif command == 'addability' and arg1:
actor.addAbility(str(arg1))
actor.sendSystemMessage('You have learned ' + arg1 + '')
return