Time of day - Players health

2 views
Skip to first unread message

shaun

unread,
Sep 8, 2011, 12:20:03 AM9/8/11
to benv2423-2011
Hi guys,
I'm trying to create a flowgraph which reduces the players health at a
certain time of day. So far I can only get this to happen temporarily,
is there a way i can get the players health to drop for an entire
period of time (say during the night) or even decrease slowly over a
certain time frame?
thanks
Shaun

Jules Cromarty

unread,
Sep 8, 2011, 1:06:25 AM9/8/11
to benv2423-2011
Hi Shaun,
I've uploaded a flowgraph to my blog that shows an example of how you
could decrease the players health constantly during the night.
http://1.bp.blogspot.com/-3203hTMEYUM/TmhJRRtVhEI/AAAAAAAAAIc/gkndJb4NeE8/s1600/CauseDamageAtNight.JPG
The example takes off one unit of health each second between 6pm and
6am.
This will eventally kill the player so you might need to tweak it to
either take less health off or take it off more gradually.
The problem you have with only temporarily taking health off, is the
players nano suit will automatically heal the player. A way around
this is to change the player model so it no longer has a nano suit.
This link will give you a tutorial from a previous course showing how
to do this: http://arch1101-2010jc.blogspot.com/2010/06/changing-player-character.html
Alternatively you can use the Nanosuit:Nanosuit flowgraph node to set
the energy level for particular times so that the player wont heal
themselves.
Cheers
Jules

shaun

unread,
Sep 8, 2011, 8:55:18 AM9/8/11
to benv2423-2011
Thanks Jules, that worked perfectly!
However I'm trying to get it to work so that when the player is within
range of an entity the health doesn't reduce. I've tried the following
flow graph (based on the one you showed me) and can figure out why it
isn't working? sorry I'm sure it something silly:
http://4.bp.blogspot.com/-bqBeUvva3tk/Tmi66cyNgGI/AAAAAAAAAGE/i-LBqQmDLY4/s1600/1.jpg


On Sep 8, 3:06 pm, Jules Cromarty <jules.croma...@gmail.com> wrote:
> Hi Shaun,
> I've uploaded a flowgraph to my blog that shows an example of how you
> could decrease the players health constantly during the night.http://1.bp.blogspot.com/-3203hTMEYUM/TmhJRRtVhEI/AAAAAAAAAIc/gkndJb4...
> The example takes off one unit of health each second between 6pm and
> 6am.
> This will eventally kill the player so you might need to tweak it to
> either take less health off or take it off more gradually.
> The problem you have with only temporarily taking health off, is the
> players nano suit will automatically heal the player. A way around
> this is to change the player model so it no longer has a nano suit.
> This link will give you a tutorial from a previous course showing how
> to do this:http://arch1101-2010jc.blogspot.com/2010/06/changing-player-character...

Jules Cromarty

unread,
Sep 8, 2011, 7:29:49 PM9/8/11
to benv2423-2011
Hey Shaun,
I've edited my previous post to include the solution. In theory, your
flowgraph should work but I suspect there are timing issues with
having the two timers and two blockers. I've just put everything
through the one blocker using a Logic:Any

On Sep 8, 10:55 pm, shaun <shaun_weisbr...@hotmail.com> wrote:
> Thanks Jules, that worked perfectly!
> However I'm trying to get it to work so that when the player is within
> range of an entity the health doesn't reduce. I've tried the following
> flow graph (based on the one you showed me) and can figure out why it
> isn't working? sorry I'm sure it something silly:http://4.bp.blogspot.com/-bqBeUvva3tk/Tmi66cyNgGI/AAAAAAAAAGE/i-LBqQm...
Reply all
Reply to author
Forward
0 new messages