HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Sleeeep!

07-26-2004, 12:15 PM#1
logik
I am thinking of making a sleep system for my map...

basically, its you'll be required to have at least 6 hours sleep each day, if not you fill pass out and sleep for 10 hours due to lack of sleep...

and when you do pass out, it will be regardless of location...

i am thinking of storing the information in intergers, basically its just add the amount of seconds the person is asleep and if it is equal to 120 ( which is 6 hours in game i think )

how dose that sound? i know that i could be done and that it hasnt been thought of... but do you think there should be better penalties like you lose 10% health for every hour you are under-slepted.

just want some feed-back... suggestions... ideas... or even trigger ideas etc.
07-26-2004, 01:51 PM#2
johnfn
Ok, yeah. I think you should store it in integers. You start out with 18 hours of awakeness. (1 is subtracted from 18*60 every minute if the time is the same)Then at the end, you have to sleep for 6 hours (3 is added to it every minute asleep, so you go right back up to 18. One thing you might want to watch out for is instead of doing awakeness Equal to 0, you might want to do awakeness Less Than or Equal to 0, because in the rare event that the WE misses it hit exactly 0, the unit will be perminently awake and never have to sleep.

Just my idea on how to do it.
07-26-2004, 06:45 PM#3
logik
ummm.... i barely understood what you said, like it was all bunched together - do you mind explaining it a bit more clearly?
07-27-2004, 09:52 AM#4
logik
i am thinking it would be more easier and deadly if you loose 10% health every hour your awake.
07-27-2004, 12:48 PM#5
Syco
Quote:
Originally Posted by logik
i am thinking it would be more easier and deadly if you loose 10% health every hour your awake.
Code:
Events:
Game - Periodic Event - Every (60 or 120 or whatever an 'hour' is) seconds of the game
Actions:
If (put hasn't slept stuff here) then
Set unit health% (sleepy guy) = (%Health Sleepy Guy) - 10
-Syco
P.S. Almost forgot my obligatory grammar remark: Your english is good, it's not hard to tell its not your first language, but at least you're trying unlike the majority. Keep practicing and nobody will be the wiser.
07-27-2004, 02:42 PM#6
logik
oh dont worry about the triggers, i know enough about triggering to do it... i am just asking if there are any other things i could do, like if the -10% health every hour - or force them to sleep
07-27-2004, 03:17 PM#7
The grey Fox
how about making them slower and/or letting them do less damage? their tired after all and that reduces your physical fitness. You could also stop their mana regeneration or even make them lose mana because they can't concentrate anymore because of being so tired.
07-27-2004, 08:42 PM#8
Syco
Quote:
Originally Posted by The grey Fox
how about making them slower and/or letting them do less damage?
That's a real bitch to do, I wouldn't suggest it.
As far as actually making them 'sleep', you'll need to use pause/unpause. As far as the -10% health, I just explained it. If you're asking if it's a good idea: it's your map, do what you think.
-Syco
07-28-2004, 01:57 AM#9
logik
i could implement a curse type buff, making them have a chance to miss etc. or even a cripple buff?

and about the sleep buff, i was asking if there are different things i could do instead, and i already know the trigger to do it before you told me... but that irrelavant.
07-28-2004, 03:08 AM#10
super_sheep
Quote:
Originally Posted by Syco
Code:
Events:
Game - Periodic Event - Every (60 or 120 or whatever an 'hour' is) seconds of the game
Actions:
If (put hasn't slept stuff here) then
Set unit health% (sleepy guy) = (%Health Sleepy Guy) - 10
-Syco
P.S. Almost forgot my obligatory grammar remark: Your english is good, it's not hard to tell its not your first language, but at least you're trying unlike the majority. Keep practicing and nobody will be the wiser.
an hour with normal constants (u can set the amount of time fer a day) if 40 seconds
A day is 480 seconds
07-28-2004, 03:10 AM#11
super_sheep
Quote:
Originally Posted by Syco
Code:
Events:
Game - Periodic Event - Every (60 or 120 or whatever an 'hour' is) seconds of the game
Actions:
If (put hasn't slept stuff here) then
Set unit health% (sleepy guy) = (%Health Sleepy Guy) - 10
-Syco
P.S. Almost forgot my obligatory grammar remark: Your english is good, it's not hard to tell its not your first language, but at least you're trying unlike the majority. Keep practicing and nobody will be the wiser.
an hour with normal constants (u can set the amount of time fer a day) if 40 seconds
A day is 480 seconds
um the curse idea is good also "cripple" the unit making it weaker and you more likely to salvage it
Lost stats: VERY GOOD INCENTIVE based on LOAP where the only reason ppl buy drugs is for stats
07-28-2004, 09:17 AM#12
logik
hmmm... lost of stats... that sound good... but what about the later levels? when the stats will be worth less..

what about taking it a set further and giving the unit a taunt ability that has no cooldown and casts every, lets say half an hour or hour - making many nearby units attack him?
07-28-2004, 09:41 AM#13
Syco
Quote:
Originally Posted by logik
making many nearby units attack him?
Since you probably don't want it showing up as an ability (but if you do, that's fine), you might want to (I think you can do this) raise the unit's priority in triggers. I'm 90% sure priority is what makes possible enemies want to attack it (as opposed to other units, etc). You could also call the units to the fatigued unit using the same trigger.
Also, I'd suggest at most having one ability show. Call it "fatigue" and have it be something like bash, evasion, critical strike (where it's not an ability you "use", but not quite an aura). The fatigue would be a multi-level ability (you can tweak the level through triggers as well), but basically all you have to do is in the description put the things you want the player to know they've lost (like attack/move speed, etc etc). Unless you just want it to happen without tracking, in which case forget the ability altogether.
-Syco
07-28-2004, 12:28 PM#14
horusrogue
Quote:
You could also stop their mana regeneration or even make them lose mana because they can't concentrate anymore because of being so tired.

A certain percent chance that a summoning order is fumbled.
With disastrous side effects: i.e. make a summoned unit, ONE DIFFERENT from what you tried to summon and give that UNIT (or multiple) to the neutral hostile..now THAT would be a sleep deprivation problem!!!!!
Not only are you fuxored mana wise for the spell, but you may also ahve gotten your hero into deep doo doo...
-Horus
07-28-2004, 03:13 PM#15
DarkFanatic
i would weaken the character, because when a player can't do anything for 400 sec = just over 6 min, he gets bored and propably quits playing.
buffing the unit to weaken it sounds like a good idea, it will show under the effects, but not under abilities, which would look good in my opinion...