Jump to content

Recommended Posts

Need a little help writing a script for an impossible to defeat monster. If this isn't the place for this kind of request, I apologize. The idea for the creature is that the player HAS to run from it.


What I'd like the script on the creature to do is, once the creature is killed, the body instantly disappears (ideally before the player can activate the corpse), and two more of the same creature spawn in (the same creature, so that if the new creatures are killed, they also spawn two more each, and so on). This way, the player can't legitimately defeat the creature, and (without cheats, anyway) is forced to flee.


I'll be teleporting the player into the end of a long room, perhaps having to navigate a long maze of traps while being pursued by this unstoppable monster, and the only escape is to get the the exit on the far side of the room.


As a side note, I also need help scripting music to play that will override the normal combat music.


Thanks in advance.

Link to comment
Share on other sites

Sounds like the Bloodmoon Spriggan, maybe worth a look at that critter?

 

Well, I don't know ANYTHING about scripting, but it looks like the spriggan's script simply makes the thing recover three times (which is what it does in-game). I need it to double each time. I'm not sure how to manipulate the script in the slightest.

 

I've tried looking at scripting tutorials, and I just can't get my head around them.

Link to comment
Share on other sites

I think you could try the following script attached to the creature:

begin LSD_monster_doublng

float timer

if ( timer < 0.0 )
	set timer to ( timer + getsecondspassed )
	if ( timer > 0.0 )
		set timer to 0.0
		setdelete 1
	endif
endif

if ( getdisabled )
	return
endif

if ( ondeath )
	placeatme monster_id 1 100 0
        placeatme monster_id 1 200 0
        disable
 	set timer to -1.0
endif

end
Link to comment
Share on other sites

 

I think you could try the following script attached to the creature:

begin LSD_monster_doublng

float timer

if ( timer < 0.0 )
	set timer to ( timer + getsecondspassed )
	if ( timer > 0.0 )
		set timer to 0.0
		setdelete 1
	endif
endif

if ( getdisabled )
	return
endif

if ( ondeath )
	placeatme monster_id 1 100 0
        placeatme monster_id 1 200 0
        disable
 	set timer to -1.0
endif

end

 

The script works! Thank you so much! I tried it on a Bonelord, and sure enough, every time you kill it, it doubles when it dies. I'm going to try it on a variety of other monsters, to see how it responds.

Edited by LordSerathDarklands
Link to comment
Share on other sites

 

The script works! Thank you so much! I tried it on a Bonelord, and sure enough, every time you kill it, it doubles when it dies. I'm going to try it on a variety of other monsters, to see how it responds.

 

Glad to hear it! I will look forward to seeing how it fins in to your project.

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...