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 apoc pack 2 death script help

Author
Message
Logrulz123
13
Years of Service
User Offline
Joined: 18th Jul 2011
Location:
Posted: 7th Jan 2012 16:55
okay so im using conjured's cash system and im trying to make it so when the zombie dies it adds 100 cash. i know a minimal ammount about scripting but im getting the hang of it.

this is what i have. zombie death animation is smooth, but it does not add cash. i followed the instructions as far as placing the paintings and such, so i assume its a problem in the code. any help?

nOOb and Proud
Logrulz123
13
Years of Service
User Offline
Joined: 18th Jul 2011
Location:
Posted: 7th Jan 2012 16:55
0o0o i can post instantly now yay!

nOOb and Proud
jaropolk14
13
Years of Service
User Offline
Joined: 3rd Jul 2011
Location: Russia, Rostov-on-Don
Posted: 7th Jan 2012 17:02
try

Quote: "addvar=cecashcounter 100"


instead of

Quote: "addvar=cecashcounter=100"
Logrulz123
13
Years of Service
User Offline
Joined: 18th Jul 2011
Location:
Posted: 7th Jan 2012 19:12
nope didnt work . thanks anyway tho

nOOb and Proud
Logrulz123
13
Years of Service
User Offline
Joined: 18th Jul 2011
Location:
Posted: 7th Jan 2012 21:50
anyone know?

nOOb and Proud
Logrulz123
13
Years of Service
User Offline
Joined: 18th Jul 2011
Location:
Posted: 8th Jan 2012 00:38
okay now something even weirder is happened, i got it too work sometimes, but only when i use a weapon that would kill the zombie instantly, like a rifle. But even then the zomb just walks in place until the new one spawns. And when i use a low-damage weapon like a pistol still no $$$

nOOb and Proud
jaropolk14
13
Years of Service
User Offline
Joined: 3rd Jul 2011
Location: Russia, Rostov-on-Don
Posted: 8th Jan 2012 12:24
Logrulz123, try this one. Just tested it and it worked fine. I marked the lines I've added to script.

Quote: ";Artificial Intelligence Script

;Header

desc = Fade Out Disappear

;Triggers

;FAILSAFE DESTROY SCRIPT, JUST IN CASE MAIN SCRIPT DOES NOT KILL CHARACTER AND HEALTH SOMEHOW REACHES ZERO

:state=0:dimvar=cecashcounter

:state=0:setframe=12,state=1
:state=1:incframe=12
:state=1,frameatend=12:state=102

:state=102:,coloff,etimerstart,state=1102
:state=1102,etimergreater=5000:state=1103
:state=1103:coloff,decalphafade=0
:state=1103,alphafadeequal=0:state=1104,addvar=cecashcounter 100,destroy

;End of Script
"
Logrulz123
13
Years of Service
User Offline
Joined: 18th Jul 2011
Location:
Posted: 8th Jan 2012 15:04
i tried it, it only works when i use a weapon that would kill it it one shot like a sniper rifle or shotgun. when i kill it with the pistol nothing happens

nOOb and Proud
jaropolk14
13
Years of Service
User Offline
Joined: 3rd Jul 2011
Location: Russia, Rostov-on-Don
Posted: 8th Jan 2012 17:12
Hmmmm... I understant! It looks like destroy script for MP57 characters is a part of their main script. And this is "spare" script. As it written:
Quote: "JUST IN CASE MAIN SCRIPT DOES NOT KILL CHARACTER AND HEALTH SOMEHOW REACHES ZERO"

So, you must edit the Main scripts. Or use your own "Main", as I do))
Logrulz123
13
Years of Service
User Offline
Joined: 18th Jul 2011
Location:
Posted: 8th Jan 2012 18:10
okay that makes sensen ill try that thanks

nOOb and Proud
Logrulz123
13
Years of Service
User Offline
Joined: 18th Jul 2011
Location:
Posted: 8th Jan 2012 18:11
okay that makes sense ill try that thanks

nOOb and Proud
Logrulz123
13
Years of Service
User Offline
Joined: 18th Jul 2011
Location:
Posted: 8th Jan 2012 18:20
thank you so much that worked! its inconvenient tho because now i have to edit all the different main scripts

nOOb and Proud

Login to post a reply

Server time is: 2024-11-24 01:23:29
Your offset time is: 2024-11-24 01:23:29