Soulcatcher improvements

- Multiple minds at once, gotta catch 'em all, they can all talk to each other, etc
- A setting to enable mind backups for all minds in there like an implant
- Notifications to the already-in-there minds when one comes or goes
- If YOU get put in YOUR soulcatcher, it does ONE backup right then and stops, so medical will be notified
This commit is contained in:
Arokha Sieyes
2017-06-09 19:09:55 -04:00
parent e8e93b4c90
commit 9e51ba2fa3
3 changed files with 143 additions and 82 deletions
@@ -21,14 +21,12 @@
if(!SC)
to_chat(src,"<span class='warning'>You need the Soulcatcher software to use *nme.</span>")
return 1
if(!SC.brainmob.mind)
if(!SC.brainmobs.len)
to_chat(src,"<span class='warning'>You need a loaded mind to use *nme.</span>")
return 1
var/nifmessage = sanitize(input("Type a message to say.","Speak into NIF") as text|null)
if(nifmessage)
nifmessage = "<b>\[\icon[nif.big_icon]NIF\]</b> <b>[src]</b> speaks, \"[nifmessage]\""
to_chat(SC.brainmob,nifmessage)
to_chat(src,nifmessage)
SC.say_into(nifmessage,src.real_name)
return 1
if ("nme")
@@ -39,14 +37,12 @@
if(!SC)
to_chat(src,"<span class='warning'>You need the Soulcatcher software to use *nme.</span>")
return 1
if(!SC.brainmob.mind)
if(!SC.brainmobs.len)
to_chat(src,"<span class='warning'>You need a loaded mind to use *nme.</span>")
return 1
var/nifmessage = sanitize(input("Type an action to perform.","Emote into NIF") as text|null)
if(nifmessage)
nifmessage = "<b>\[\icon[nif.big_icon]NIF\]</b> <b>[src]</b> [nifmessage]"
to_chat(SC.brainmob,nifmessage)
to_chat(src,nifmessage)
SC.emote_into(nifmessage,src.real_name)
return 1
if ("flip")