Cornwallis
Member
- Joined
- Jan 3, 2010
- Messages
- 480
- Reaction score
- 16
Hello, so I'm trying to add a skull to different monsters with little luck. I've tried doing skull="white", skull="3", skull="SKULL_WHITE", flag_skull="SKULL_WHITE", etc,. and basically nothing in the monsters .xml file will work for me, so if someone knows how that'd be great. I looked in the monster.cpp and it supports the skull so perhaps I'm wording it wrong. I came up with this code:
and it adds a skull to the monster if the player is in view of the monster whenever it's spawned, but if the player walks out of view or isn't present during the spawn time then the skull is absent.
Code:
Game.createMonster("strong " .. v .. "", k[1], false, true):setSkull(SKULL_WHITE)