Jump to content

Scripting question


DeeVee74

Recommended Posts

I am working on the best and most delicious mod of all time,* and I wanted to know if there was a way to interrupt a scripted timer.

I've been all over the place on geck forums and the nexus looking and can't find either an answer or a mod that looks like it does what I want that I can pick apart.

Basically, I want a random-chance on using hydra to go into cardiac arrest, but have the 'cure' be expedient use of a stimpak before the timer finishes and runs 'killplayer.'

Is this a possibility? Can somebody help? I'm not an idiot, so can follow directions.

 

*This statement is false, and also unevaluated by the FDA.

Link to comment
Share on other sites

Do you really have to use a timer? I mean, wouldn't it possible to make the drug in question just damage health over time? I'm pretty sure that's doable in the game already. Then the effect could be interrupted by using the health item... I dunno, I'm not really an expert. Hope someone can help :)

Link to comment
Share on other sites

Use something like this in an effect script on Hydra:

float fTimer

Begin ScriptEffectUpdate
    Set fTimer to fTimer + ScriptEffectElapsedSeconds
    If fTimer >= 5
        Player.Kill
    EndIf
End

Then simply make stimpaks remove the effect.

Edited by Ladez
Link to comment
Share on other sites

Hey Jokerine, no--that's not quite what I wanted. It's supposed to be a bit more immersive, with visual effects, sudden loss of motor control, and instant death. A Courier with really high health wouldn't necessarily last longer than one without when we're talking cardiovascular failure. Thank you, though. Check out my mod if you wanna see what I'm working on.

 

Ladez--Thank you! That's awesome. I started working on putting that together last night. I'm not familiar enough with the GECK yet that everything flowed smoothly, but I am starting to poke around and getting more ideas of what can and can't be done.

 

I'll know scripting. I know I will.

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...