Full Version : Damage Question
xmlspawner >>Scripting Support >>Damage Question
<< Prev | Next >>
ozzy- 05-03-2007
I know what line of script to add so that on hit the trainer takes no damage at all from anything. I'm looking for 2 other lines of script. The first one I'm looking for would be for when the trainer attacks so it does no damage at all, an override for that. The second line I'm looking for would be for when a staff member does the all kill command, so that it does not work and it would stay alive, if thats even possible. I have tried many diff ways for these 2 diff things I'm just not good enough to figure it out yet. If someone can show me how to do these 2 codes umm like the god of all gods artgorden lol, i would really appreciate it.
ozzy- 05-08-2007
ok the staff thing is not needed i know and thats fine but as far as the 0 damage on attack is there a way to do this if you dont want to show me a line that works is there a script that i can referance that does something like this?
ArteGordon- 05-08-2007
I believe you can just set the DamageMax and DamageMin properties on the trainer to zero to eliminate any melee damage.
zotos- 05-08-2007
Arte is correct on that part. On the [kill you could bless the creature by doing

QUOTE
[set blessed true

and target the creature.
side not that not many people know is if you want to [wipe an area but dont want one mobile deleted set that creature with

QUOTE
[set player true