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 / zombie master :: use of variables

Author
Message
RemyLi
16
Years of Service
User Offline
Joined: 7th Jul 2008
Location:
Posted: 7th Jul 2008 15:05
Hello every body !

I try tu do a special bot : le zombie master !
While this bot is alive all zombie in the level respawn
When you kill the zombie master all zombie die.

So this is the destroy IA script of the zombie master



and the main IA script of the zombie



But ... I don't understand : my zombies die instantaneously....

le guide
http://forum.thegamecreators.com/?m=forum_view&t=131868&b=21
Hybrid
17
Years of Service
User Offline
Joined: 21st Nov 2007
Location: In the p-block, group 7.
Posted: 7th Jul 2008 17:43
I don't think there are 1000 global variables, try using a smaller number. Otherwise, it should work

Seth Black
FPSC Reloaded TGC Backer
19
Years of Service
User Offline
Joined: 22nd Feb 2005
Location: Pittsburgh, PA
Posted: 7th Jul 2008 18:40 Edited at: 7th Jul 2008 19:03
Quote: "I don't think there are 1000 global variables, try using a smaller number. Otherwise, it should work"


...I agree. I'm not really a scripter, per se, but I do remember reading somewhere on these boards that there was a limit on the number of variables...I don't believe it was anywhere near 1000...

I believe that the cap was 99, if I'm not mistaken.


RemyLi
16
Years of Service
User Offline
Joined: 7th Jul 2008
Location:
Posted: 8th Jul 2008 10:21
Ok ! thanks !
It's work fine !

le guide
http://forum.thegamecreators.com/?m=forum_view&t=131868&b=21
RemyLi
16
Years of Service
User Offline
Joined: 7th Jul 2008
Location:
Posted: 8th Jul 2008 10:22
ok ! it's work fine !

le guide
http://forum.thegamecreators.com/?m=forum_view&t=131868&b=21
Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 9th Jul 2008 03:56
Great concept, RemyLi!! And great script to boot!

Welcome to forums, and I hope you enjoy your stay. Keep up the contributions and many people will come to like you!

(Man, can you guys believe it?! A newb who can actually script!! LOL )


The one and only,


Whosoever says, "Don't sweat the small stuff," is obviously not a programmer.
Indicium
16
Years of Service
User Offline
Joined: 26th May 2008
Location:
Posted: 10th Jul 2008 20:08
With V109 there are only 99 variables, I am correct?
Hybrid
17
Years of Service
User Offline
Joined: 21st Nov 2007
Location: In the p-block, group 7.
Posted: 11th Jul 2008 00:42 Edited at: 11th Jul 2008 05:01
Quote: "...I agree. I'm not really a scripter, per se, but I do remember reading somewhere on these boards that there was a limit on the number of variables...I don't believe it was anywhere near 1000...

I believe that the cap was 99, if I'm not mistaken.
"


and now

Quote: "With V109 there are only 99 variables, I am correct? "


READ PREVIOUS POSTS!!

EDIT: Sorry

Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 11th Jul 2008 02:17
Yes, that's correct, there are only 99 variables with V1.09.

I tend to start at the top and work my way down, because everyone else starts at the bottom, and that ensures that the variables I use won't be interfering with anyone else's.


@Hybrid:

I don't believe your post is being very constructive, please stay on topic if at all possible.


The one and only,


Whosoever says, "Don't sweat the small stuff," is obviously not a programmer.
Hybrid
17
Years of Service
User Offline
Joined: 21st Nov 2007
Location: In the p-block, group 7.
Posted: 11th Jul 2008 05:17
Anyhow, is thare a way to have a custom script for a weapin pickup that it sets a variable? That way, when you picked up a weapon, not equiped it, but once you got it, the zombie's behavior would change. Lets say that thee is a big gun in the center of a room, and when you got it, the zombies would run in fear. I assume this is possible, but I would like confirmation.

Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 11th Jul 2008 06:51
Yes, very possible.


The one and only,


Whosoever says, "Don't sweat the small stuff," is obviously not a programmer.
Hybrid
17
Years of Service
User Offline
Joined: 21st Nov 2007
Location: In the p-block, group 7.
Posted: 11th Jul 2008 17:50
I figured so. Once I get my cheats up and running, I will make a script for that.

Seth Black
FPSC Reloaded TGC Backer
19
Years of Service
User Offline
Joined: 22nd Feb 2005
Location: Pittsburgh, PA
Posted: 11th Jul 2008 18:38
...very cool.

Can hardly wait to see what you are able to do with it...


MadChicken Games
16
Years of Service
User Offline
Joined: 27th Jun 2008
Location:
Posted: 12th Jul 2008 14:14
This is a really cool idea well done.
meteorite
18
Years of Service
User Offline
Joined: 19th Nov 2006
Location: The Capital Wasteland
Posted: 15th Jul 2008 05:58
Well, I think hybrid may have hijacked this thread, lol, Welcome Remy, and good work. Learning to script can take you much further than you think, I'm new to scripting myself, but I've played around and you can do some cool things. Here's hoping you continue to have success in your work.

I love Jenkins forever :p

Login to post a reply

Server time is: 2024-11-24 10:44:53
Your offset time is: 2024-11-24 10:44:53