[Mod] Advanced Guards [advanced_guards]

zorman2000
Member
 
Posts: 79
Joined: Tue Jul 26, 2016 18:18
In-game: zorman2000

[Mod] Advanced Guards [advanced_guards]

by zorman2000 » Thu Jun 08, 2017 03:16

This mod is almost entirely based on the original Guards mod (see: https://forum.minetest.net/viewtopic.php?f=9&t=17483)

This mod adds guards! Guards that are your personal soldiers and you can control.
These guards are not crafted, but they are created. To create guards, you need to put two blocks in vertical fashion of one of the supported materials:

  • Tin
  • Steel
  • Copper
  • Bronze
  • Gold
  • Obsidian
  • Mese
  • Diamond

Once you have placed the blocks, use a finalization staff to bring them to life! After that, they will follow your orders, which you can give using a war horn. You can order the guards to stand ground, regroup and follow you, or follow and attack enemies. You can also tell guards to not attack certain players with a manifesto document.

Screenshot:
Image
guards_mod.png
(187.94 KiB) Not downloaded yet


Download: https://github.com/hkzorman/advanced_guards/archive/master.zip
Browse the code (Github): https://github.com/hkzorman/advanced_guards

License: LGPL v2.1

Dependencies: default

Credits:
Special thanks to KGM for the original Guards mod. This mod is entirely based on that mod, doing modifications to the original code. However, the largest part of the code is still his, and full credits go to him.
See the original mod here: viewtopic.php?f=9&t=17483

Note: This is the first mod I publish (while certainly is not the first I make!) so please, comments, bug-reports, ideas, etc. all are welcome and appreciated!
Last edited by zorman2000 on Thu Jun 08, 2017 03:25, edited 1 time in total.
 

User avatar
TumeniNodes
Member
 
Posts: 2313
Joined: Fri Feb 26, 2016 19:49
Location: in the dark recesses of the mind
GitHub: TumeniNodes
IRC: tumeninodes
In-game: TumeniNodes

Re: [Mod] Advanced Guards [advanced_guards]

by TumeniNodes » Thu Jun 08, 2017 03:23

heh, tin soldiers... I like it!
There is nothing closer to Hell on Earth, than peanut butter in your jelly jar.
 

zorman2000
Member
 
Posts: 79
Joined: Tue Jul 26, 2016 18:18
In-game: zorman2000

Re: [Mod] Advanced Guards [advanced_guards]

by zorman2000 » Thu Jun 08, 2017 16:29

TumeniNodes wrote:heh, tin soldiers... I like it!


Yes, I tried to balance each soldier depending on the material. Tin are the weakest, in terms of HP and damage they can do, but as tin is light, they are very fast, attack quickly and walk fast. So the strategy for tin soldiers are like light infantry, they need to be many to be able to overwhelm!
 

User avatar
azekill_DIABLO
Member
 
Posts: 7192
Joined: Wed Oct 29, 2014 20:05
Location: Under my desk (but I can't see my monitor now X'[ )
GitHub: azekillDIABLO
In-game: azekill_DIABLO

Re: [Mod] Advanced Guards [advanced_guards]

by azekill_DIABLO » Fri Jun 09, 2017 14:26

the little guards are very cute!
【Voxellar 2.0】 ; 【MILA】 ; 【Rec_a_MT】 ; 【BB,HD】 ; 【▶ Youtube】 "Pizza is many people's lifeblood. The sauce is like nectar, dough is like ambrosia." -Chem871
 

v-rob
Member
 
Posts: 438
Joined: Thu Mar 24, 2016 03:19

Re: [Mod] Advanced Guards [advanced_guards]

by v-rob » Mon Jun 12, 2017 03:45

Could you add a stand ground, but when they see an enemy, they go and kill them, and then regroup?
 

zorman2000
Member
 
Posts: 79
Joined: Tue Jul 26, 2016 18:18
In-game: zorman2000

Re: [Mod] Advanced Guards [advanced_guards]

by zorman2000 » Wed Jun 14, 2017 22:05

v-rob wrote:Could you add a stand ground, but when they see an enemy, they go and kill them, and then regroup?


Yes, I believe I can do that. That would be kind of "watchful" mode. I also intend to add "defensive mode", where they stand ground and only attack back if attacked first.

Thanks for the idea!
 

User avatar
sparky
Member
 
Posts: 98
Joined: Sun Oct 05, 2014 00:54
Location: USA
IRC: ircSparky
In-game: sparky

Re: [Mod] Advanced Guards [advanced_guards]

by sparky » Wed Sep 06, 2017 16:26

Trying it on an server, I get this after a guard is loaded.

Code: Select all
ServerError: Lua: Runtime error from mod 'advanced_guards' in callback luaentity_Step(): ...etest/games/promo_game/mods/advanced_guards/init.lua:249: attempt to call method 'get_attribute' (a nil value
-"Never look down on someone unless you're helping them up"
 

zorman2000
Member
 
Posts: 79
Joined: Tue Jul 26, 2016 18:18
In-game: zorman2000

Re: [Mod] Advanced Guards [advanced_guards]

by zorman2000 » Fri Sep 08, 2017 01:49

sparky wrote:Trying it on an server, I get this after a guard is loaded.

Code: Select all
ServerError: Lua: Runtime error from mod 'advanced_guards' in callback luaentity_Step(): ...etest/games/promo_game/mods/advanced_guards/init.lua:249: attempt to call method 'get_attribute' (a nil value


Hi sparky! The issue should be fixed. Please download latest version in Github repo.

Thanks!
 

Chem871
Member
 
Posts: 672
Joined: Sat Aug 19, 2017 21:49
Location: Ankh-Morpork
GitHub: Chemguy99
In-game: Chem Nyx
 

zorman2000
Member
 
Posts: 79
Joined: Tue Jul 26, 2016 18:18
In-game: zorman2000

Re: [Mod] Advanced Guards [advanced_guards]

by zorman2000 » Fri Sep 08, 2017 02:06

Chem871 wrote:Could you make guards for materials in other mods?


I could, yes. Which other materials do you have in mind?
 

twoelk
Member
 
Posts: 1184
Joined: Fri Apr 19, 2013 16:19
Location: northern Germany

Re: [Mod] Advanced Guards [advanced_guards]

by twoelk » Fri Sep 08, 2017 09:52

zorman2000 wrote:
Chem871 wrote:Could you make guards for materials in other mods?


I could, yes. Which other materials do you have in mind?



how about cactus guards?
they could be useless on attack but harm the the hitter if attacked
so less soldier but more guard
sort of purely defensive
 

zorman2000
Member
 
Posts: 79
Joined: Tue Jul 26, 2016 18:18
In-game: zorman2000

Re: [Mod] Advanced Guards [advanced_guards]

by zorman2000 » Fri Sep 08, 2017 13:00

twoelk wrote:how about cactus guards?
they could be useless on attack but harm the the hitter if attacked
so less soldier but more guard
sort of purely defensive


Sounds like a great idea! I will try to implement this!
 

Chem871
Member
 
Posts: 672
Joined: Sat Aug 19, 2017 21:49
Location: Ankh-Morpork
GitHub: Chemguy99
In-game: Chem Nyx
 

User avatar
LMD
Member
 
Posts: 152
Joined: Sat Apr 08, 2017 08:16
Location: Bonn, Germany
GitHub: appgurueu
In-game: Limo

Re: [Mod] Advanced Guards [advanced_guards]

by LMD » Thu Mar 22, 2018 21:11

Maybe you could tweak more values ? Punching range, reload, damage, hp/damage quotient(for instance, I expect diamond to be killed easily, but strike very hard)
 


Return to WIP Mods



Who is online

Users browsing this forum: Google [Bot] and 6 guests