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 → Big Cog Request
Big Cog Request
2002-11-25, 10:41 AM #1
... if it's possible.

It's been a while. But I have a HUGE request. I'm not too sure if it's possible.

What I need is a cog which deals damage to a player when the're in one of 15 sectors. This damage is calculated as 1 damage every (1.1 - Green Value of Sector) seconds at +1 damage for every 5 points of shield damage below 100.

If not, tell me, and I'll end up using a good 50 cogs without that shield variable. If the shield variable is possible though, then can you make a sector damage cog with that in please?

Pretty please?

Thanks!

------------------
"'Ere we go, 'ere we go, 'ere we go!
'Ere we go, 'ere we go, 'ere we go!
'Ere we go, 'ere we go, 'ere we go!
'Ere we go, 'ERE WE GO!"
We're three million years into deep space. Where the smeg did I get a traffic cone?

<font face="Verdana, Arial" size="2">Originally posted by Avenger:
I'm more worried about the waffle intake. That's a lot of waffles.</font>
2002-11-26, 6:38 AM #2
Do you know what the 'for' function does?
Hey, I'm here! But who cares?
2002-11-28, 11:26 AM #3
Er... whoopsie daisy! JK, of course!

------------------
"'Ere we go, 'ere we go, 'ere we go!
'Ere we go, 'ere we go, 'ere we go!
'Ere we go, 'ere we go, 'ere we go!
'Ere we go, 'ERE WE GO!"
We're three million years into deep space. Where the smeg did I get a traffic cone?

<font face="Verdana, Arial" size="2">Originally posted by Avenger:
I'm more worried about the waffle intake. That's a lot of waffles.</font>
2002-11-29, 2:31 PM #4
Should be possible. The shield amount of the player can be checked via GetInv(player, 60).

------------------
"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-12-02, 5:23 AM #5
Erm... someone? Sorry about this but can someone please make this aforesaid, described cog? or is it too difficult to understand?

------------------
"'Ere we go, 'ere we go, 'ere we go!
'Ere we go, 'ere we go, 'ere we go!
'Ere we go, 'ere we go, 'ere we go!
'Ere we go, 'ERE WE GO!"
We're three million years into deep space. Where the smeg did I get a traffic cone?

<font face="Verdana, Arial" size="2">Originally posted by Avenger:
I'm more worried about the waffle intake. That's a lot of waffles.</font>
2002-12-02, 6:16 AM #6
I dont think I completely understood the request . . . modify it to fit your needs...

Code:
# What I need is a cog which deals damage to a player when
# the're in one of 15 sectors. This damage is calculated
# as 1 damage every (1.1 - Green Value of Sector) seconds
# at +1 damage for every 5 points of shield damage below 100.
#
# 12/2002 GBK
#==============================================================#
symbols

message   Startup
message   Pulse

sector    Damage0
sector    Damage1
sector    Damage2
sector    Damage3
sector    Damage4
sector    Damage5
sector    Damage6
sector    Damage7
sector    Damage8
sector    Damage9
sector    Damage10
sector    Damage11
sector    Damage12
sector    Damage13
sector    Damage14

thing     Player     local

int       I=0        local

flex      D=0        local

end
code
#------------------------------------------------------
startup:
	Player = jkGetLocalPlayer();
	SetPulse(VectorY(GetSectorTint(Damage0)));

Stop;
#------------------------------------------------------
pulse:
	for(I = 0; I < 15; I = I + 1) 
	if(GetThingSector(Player) == Damage0)
	{
		D = 100 - GetInv(Player, 60) / 5;		//This what you wanted?
		DamageThing(Player, D, 0x2, Player);
	}

Stop;
end

And when the moment is right, I'm gonna fly a kite.
2002-12-06, 11:49 AM #7
I didn't understand it perfectly, either, but I think you should start the pulse in an entered message, so that it is different for each sector and you should put "100 - GetInv(player, 60)" in brackets...

------------------
"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)

↑ Up to the top!