The | Suit submitted a new mod: [MR] Mad Doctors Experiments 2 - Various Experimental Code commented to help modders Read more about this mod...
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!
The | Suit updated [MR] Mad Doctors Experiments 2 with a new update entry: Liquid Furnace Read the rest of this update entry...
The | Suit updated [MR] Mad Doctors Experiments 2 with a new update entry: Weapon applying status effects to Wielder Read the rest of this update entry...
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 Thank you!
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
The | Suit updated [MR] Mad Doctors Experiments 2 with a new update entry: Full Suit Mod Read the rest of this update entry...
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...
The | Suit updated [MR] Mad Doctors Experiments 2 with a new update entry: Active Item Experiment Read the rest of this update entry...
The | Suit updated [MR] Mad Doctors Experiments 2 with a new update entry: Full Suit Experiment 2 Read the rest of this update entry...
The | Suit updated [MR] Mad Doctors Experiments 2 with a new update entry: Universe Flag Read the rest of this update entry...
The | Suit updated [MR] Mad Doctors Experiments 2 with a new update entry: Universe Flag, Radiomessages, Entity Scans Read the rest of this update entry...