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 / add life when player get x points (conjured's cash system)

Author
Message
oxid
15
Years of Service
User Offline
Joined: 25th Nov 2008
Location:
Posted: 23rd Mar 2013 09:18
hi everybody,

i found on wolfenstein 3D wiki that when the player get 40K point, the game add a life to the player.

is it possible to do the same with the conjured intertainment's cash system ? can somebody help me please ?

i found on the forum how to add a life with a pickup item (good point indeed) but i prefer the system above.

thanks all.
Corno_1
14
Years of Service
User Offline
Joined: 3rd Nov 2010
Location:
Posted: 23rd Mar 2013 11:33 Edited at: 23rd Mar 2013 11:34
This should help you:


You must develope it futher, if you have mor points than 80000.

Corno_1


oxid
15
Years of Service
User Offline
Joined: 25th Nov 2008
Location:
Posted: 23rd Mar 2013 12:14
thx for your answer but how i can use it ?

and if i understand, the code add a life when there is 40k then 80k then .... but i must write all the line.

a "for" loop should be better. for each 40K point then add a life (stuff like this).

but in fpi script ...
Corno_1
14
Years of Service
User Offline
Joined: 3rd Nov 2010
Location:
Posted: 23rd Mar 2013 14:00
You must put it in a triggerzone(main).
A loop, will reset the point value, otherwise it won´t work correct.



oxid
15
Years of Service
User Offline
Joined: 25th Nov 2008
Location:
Posted: 25th Mar 2013 21:16 Edited at: 25th Mar 2013 21:17
thx for your answer but it dont work.
i put it in a trigger zone in main script

;Artificial Intelligence Script

;Header

desc = 40k points = 1 life

;Triggers

:state=0:dimvar=$PL,dimvar=points,state=1
:state=1,varequal=points 40000:addvar=$PL 1,setvar=points 0,state=1

;End of Script

but nothing happens when i take points...

Login to post a reply

Server time is: 2024-11-23 17:17:03
Your offset time is: 2024-11-23 17:17:03