Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
buzzy

Is it possible that you can make the enemy stronger in lava?

Recommended Posts

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.

Share this post


Link to post

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?

Share this post


Link to post

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

Share this post


Link to post
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?

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×