Jump to content

How To Make A Slug Set Up On Energy Crystals Full Stuff Pleas


fun
 Share

Recommended Posts

okay i need some help with making a slug set up on Energy crystals yes i took a look at the slug set ups on the wiki and read the basics of goal scripting in the modding tutorials section but that only says on how to do it with rock raiders teleported and i already know how to do that so if any body who is a expert at goal scripting show me what i need to add to make this work and what each thing means i would be very happy just like in back to basics mission where it has this set up . oh i already know how to make the collecting thing work as seen here


GetCrystalsCurrentlyStored > 15 ? SetR2 1

GetCrystalsCurrentlyStored > 25 ? SetR2 2

GetCrystalsCurrentlyStored > 40 ? SetR2 3

GetCrystalsCurrentlyStored > 55 ? SetR2 4

GetCrystalsCurrentlyStored > 65 ? SetR2 5

GetCrystalsCurrentlyStored > 80 ? SetR2 6

GetCrystalsCurrentlyStored > 99 ? SetR2 7

GetCrystalsCurrentlyStored > 114 ? SetR2 8

GetCrystalsCurrentlyStored > 130 ? SetR2 9

GetCrystalsCurrentlyStored > 135 ? SetR2 10

GetCrystalsCurrentlyStored > 138 ? SetR2 11

Link to comment
Share on other sites

And...why did you make second topic about this after people already answered your question?

I'm confused...

Well, the first time, he couldn't get the script to work.

I need some help with making an NPL script which spawns slugs based on the players energy crystal count. I took a look at the various tutorials on the wiki, but that only states how to have a script functioning once Rock Raiders have been spawned. I already know how to do this.

If anybody is an expert at goal scripting, could you please show me what I need to add to make this work, where the script functions without Rock Raiders spawned, and also explain what each line means?

I think this is a grammatically correct version of his question.

Basically, I don't think scripts function until a Raider has been spawned, bar nothing. If you show me what you've got so far, and what exactly you want to achieve (and use spell-check!), I can help you.

Link to comment
Share on other sites

And...why did you make second topic about this after people already answered your question?

I'm confused...

Well, the first time, he couldn't get the script to work.

I need some help with making an NPL script which spawns slugs based on the players energy crystal count. I took a look at the various tutorials on the wiki, but that only states how to have a script functioning once Rock Raiders have been spawned. I already know how to do this.

If anybody is an expert at goal scripting, could you please show me what I need to add to make this work, where the script functions without Rock Raiders spawned, and also explain what each line means?

I think this is a grammatically correct version of his question.

Basically, I don't think scripts function until a Raider has been spawned, bar nothing. If you show me what you've got so far, and what exactly you want to achieve (and use spell-check!), I can help you.

okay After opening 23 NRM with PS pad i found this and this is the line of data for slugs


TRUE ? SetMessagePermit 1

  TRUE ? SetR1 0


  GetOxygenLevel < 30 ? :skip


  GetCrystalsCurrentlyStored > 10 ? SetR1 1

  GetCrystalsCurrentlyStored > 20 ? SetR1 2

  GetCrystalsCurrentlyStored > 25 ? SetR1 3

  GetCrystalsCurrentlyStored > 30 ? SetR1 4

  GetCrystalsCurrentlyStored > 35 ? SetR1 5

  GetCrystalsCurrentlyStored > 37 ? SetR1 6

  GetCrystalsCurrentlyStored > 40 ? SetR1 7

  GetCrystalsCurrentlyStored > 41 ? SetR1 8

  GetCrystalsCurrentlyStored > 42 ? SetR1 9

  GetCrystalsCurrentlyStored > 43 ? SetR1 10

  GetCrystalsCurrentlyStored > 44 ? SetR1 11


  GetSlugsOnLevel > GetR1 ? :skip

loopstart:

  GetR1 = 0 ? :loopend

  GetRandom100 < 10 ? GenerateSlug

  TRUE ? SubR1 1

  TRUE ? :loopstart

loopend:


skip:

  Stop

}

and this what i want to achieve to be able to make the slugs go up in numbers and increase by 1 just like in back to basics and make them not come out when my oxygen supply hits 30 or below and i need to know how to do that so can you help me please .:)

Link to comment
Share on other sites


TRUE ? SetMessagePermit 1


GetOxygenLevel > 30 ? :sluggenerator


sluggenerator:

GetCrystalsCurrentlyStored > 5 ? GenerateSlug

GetCrystalsCurrentlyStored > 10 ? GenerateSlug

GetCrystalsCurrentlyStored > 15 ? GenerateSlug

GetCrystalsCurrentlyStored > 20 ? GenerateSlug

GetCrystalsCurrentlyStored > 25 ? GenerateSlug

GetCrystalsCurrentlyStored > 30 ? GenerateSlug

GetCrystalsCurrentlyStored > 35 ? GenerateSlug

GetCrystalsCurrentlyStored > 40 ? GenerateSlug

GetCrystalsCurrentlyStored > 45 ? GenerateSlug

GetCrystalsCurrentlyStored > 50 ? GenerateSlug

GetCrystalsCurrentlyStored > 55 ? GenerateSlug

GetCrystalsCurrentlyStored > 60 ? GenerateSlug

GetCrystalsCurrentlyStored > 65 ? GenerateSlug

GetOxygenLevel < 30 ? :Skip


Skip:

Stop

This will generate a slug every 5 crystals collected until you reach 65 crystals, or your oxygen level drops below 30. Hopefully this works.

Link to comment
Share on other sites


TRUE ? SetMessagePermit 1


GetOxygenLevel > 30 ? :sluggenerator


sluggenerator:


GetCrystalsCurrentlyStored > 5 ? GenerateSlug


GetCrystalsCurrentlyStored > 10 ? GenerateSlug

GetCrystalsCurrentlyStored > 15 ? GenerateSlug

GetCrystalsCurrentlyStored > 20 ? GenerateSlug

GetCrystalsCurrentlyStored > 25 ? GenerateSlug

GetCrystalsCurrentlyStored > 30 ? GenerateSlug

GetCrystalsCurrentlyStored > 35 ? GenerateSlug

GetCrystalsCurrentlyStored > 40 ? GenerateSlug

GetCrystalsCurrentlyStored > 45 ? GenerateSlug

GetCrystalsCurrentlyStored > 50 ? GenerateSlug

GetCrystalsCurrentlyStored > 55 ? GenerateSlug

GetCrystalsCurrentlyStored > 60 ? GenerateSlug

GetCrystalsCurrentlyStored > 65 ? GenerateSlug

GetOxygenLevel < 30 ? :Skip


Skip:

Stop

This will generate a slug every 5 crystals collected until you reach 65 crystals, or your oxygen level drops below 30. Hopefully this works.

i am pretty sure this will help thanks and i can now study this thanks

oh one more thing did you test this in one of your levels so i can be sure this works properly

Link to comment
Share on other sites

oh one more thing did you test this in one of your levels so i can be sure this works properly

No can do, Captain. Unfortunately, I'm pretty busy job-hunting right now. You'll need to handle the testing yourself.

Link to comment
Share on other sites

 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.