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 → Simple question about plagues
Simple question about plagues
2000-12-03, 7:36 PM #1
I am making a cog that replaces force grip with a plague that takes some health from everyone in the level, but the problem is that I don't know the command for that, what I am saying is I want to eliminate the targeting reticule and simply effect everybody in the level.

the command I am looking for would be simular to this:

victim = FirstThingInView

and the actual effect I want would be

victim = EveryoneInLevel


Now what i believe is EveryoneInLevel is just jibberish and I need a script that actually exists! please if you know, tell me that script!
2000-12-04, 5:11 PM #2
Oh come on! Maybe I should ask better coggers! you probably don't even know, dissapointing! (reverse psycholigy)

[http://forums.massassi.net/html/frown.gif]
2000-12-05, 4:34 AM #3
I share your dissapointment..


massassians...

------------------
SDÅ_Lªkútí
SDÅ_Lªkútí
2000-12-05, 9:08 AM #4
Here:
Code:
symbols
thing player
int damage=10
int inLevel
int go=0
message startup
message activated
message deactivated
message killed
end

startup:
player=GetLocalPlayerThing();

activated:
go=1;
inLevel=GetThingCount();
for(i>=0; i<=inLevel; i=i+1)
{
if(go==1)
   {
   victim=i;
   if(GetThingFlags(victim) & 0x400)
      {
      DamageThing(victim, damage, 0x8, player); 
      }
   }
}

deactivated:
call stop_power;

killed:
call stop_power;

stop_power:
go=0;
end

I haven't tested it, and it isn't as full featured as it could be. You will most likely need to revise and add, as I am doing it off the top of my head.
Capitalization
Commas
Periods
Question Marks
Apostrophes
Confusable Words
Plague Words

↑ Up to the top!