Ok, so after lots of dreaming and wanting, I started thinking about ways to make self-healing and other various things a possibility in multiplayer.
I found the solution.
It's been right in front of our face and we just haven't seen it, until now.
The secret is to make the scripts and attach them to a weapon (on the map) as the Main AI script (while in singleplayer).
Because weapons are the only dynamic object allowed in multiplayer, the scripts work!
So far I have created 2 scripts, unfortunately, they dpon't work exactly the way they are supposed to and I am requiring assistance from anyone willing to help. (I hope Conjured or Seth Black picks up on this!)
Here they are:
;Artificial Intelligence Script
;Header
desc = Multiplayer Self Healing
;Triggers
:state=0,plrhealthless=500:state=10,timerstart
:state=10,timergreater=500:plraddhealth=5,state=2
:state=2:state=3
:state=3:state=0
;End of Script
In this script, I am try to make it so that any player on the map will self heal, thus eliminating the need for health packs.
;Artificial Intelligence Script
;Header
desc = Show Hud When Health Less Than 25 And Play Sound
;Triggers
:plrdistwithin=99999:hudx=50,hudy=50,hudimagefine=gamecore\huds\eyehud.png,hudname=heavydamage,hudhide=1,hudmake=internal
:plrhealthless=26:hudshow=heavydamage,loopsound=audiobank\music\Rafleo\heartbeat.ogg
:plrhealthgreater=25:hudunshow=heavydamage,stopsound
;:plrhealthless=1:hudunshow=heavydamage
;End of Script
I have finally found out how to display a hud and play a sound.
As I am still a n00b at scripting, I do not really know where and at what value the state commands should be.
Also I have tested these scripts as-is and they do work, but the farther away you get from the weapon that contains the scripts, the slower your health regenerates and the slower the heartbeat sound plays. And when you get closer enough to the weapon, the sound repeats sooooo fast that you can't even recognize what it is, same with the health regen.
Any help would be greatly appreciated.
(Wow, that's my longest post evar!)
MASSIVE Multiplayer game in the works. [href]www.wazoo117.webs.com[/href]