Scripting: (1) to end game early; (2) to make certain units invincible under certain conditions « Maps « Little Green Guys With Discussion
 
Wed, 09 Jun 2010, 2:20am #1
alex
Member
Condorman2-sm
Gold_small23
Vulture_smallCondor_small
Registered: Dec, 2008
Last visit: Sun, 05 Sep 2010
Posts: 424

I have a map idea that would require some potentially tricky-to-impossible scripting.

(1) The game would end after RoboBot is killed, rather than after all teams are killed but one.

(2) When RoboBot's unit is visible to units of two or more enemy teams, it takes 0 damage (i.e., it only takes damage when a single team can see it).

Tricky, or impossible?

Offline
Wed, 09 Jun 2010, 6:03am #2
Vynce
Member
Salmon
Gold_small14 Silver_small1
Vulture_small
Registered: Feb, 2009
Last visit: 10 hours ago
Posts: 922

(1) I think is probably possible (any reason not to force the end of the game by killing everybody who is left?)

(2) ... well, I know of no API for the LOS stuff.

Offline
Wed, 09 Jun 2010, 1:35pm #3
alex
Member
Condorman2-sm
Gold_small23
Vulture_smallCondor_small
Registered: Dec, 2008
Last visit: Sun, 05 Sep 2010
Posts: 424

Oh, well, I figured (2) was the deal breaker. The idea was to do "Kill Doctor Lucky" lgg-style, with RoboBot as Dr. Lucky. Each human player has a 100HP exec whose HP are worth 1 point each (probably by hiding 9 dead execs per team in the walls -- Bodies are Where You Find Them). Robo's exec has fewer HP (10 or 20) and they're worth the full amount. The game would end when Doctor Lucky is killed, and I guess it *could* end by simply killing everyone.

For those who haven't played Kill Doctor Lucky, in the original game, you can't make an attempt on Doctor Lucky's life unless there are no witnesses, hence the desire for LOS stuff.

It might still be fun even without the LOS stuff; at least, I have to try it.

Offline
Wed, 09 Jun 2010, 5:33pm #4
Vynce
Member
Salmon
Gold_small14 Silver_small1
Vulture_small
Registered: Feb, 2009
Last visit: 10 hours ago
Posts: 922

Awesome. (Ah, KDL, of course... i couldn't remember what game had that LOS mechanic.)

I suspect LOS stuff is in the libraries, I just don't know where it is. in KDL, as I recall, you have to both be in the same "room" and LOS applies to the whole room, so this question never came up, but -- would you want it to be nobody else has LOS to the Dr, or nobody has LOS to you? or no one person has both? or... ?

Offline
Wed, 09 Jun 2010, 5:58pm #5
alex
Member
Condorman2-sm
Gold_small23
Vulture_smallCondor_small
Registered: Dec, 2008
Last visit: Sun, 05 Sep 2010
Posts: 424

Yeah, that's the hard part. I think ideally it would be that you could damage the Dr so long as:

1. neither of you is visible to anyone else (strict rule), or
2. at least one of you is not visible to anyone else (looser rule under the idea that if no one sees you, someone simply witnesses the Dr being shot and the culprit is unknown; if no one sees the Dr, they simply see you shooting at something unknown)

...but if available, it might be easiest to be able to grab the information "is the Dr visible to at least two teams?" The hard part is resolving that in the middle of a turn, I think. Most other scripting occurs at the beginning/end of a turn.

Offline
Wed, 09 Jun 2010, 7:03pm #6
Vynce
Member
Salmon
Gold_small14 Silver_small1
Vulture_small
Registered: Feb, 2009
Last visit: 10 hours ago
Posts: 922

Actually, lots occurs during the turn; teleportation, for instance. and there is a hook for a unit getting shot, i believe. (certainly there's one for a unit getting killed.)

so the mid-turn-ness doesn't seem a problem. Note that the flags on Maelstrom are treated similarly specially -- when they die, if they were killed by self-damage, they resurrect at full health. The good Dr. might be similarly blessed -- actually, that might be interesting; you can injure him but not kill him if there are witnesses.

Still requires LOS API, though.

Offline
Wed, 09 Jun 2010, 7:16pm #7
alex
Member
Condorman2-sm
Gold_small23
Vulture_smallCondor_small
Registered: Dec, 2008
Last visit: Sun, 05 Sep 2010
Posts: 424

[slaps forehead] right. been thinking about flooding, ooze, and transporters too much.

Offline
Wed, 09 Jun 2010, 9:49pm #8
rubrick
Member
Picture_16
Gold_small18
Vulture_small
Registered: May, 2009
Last visit: 4 hours ago
Posts: 491

alex wrote:

[slaps forehead] right. been thinking about flooding, ooze, and transporters too much.

You probably just didn't have the brain.

Offline
Wed, 09 Jun 2010, 9:58pm #9
Polytrope
Member
Burn
Gold_small9 Silver_small2 Bronze_small3
Vulture_small
Registered: Jan, 2010
Last visit: 20 hours ago
Posts: 103

rubrick wrote:

You probably just didn't have the brain.

Look! A monkey!

Offline
Wed, 09 Jun 2010, 10:08pm #10
Vynce
Member
Salmon
Gold_small14 Silver_small1
Vulture_small
Registered: Feb, 2009
Last visit: 10 hours ago
Posts: 922

why am i suddenly filled with terrifying thoughts about a prickly heat lamp?

Offline