Plant and Ant spray

Chris Parks

Vault Senior Citizen
Right, I have two problems with this and I can't see why as yet.

When I create a new item, I register it in Headers under ITEMPID. This time, I have done the same thing and when I place the item in my hand to use it, the mapper crashes. (Breakpoint error) This hasn't happened since I started registering the Items properly, so does anybodsy have any idea what might be wrong this time?

Secondly, I'm putting the finishing touches to everything and need a bug spray, (for ants and plants separately). I considered using script to check if there are ants say within 10 hexes of player and then destroying them when spray is used?

Does anybody have another way of doing this?
 
Hi there!
A): As far as I can remember there are 2 things which crash the mapper when putting an item in your hands: you try to use an item that has screwed graphics (It's the missing .frm data thingie), and the second is you're using a .frm which is a few pixels too huge. I made all kind of mistakes when tinkering in the headers to add my new items: I managed to produce WORST effects, such as ALL the graphics disappearing in-game... But no crashing. Usually if you make mistakes in a .H you simply can't compile. Check you arts.
B): It really depends on what you want to achieve...
I think the easiest way is a map var: dude uses the spray, map script gets an input, it kills all the ants on the map.
Or, you could attach a script to the spry, and have it check if there are plants/ants in the surrounding area upon use: if they are present then it causes a given amount of damage to the critters...
I think that via scripting it can be done in even more ways...
You could even simply make a new weapon, but it should cause "universal" damage....
Have a nice Sunday.
 
Back
Top