map idea

Arghh · 2255

Arghh

  • Jr. Member
  • **
    • Posts: 7
map idea
on: December 12, 2014, 09:35:08 am
I'm very new to creating maps, and I wonder if this idea is possible.  I'm hoping one of our experienced folks could give some pointers.

my basic vision is a map that starts out covered in deep creeper
as the mission starts, one command module is set to land in the middle of the creeper, it would probably take some damage initially...
as the ship lands, a singularity is fired and collects the creeper into a massively tall point, clearing at least a small safe area around the ship.  the object would be to build up quickly and wipe out the creeper in the singularity before the timer runs out.
I dont see any way to build a singularity on the map editor.

Any ideas if this would be possible?

--Arghh



teknotiss

  • Hero Member
  • *****
    • Posts: 3133
Re: map idea
Reply #1 on: December 12, 2014, 10:59:31 am
I'm very new to creating maps, and I wonder if this idea is possible.  I'm hoping one of our experienced folks could give some pointers.

my basic vision is a map that starts out covered in deep creeper
as the mission starts, one command module is set to land in the middle of the creeper, it would probably take some damage initially...
as the ship lands, a singularity is fired and collects the creeper into a massively tall point, clearing at least a small safe area around the ship.  the object would be to build up quickly and wipe out the creeper in the singularity before the timer runs out.
I dont see any way to build a singularity on the map editor.

Any ideas if this would be possible?

--Arghh

this is a CRPL question, since trying to do this without code will be nearly impossible.
so perhaps ask here
http://knucklecracker.com/forums/index.php?board=25.0
and hopefully a code monkey will point you in the correct direction!
hope that helps  8)

"Is God willing to prevent evil, but not able? Then he is not omnipotent.... Is he able, but not willing? Then he is malevolent.... Is he both able and willing? Then whence cometh evil?.... Is he neither able nor willing? Then why call him God?" --- Epicurus


Hubs

  • Community Guild
  • *****
    • Posts: 332
Re: map idea
Reply #2 on: December 12, 2014, 11:03:27 am
You'll definately need to use CRPL. There is alot of infromation on the wiki. You'll probably need to use EnableTowerField. You could just create a crpl core and set it's image to the singularity black hole image, then just add the field effect. You can also use SetText on the core to add a text above it to show a countdown.

Something like this might work (I have not tested this):

Code: [Select]
$time:9000 # 30 frames/sec * 60 seconds per minute * 5 minutes
$range:100 # range in cells
$creeperstrength:-100000000 # strength for creeper to get sucked in: need use really high numbers to see the effect
$anticreeperstrength:0 # strength for anti-creeper to get sucked in: need use really high numbers to see the effect
$decreasebyrange:TRUE # make the effect decrease by range - can be true or false
$delay:30 # delay the effect this many frames

delay(<-delay)
once
SetTimer1(<-time)
EnableTowerField(<-range <-creeperstrength <-anticreeperstrength 0 <-decreasebyrange)
SetText(-50) # offsets text above core by 50 pixels
endonce

GetTimer1 ->time
if(<-time neq0)
SetText(<-time div(30.0) round(0))
else
DisableTowerField
SetText("")
Destroy(self 0) # removes core when no longer needed
endif



Courtesy

  • Jr. Member
  • **
    • Posts: 84
Re: map idea
Reply #3 on: December 12, 2014, 02:26:15 pm
There is a way to do this without CRPL if you only need a one time effect: CRPL would be far, far easier, but you could also generate a vast amount of aether, fire a singularity via a forge: then delete the force, totems, etc, and build the map around the soon to generate singularity.

It would be a neat feat simply due to how inconvenient it is compared to CRPL : P



Arghh

  • Jr. Member
  • **
    • Posts: 7
Re: map idea
Reply #4 on: December 13, 2014, 07:50:21 am
Thanks everyone for your replies.  I used the code posted by Hubs.  Nice job for untested code. the only thing I needed to change was the decreasebyrange value (the system wanted an integer value, apparently 1=true, 0=false.  I got the map mostly working as I envisioned and uploaded it.

There is one more thing I cant seem to figure out... I want to "force land" the command module, so I selected it and clicked where I want it to land.  however, when you run the map, you can still hit cancel and put it elsewhere, or just wait.  any suggestions on how to limit modules, and get rid of the ability to cancel its deployment?

--Arghh



stdout

  • Community Guild
  • *****
    • Posts: 1229
Re: map idea
Reply #5 on: December 13, 2014, 09:17:27 am
Once the CN touches ground, the user can no longer cancel its placement. So you can select to place it, wait the three seconds for it to land, then reset the timer and you're all set.



Asbestos

  • Full Member
  • ***
    • Posts: 621
Re: map idea
Reply #6 on: December 13, 2014, 11:26:47 am
You can always limit the number of CNs in Unit Limits. It's at the very bottom.



teknotiss

  • Hero Member
  • *****
    • Posts: 3133
Re: map idea
Reply #7 on: December 13, 2014, 03:16:19 pm
Once the CN touches ground, the user can no longer cancel its placement. So you can select to place it, wait the three seconds for it to land, then reset the timer and you're all set.

isn't it once the CN starts to drop? ???

"Is God willing to prevent evil, but not able? Then he is not omnipotent.... Is he able, but not willing? Then he is malevolent.... Is he both able and willing? Then whence cometh evil?.... Is he neither able nor willing? Then why call him God?" --- Epicurus


Cavemaniac

  • Sr. Member
  • ****
    • Posts: 1613
  • The Caveman. Since 1989. Often imitated.
Re: map idea
Reply #8 on: December 14, 2014, 04:01:49 am
Once the CN touches ground, the user can no longer cancel its placement. So you can select to place it, wait the three seconds for it to land, then reset the timer and you're all set.

isn't it once the CN starts to drop? ???

Yep.

I've utilised that feature to force the player to accept my drop-point in my map 'The Bardel Redemption' in the Alpha Sector.

Be yourself. Everyone else is already taken.