Page 1 of 1
Monster stealing specific item and run away
Posted: Wed Apr 05, 2017 1:10 pm
by kelly1111
Like the title sais. has anyone given this a try? I need a monster brain that steals "torches" and then runs away with them
Re: Monster stealing specific item and run away
Posted: Wed Apr 05, 2017 2:07 pm
by Isaac
Steals from the party? (..or just any torch on the wall , or on the ground?)
Re: Monster stealing specific item and run away
Posted: Wed Apr 05, 2017 2:21 pm
by Dr.Disaster
That sounds like a job for a
custom monster brain and some action component experimenting.
Basically it should take BrainComponent:performAction(...) for the torch theft followed by BrainComponent:startFleeing() and BrainComponent:flee() to run off. Now the tricky part seems the specific target of the theft. The MonsterStealWeaponComponent as used by frogs will grab a random in-hand weapon so it's prolly not what you want. Maybe MonsterPickUpItemComponent supplied with a torch id held by the party?
Re: Monster stealing specific item and run away
Posted: Wed Apr 05, 2017 3:00 pm
by zimberzimber
If you want it to steal from the party, you can take a look at the Imps code in my asset pack
If you want it to steal from objects such as torch holders or altars, follow Dr.Disaster lead
Re: Monster stealing specific item and run away
Posted: Wed Apr 05, 2017 3:27 pm
by kelly1111
Thanks for your quick replies. I want it to steal from the party (like the gigglers did in dungeon master)
I will have a look at your imp code zimber

Re: Monster stealing specific item and run away
Posted: Wed Apr 05, 2017 5:10 pm
by zimberzimber
I assume you're focusing on stealing torches to reduce visibility for the player, but don't forget there are other ways of obtaining a light source, which might render those monsters obsolete. (Light spell, that orb that casts the light spell, something custom you might have)