1. Please be advised of a few specific rules and guidelines for this section.

RELEASED [MR] Mad Doctors Experiments 2 [SB 1.1] Version 1.8

Various Experimental Code commented to help modders

  1. The | Suit

    The | Suit Agent S. Forum Moderator

    The | Suit submitted a new mod:

    [MR] Mad Doctors Experiments 2 - Various Experimental Code commented to help modders

    Read more about this mod...
     
    AlbertoRota likes this.
  2. AlbertoRota

    AlbertoRota Scruffy Nerf-Herder

    Outstanding initiative!
    As soon as i go home, i will share some interesting weapon tricks i've found recently:
    • Weapon give "Status effect" only when equipped. (DONE, pull request sent)
    • Weapon give "Status effect" on energy exaustion. (DONE, pull request sent)
    • Weapon stats change depending on energy/health level. (DONE, pull request sent)
    I hope they help someone!
     
    Last edited: Sep 9, 2016
    The | Suit likes this.
  3. The | Suit

    The | Suit Agent S. Forum Moderator

    AlbertoRota likes this.
  4. The | Suit

    The | Suit Agent S. Forum Moderator

    AlbertoRota likes this.
  5. AlbertoRota

    AlbertoRota Scruffy Nerf-Herder

    I have a little challenge/question for you, or anyone who follows this thread.
    In the weapon experiment, we have "testheavyassaultrifle" and "testdizzyingbassaultrifle", so far so good.
    But... what about a "testheavydizzyingbassaultrifle"? given that "scripts" section of the activeitem is a table, one could think of doing:
    Code:
    ...
    "scripts" : [
      "testdizzyingassaultrifle.lua",
      "testheavyassaultrifle.lua"
    ],
    ...
    But every time I test, it sadly only runs the last script and ignores the rest.

    Of course i can do a "testheavydizzyingassaultrifle.lua" and put all the code in, but on the long run, this will kill all modularity and combinatorial explosion is likely to happen :nuruconfused:

    Thank you!
     
  6. The | Suit

    The | Suit Agent S. Forum Moderator

    That is because you can't have scripts have the same function directly.
    It will just choose one.

    If you want to combine functions you make a hook.

    For example this is one of my old mods - This hooks into primary_player.lua
    https://github.com/xxswatelitexx/St...ob/master/temperature/scripts/temperature.lua
     
    AlbertoRota likes this.
  7. AlbertoRota

    AlbertoRota Scruffy Nerf-Herder

  8. The | Suit

    The | Suit Agent S. Forum Moderator

    The | Suit updated [MR] Mad Doctors Experiments 2 with a new update entry:

    Full Suit Mod

    Read the rest of this update entry...
     
    AlbertoRota likes this.
  9. The | Suit

    The | Suit Agent S. Forum Moderator

    The | Suit updated [MR] Mad Doctors Experiments 2 with a new update entry:

    Data Storage Experiment 3 - Weapon Status Effect Experiment 2.

    Read the rest of this update entry...
     
  10. The | Suit

    The | Suit Agent S. Forum Moderator

    AlbertoRota likes this.
  11. The | Suit

    The | Suit Agent S. Forum Moderator

  12. The | Suit

    The | Suit Agent S. Forum Moderator

  13. The | Suit

    The | Suit Agent S. Forum Moderator

Share This Page