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 / Need help with first script (made completely by myself!)

Author
Message
Commander in Chief
18
Years of Service
User Offline
Joined: 15th Apr 2006
Location: Carbondale, PA, USA
Posted: 18th Feb 2007 03:05
Hey, I read bullshock's tutorial and decided to get into scripting. I found the BASIC language very basic... go figure. Anyways I heard lots of people looking for a "Splinter Cell legendary mode" script where if they're seen, they die. I tried it myself, here's the code.

The only problem is that I dont die.. first and second time I tried the script, the NPC died. Now, the NPC pretends to hit me... help! BTW: I love FPI maker!

(\__/)
(O.o )
(> < ) This is Bunny. Copy Bunny into your signature to help him on his way to world domination!
xplosys
18
Years of Service
User Offline
Joined: 5th Jan 2006
Playing: FPSC Multiplayer Games
Posted: 18th Feb 2007 03:49
You should probably read the tutorial again. lol

plrwithinzone is a condition, not a variable. It can equal 0 (not true) or 1 (true).

plrcanbeseen is a condition and belongs on the left of the second colon.

plraddhealth is a command and belongs on the right of the second colon.

:condition:command

:state=0,plrwithinzone=1:state=1
:state=1,plrcanbeseen:state=2
:state=2:plraddhealth=-100,state=0

Best.

I'm sorry, my answers are limited. You must ask the right question.

Commander in Chief
18
Years of Service
User Offline
Joined: 15th Apr 2006
Location: Carbondale, PA, USA
Posted: 18th Feb 2007 04:24
It is confusing because his tut says one thing, you say another, and FPI Maker says something even differant! :-\

---PARANOID PRODUCTIONS---
Commander in Chief
18
Years of Service
User Offline
Joined: 15th Apr 2006
Location: Carbondale, PA, USA
Posted: 18th Feb 2007 04:33 Edited at: 18th Feb 2007 04:51
Thanks man. Tested it and.. still didn't work Well, it did. But only if you walked up to the character... very annoying. Would plrdistwithin work? I'll test it out now.

[EDIT] Now it isnt working at all. Might as well give up on this script.

---PARANOID PRODUCTIONS---
Commander in Chief
18
Years of Service
User Offline
Joined: 15th Apr 2006
Location: Carbondale, PA, USA
Posted: 18th Feb 2007 16:46
MODS you can close this now. I guess... still unresolved but, what the heck. I'm working on a new AI script, so far so good!

---PARANOID PRODUCTIONS---

Login to post a reply

Server time is: 2024-11-23 12:18:22
Your offset time is: 2024-11-23 12:18:22