Scripts / Gradual Health Reduction

Author
Message
Tarkus1971
Audio Media Maker
10
Years of Service
User Offline
Joined: 24th Feb 2015
Location: England, UK
Posted: 22nd Mar 2015 12:02
Has anyone done this, a gradual health reduction if the players enter a trigger zone in gameguru, I'm no coder but any help would be gratefully received

I know there are zone to trigger a sound that destroys the zone when entered but I know how to set to NOT destroy the zone, just don't know if it is possible to slowly reduce the players health and keep the zone active?
Corno_1
GameGuru Tool Maker
14
Years of Service
User Offline
Joined: 3rd Nov 2010
Location:
Posted: 22nd Mar 2015 15:40
Should be no problem and I also can give you this script soon.
My dream is to develope games, which makes fun when I create it and fun when other people play it.
PM
Tarkus1971
Audio Media Maker
10
Years of Service
User Offline
Joined: 24th Feb 2015
Location: England, UK
Posted: 22nd Mar 2015 17:13
thanks
smallg
Community Leader
19
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 22nd Mar 2015 18:38 Edited at: 22nd Mar 2015 18:38
it's definitely already here on the forums but quicker for me to write it again than search for it

radioactive_zone.lua
life\'s one big game

windows vista ultimate

i5 @3.3ghz, 4gb ram, geforce gtx460, directx 11
Tarkus1971
Audio Media Maker
10
Years of Service
User Offline
Joined: 24th Feb 2015
Location: England, UK
Posted: 22nd Mar 2015 20:49
thats works really well thank you, very very useful

http://en.tgcstore.net/?md=artists&aid=219730

check out my page on the store
Corno_1
GameGuru Tool Maker
14
Years of Service
User Offline
Joined: 3rd Nov 2010
Location:
Posted: 22nd Mar 2015 20:59
It seems there is someone fatser than me
My dream is to develope games, which makes fun when I create it and fun when other people play it.
PM
smallg
Community Leader
19
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 22nd Mar 2015 21:18
sorry corno, i was scripting anyway so just did that 1 again quick while i was there
life\'s one big game

windows vista ultimate

i5 @3.3ghz, 4gb ram, geforce gtx460, directx 11
Corno_1
GameGuru Tool Maker
14
Years of Service
User Offline
Joined: 3rd Nov 2010
Location:
Posted: 22nd Mar 2015 21:34
Quote: "sorry corno, i was scripting anyway so just did that 1 again quick while i was there"

Nothing to worry about
My dream is to develope games, which makes fun when I create it and fun when other people play it.
PM
Old Larry
GameGuru TGC Backer
12
Years of Service
User Offline
Joined: 26th Apr 2012
Location: Bucharest, Romania
Posted: 21st Apr 2015 17:51 Edited at: 24th Apr 2015 06:44
Or try to burn it slowly with this script


Smile today, tomorrow could be worse

http://bestradiolarry.ro/fpsarea/

"The best forum, game software, operating system or web platform, it's that software which can give you most of the features and speed, not just amazing graphics."
TheSourceCode
10
Years of Service
User Offline
Joined: 4th Mar 2015
Location:
Posted: 21st Apr 2015 20:59
Nice script's Old Larry and SmallG!
PM
J_C
17
Years of Service
User Offline
Joined: 9th Nov 2007
Location:
Posted: 23rd Apr 2015 14:45
Hi Larry I think you have a little typo in your script...

if GetTimer(e) >= 1000 then

should be..

if GetTimer(e) >= delay then

it would always be active... after its first trigger...
PM
Old Larry
GameGuru TGC Backer
12
Years of Service
User Offline
Joined: 26th Apr 2012
Location: Bucharest, Romania
Posted: 24th Apr 2015 06:46
J_C wrote: "Hi Larry I think you have a little typo in your script...

if GetTimer(e) >= 1000 then

should be..

if GetTimer(e) >= delay then

it would always be active... after its first trigger..."

Done, was one of my other script tests, and it's corrected now.
Smile today, tomorrow could be worse

http://bestradiolarry.ro/fpsarea/

"The best forum, game software, operating system or web platform, it's that software which can give you most of the features and speed, not just amazing graphics."

Login to post a reply

Server time is: 2025-04-06 16:43:45
Your offset time is: 2025-04-06 16:43:45