buzzy Posted May 16, 2010 Is possible that you could make, for example, an enemies strength lava? OK, so this enemy usually likes to swim in hot lava (in deep water) and sometimes it comes out of the water and attack you. It's weakness is water. Every time it goes in the lava for a while and come out it changes skin. It does this three times. Each time it goes in the lava, it's damage factor increases. As you shoot this creature, it slowly goes back to normal from whatever point it is in. SO is there any way if you can make the creature go in the lava, (swim for a while and come out) and change skin (upto three times)? I hope you understand.. help please. 0 Share this post Link to post
AveryMaurice Posted May 16, 2010 Well I'm a bit new to ACS, but I found this which may help: http://zdoom.org/wiki/CheckActorFloorTexture If you were to make it so that it checks if the desired monster actor is on the lava texture, then make it do the actions that you want. 0 Share this post Link to post
buzzy Posted May 16, 2010 tried out the code in the script editor of Behaviour LUMP: ------------------------------------------- if (CheckActorFloorTexture(0, "GRASS1")) print (s:"You're on grass!"); else print (s:"You're not on grass.!"); -------------------------------------------- but it comes up with an error: -------------------------------------------- Line 1 in file "script.acs" ... script.acs:1: Invalid declarator. > if > ^ The ACS compiler did not compile your script. -------------------------------------------- any help? 0 Share this post Link to post
buzzy Posted May 16, 2010 Where am i missing semi colons? I tried this code from the zdoom wiki. It should work. Have i missing anything? I tried code here: script 1 OPEN { if (CheckActorFloorTexture(0, "GRASS1")) print (s:"You're on grass!"); else print (s:"You're not on grass.!"); } And i get this error: Line 4 in file "script.acs" ... script.acs:4: Function checkactorfloortexture is used but not defined. The ACS compiler did not compile your script. any solutions please 0 Share this post Link to post
ArmouredBlood Posted May 16, 2010 buzzy said:Line 4 in file "script.acs" ... script.acs:4: Function checkactorfloortexture is used but not defined. The ACS compiler did not compile your script. Do you have #include "zcommon.acs" in the beginning? 0 Share this post Link to post