Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

FPSC Classic Scripts / Change texture when NPC is damaged?

Author
Message
Deine Mutter
9
Years of Service
User Offline
Joined: 13th Jan 2015
Location:
Posted: 16th Apr 2016 22:22
Is there a script to Change the texture of an NPC after he Drops down to a certain amount of HP?
ncmako
12
Years of Service
User Offline
Joined: 19th Feb 2012
Location: Hendersonville,NC
Posted: 17th Apr 2016 13:10
Why yes there is, just use the "alttexture=1" command in your script where & when needed.
Don't forget to set the "alttexture" path in the NPC's property settings beforehand.
Works like a charm
best
My games never have bugs. They just develop random features..
Lots and lots of random features...
Deine Mutter
9
Years of Service
User Offline
Joined: 13th Jan 2015
Location:
Posted: 17th Apr 2016 16:20
Dámn it, Scripting just isnt my Thing. Whats the command for testing the NPC's health, and is the command just alttexture=*path*?
ncmako
12
Years of Service
User Offline
Joined: 19th Feb 2012
Location: Hendersonville,NC
Posted: 18th Apr 2016 02:34
Deine Mutter For NPC's health, the condition commands are healthgreater=x & healthless=x
To make the "alttexture" work you need to do this first to the characters .fpe file. Add "texturealtd=" just under
the regular "textured= NAME OF TEXTURE"
So it should look like this....of course with your texture names

Save that, then just use the command "alttexture=1 when and were you need it.
If you right click on NPC you'll see "alttexture listed in property settings. I was incorrect
before saying you can set texture path from the property settings. It does not work that way.
You have to set it in the .fpe file first.

It's been awhile so I did a quick test ( I use V1.20 Black Ice Mod) so I know it works.
I used this script when the NPC was killed

My character switched textures then ragdoll. Worked great!
best
My games never have bugs. They just develop random features..
Lots and lots of random features...

Login to post a reply

Server time is: 2024-04-24 03:29:32
Your offset time is: 2024-04-24 03:29:32