[Mod] Advanced Guards [advanced_guards]

Post Reply
zorman2000
Member
Posts: 83
Joined: Tue Jul 26, 2016 18:18
GitHub: hkzorman
In-game: zorman2000

[Mod] Advanced Guards [advanced_guards]

by zorman2000 » Post

This mod is almost entirely based on the original Guards mod (see: 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_gu ... 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: 2853
Joined: Fri Feb 26, 2016 19:49
GitHub: TumeniNodes
IRC: tumeninodes
In-game: TumeniNodes
Location: in the dark recesses of the mind
Contact:

Re: [Mod] Advanced Guards [advanced_guards]

by TumeniNodes » Post

heh, tin soldiers... I like it!
Ich mag keine grünen Eier und Schinken, ich mag sie nicht Sam I Am

zorman2000
Member
Posts: 83
Joined: Tue Jul 26, 2016 18:18
GitHub: hkzorman
In-game: zorman2000

Re: [Mod] Advanced Guards [advanced_guards]

by zorman2000 » Post

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: 7494
Joined: Wed Oct 29, 2014 20:05
GitHub: azekillDIABLO
In-game: azekill_DIABLO
Location: OMICRON
Contact:

Re: [Mod] Advanced Guards [advanced_guards]

by azekill_DIABLO » Post

the little guards are very cute!

User avatar
v-rob
Member
Posts: 745
Joined: Thu Mar 24, 2016 03:19
GitHub: v-rob
Location: Right behind you.

Re: [Mod] Advanced Guards [advanced_guards]

by v-rob » Post

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

zorman2000
Member
Posts: 83
Joined: Tue Jul 26, 2016 18:18
GitHub: hkzorman
In-game: zorman2000

Re: [Mod] Advanced Guards [advanced_guards]

by zorman2000 » Post

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: 140
Joined: Sun Oct 05, 2014 00:54
GitHub: Elkien3
IRC: ircSparky
In-game: sparky
Location: USA
Contact:

Re: [Mod] Advanced Guards [advanced_guards]

by sparky » Post

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

zorman2000
Member
Posts: 83
Joined: Tue Jul 26, 2016 18:18
GitHub: hkzorman
In-game: zorman2000

Re: [Mod] Advanced Guards [advanced_guards]

by zorman2000 » Post

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: 947
Joined: Sat Aug 19, 2017 21:49
GitHub: Chemguy99
In-game: Chem Nyx
Location: My Basement's Attic

Re: [Mod] Advanced Guards [advanced_guards]

by Chem871 » Post

Could you make guards for materials in other mods?
What is SCP-055 again? I forgot.

zorman2000
Member
Posts: 83
Joined: Tue Jul 26, 2016 18:18
GitHub: hkzorman
In-game: zorman2000

Re: [Mod] Advanced Guards [advanced_guards]

by zorman2000 » Post

Chem871 wrote:Could you make guards for materials in other mods?
I could, yes. Which other materials do you have in mind?

User avatar
twoelk
Member
Posts: 1368
Joined: Fri Apr 19, 2013 16:19
GitHub: twoelk
IRC: twoelk
In-game: twoelk
Location: northern Germany

Re: [Mod] Advanced Guards [advanced_guards]

by twoelk » Post

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: 83
Joined: Tue Jul 26, 2016 18:18
GitHub: hkzorman
In-game: zorman2000

Re: [Mod] Advanced Guards [advanced_guards]

by zorman2000 » Post

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: 947
Joined: Sat Aug 19, 2017 21:49
GitHub: Chemguy99
In-game: Chem Nyx
Location: My Basement's Attic

Re: [Mod] Advanced Guards [advanced_guards]

by Chem871 » Post

Maybe mithril from moreores, or titanium from Aqua's titanium mod?
What is SCP-055 again? I forgot.

User avatar
LMD
Member
Posts: 907
Joined: Sat Apr 08, 2017 08:16
GitHub: appgurueu
IRC: appguru[eu]
In-game: LMD
Location: Germany
Contact:

Re: [Mod] Advanced Guards [advanced_guards]

by LMD » Post

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)
My stuff: Projects - Mods - Website

Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests