Massassi Forums Logo

This is the static archive of the Massassi Forums. The forums are closed indefinitely. Thanks for all the memories!

You can also download Super Old Archived Message Boards from when Massassi first started.

"View" counts are as of the day the forums were archived, and will no longer increase.

ForumsCog Forum → pefect idea for a cog!
pefect idea for a cog!
2002-04-05, 8:57 AM #1
im a big rpg player and i came up with an idea for a cog.....a cog that makes the whole level very slowly very slowly damage u..liek a sector damage cog but level wide....then set the bed as a healign secotr or a shower or bath ..this will drive the player the actually sleep and take showers and bathes.
2002-04-05, 11:47 AM #2
symbols

message startup
message pulse

flex damageInterval=1.0 # how often damage is applied in seconds.
flex damage=4.0 # how much damage is applied

thing victim local # actors and players affected.
int type local

end

# ========================================================================================

code

# ........................................................................................

startup:
victim = Getlocalplayerthing()
SetPulse(damageInterval);
return;

# ........................................................................................

pulse:

while (victim != -1)
{
type = GetThingType(victim);
// If we have an actor (2) or a player (10)
if ((type==2) || (type==10))
{
// Do the damage or healing.
if (damage > 0)
{
DamageThing(victim, damage, 0x1, victim);
}
else
{
HealThing(victim, -damage);
}
}

}
return;

# ........................................................................................

end
Ive moved over to JK2
2002-04-05, 12:21 PM #3
hmm..thanks
2002-04-06, 4:50 AM #4
did it work.
Ive moved over to JK2
2002-04-06, 6:01 AM #5
yea
2002-04-06, 8:23 AM #6
you still need the bed/bath/shower cog...

------------------
"Häb Pfrässe, süsch chlepfts!" - The coolest language in the world (besides cherokee)
"Häb Pfrässe, süsch chlepfts!" - The coolest language in the world (besides Cherokee)
2002-04-06, 9:00 AM #7
Uh to make a sector heal just take sector damage cog and add a negegtive in the damage part.

make the sector healing and then add what is the damage so its almost like your not being hurt and healed at the same time.
Ive moved over to JK2
2002-04-06, 11:44 PM #8
it wont look very realistic when somone just stands on the bed and gets healed...it would work with the bath idea, though.

------------------
"Häb Pfrässe, süsch chlepfts!" - The coolest language in the world (besides cherokee)
"Häb Pfrässe, süsch chlepfts!" - The coolest language in the world (besides Cherokee)
2002-04-07, 7:54 AM #9
FEIGN DEATH. with like ......ss3 b9 ? or maybe the startrek tc could do it ..u could lay on bed hit a key and go into the death key frame. and just lay down
2002-04-07, 7:54 AM #10
i just use the bacta tank cog o.o

↑ Up to the top!