|
Post by phlinn on Feb 26, 2008 12:15:32 GMT -5
In elements.lua, search for anger = 1 and replace it with if (who == 0) then anger = 1 end
This will make monsters turn on you only if you are the source of an effect hitting them, I think. I haven't tested it myself.
|
|
|
Post by Variaz on Feb 26, 2008 12:21:35 GMT -5
Can you try it, and confirm whether it works or not?
|
|
|
Post by phlinn on Feb 26, 2008 12:59:31 GMT -5
Well, I initially just went looking at the code for the hell of it, because I never found the summoner concept all that appealing. I have a decent handle on lua scripting in portralis now though, and you indicated it was probably in elements.lua, so that's where i looked. BTW, how do you use the hire/befriend command? it's boosted by having leadership 50, but I can't find such a command.
I enabled wizard mode and figured out how to level myself up, get a book, and summon a creature. It continued figthing on my behalf after being hit. When I used a special attack on it, I saw a message about it becoming angry as it died... but it didn't last long enough. Pretty sure it's a fix.
On an unrelated note, you may want to figure out what's wrong with orbs. It wasn't even listed as an option when I went to give myself a lite source, just a torch and a lantern. I'm guessing there's some hard coding involved, not just the k_info.txt definition, but it might involve the SPECIAL_GENE flag.
|
|
|
Post by Variaz on Feb 26, 2008 13:14:10 GMT -5
What are you talking about with this Orb things? To my knowledge, Orbs works fine. If you're wondering why they're never generated, it's because they're meant to be artifacts. Kind of like Portralis own version of the Phial.
|
|
|
Post by Gando on Feb 26, 2008 14:32:14 GMT -5
Thanks Phlinn Ill see if that fix works.
==edit==
Ok tried it with a slight modification to avoid potential null errors
local anger
if (who == 0) then anger = 1 else anger = 0 end
This seems to work fine for me.
|
|
|
Post by phlinn on Feb 26, 2008 14:53:39 GMT -5
Hmm... orbs are listed in K_info.txt, although at least one specific one is in a_info.txt. I would have thought i'd be able to give one to myself the wizard command.
|
|
grindorin
Champion
Das Haenchen lebt.
Posts: 151
|
Post by grindorin on Feb 26, 2008 16:44:38 GMT -5
There is a wizard command to generate artifacts ('C' if I recall correctly). It will prompt for the artifact number, as listed in a_info.txt. As for creating a basic orb, I have no idea how the list is populated for the wizard command.
|
|
|
Post by junyortrakr on Feb 27, 2008 21:35:38 GMT -5
I'd noticed the same problem with all damaged pets attacking you. I'll try the fix when I have time.
|
|
|
Post by hairybolox on Feb 28, 2008 4:21:28 GMT -5
By jingo it works !!! I though id wasted loads of points.....
Thanks for the fix - you're a star !!!
|
|
|
Post by Variaz on Feb 28, 2008 9:08:26 GMT -5
Seems peoples tested it and it works, so I've just copied it to elements.lua. Thanks for your contribution!
|
|
|
Post by Gando on Feb 28, 2008 17:42:43 GMT -5
Aye thanks Phlinn
|
|