Author Topic: Custom "fight"  (Read 135 times)

LappySheep

  • Jr. Member
  • **
  • Posts: 27
Custom "fight"
« on: August 12, 2017, 12:00:31 pm »
I'm not experienced with CRPL (like at all) but I'd like to ask whether there's a way I can make a custom fight using any of these ideas:
--> Nullifier damage, but it isn't an "instant kill" (like nullifying an emitter will completely destroy it; is there a way for it to deal a set amount of damage to a target)
--> Custom health bar - having for example 10,000 HP
--> Calling other scripts? (like having unit A calling unit B like a "summoning")

...and is there a way I can use shield keys? I'm not quite sure on how to use them, or what the randomly generated string is in the map editor.

Builder17

  • Map Maker
  • *****
  • Posts: 780
  • My account picture is from Nitrome Mutiny.
Re: Custom "fight"
« Reply #1 on: August 12, 2017, 02:44:56 pm »
Nullifier damage: Self CONST_NULLIFIERDAMAGEAMT Positivenumber SetUnitAttribute

Custom health bar: Self CONST_MAXHEALTH 10000 SetUnitAttribute
I am not sure does that work.

Calling other scripts: http://knucklecracker.com/wiki/doku.php?id=crpl:docs:createunit and
http://knucklecracker.com/wiki/doku.php?id=crpl:docs:addscripttounit

Shield keys: http://knucklecracker.com/wiki/doku.php?id=crpl:docs:artifactcollected but it's not so super useful IMHO :)
Not recommended to use it to forcing map order.
« Last Edit: August 12, 2017, 02:47:39 pm by Builder17 »

LappySheep

  • Jr. Member
  • **
  • Posts: 27
Re: Custom "fight"
« Reply #2 on: August 12, 2017, 04:09:00 pm »
Thanks. Is there a reason why I shouldn't use it to force a map order?

Edit: And if I can use them, is there a way to have several keys as a requirement?
« Last Edit: August 12, 2017, 04:28:35 pm by LappySheep »

GoodMorning

  • Map Maker
  • *****
  • Posts: 3031
  • (Pusillanimous)
Re: Custom "fight"
« Reply #3 on: August 12, 2017, 07:02:31 pm »
That part is CRPL, so you can have complex requirements. However, giving bonuses when another map has been completed is the accepted use. Locking maps is doable only by insta-failing the mission. A warning "This map is intended to be played after completing X, Y, and Z." is also appropriate.
A narrative is a lightly-marked path to another reality.

LappySheep

  • Jr. Member
  • **
  • Posts: 27
Re: Custom "fight"
« Reply #4 on: August 13, 2017, 06:23:40 am »
Alright, thanks.