Home   Help Search Login Register  

Author Topic: Using an MRE as a healing method  (Read 455 times)

0 Members and 2 Guests are viewing this topic.

Offline SpecOp9

  • Members
  • *
Using an MRE as a healing method
« on: 29 May 2003, 18:36:57 »
I want you to have the ability to find and pick up MREs,
(even if they are not an object)



Through my mission you can pick up MREs (Meals Ready to Eat) , and those MREs act like a field hospital, or a Medic.


What I am trying to do -


- When you pick up an MRE, how would I make the game keep track of how many you have?  I am going to use the addaction command for selecting and eating the MRE.

-How exactly would I have the MRE script function as a Medic or Hospital?

For example, if you break your legs and cannot walk, then you can have an MRE to repair your legs and allow you to run again.


I might not use MREs because if you have broken legs in real life, eating a peanutbutter and jelly sandwitch wont fix it.

I might use Medical kits, or bandages...
With all those Multiplayer maps in the pending list...
Somebody is gonna get a heart artak ;) lol!!!!!

Offline SpecOp9

  • Members
  • *
Re:Using an MRE as a healing method
« Reply #1 on: 29 May 2003, 18:45:57 »
OK, well now that I take a look at the Code Snippets, I see a morphine script.

I' will check right now to see if it is what I want.



----------------

EDIT:  Yes it is what I want, incase some of you are also curious and too lazy to find the script urr self, :)

Quote
_health = getDammage player

? _health <= 0.40:goto "nomorphine"

#morphine
player removeAction 0
player switchMove "LyingToTreatedLying"
TitleText [format["Injecting morphine..."], "PLAIN DOWN"]
~2
TitleText [format[""], "PLAIN DOWN"]
~2

#injection
~0.6
_health = getDammage player
_newhealth = _health - .10
player setDamage _newhealth
?  _newhealth <= 0.30: goto "end"
goto "injection"

#nomorphine
TitleText [format["You don't need morphine"], "PLAIN DOWN"]
~1.5
TitleText [format[""], "PLAIN DOWN"]
goto "end"

#end
exit


« Last Edit: 29 May 2003, 18:58:33 by SpecOp9 »
With all those Multiplayer maps in the pending list...
Somebody is gonna get a heart artak ;) lol!!!!!