Announcement: Why not try our official idea generator for inspiration when making puzzles?


Caravel Forum : DROD Boards : Architecture : Zombie scripting
New Topic New Poll Post Reply
Poster Message
underscorpion
Level: Goblin
Avatar
Rank Points: 17
Registered: 06-17-2008
IP: Logged
icon Zombie scripting (0)  
Hi there (again)! :)
I have 2 questions about scripting:
1. How can I make an NPC, who is invulnerable to sword, and vulnerable to bombs and hot tiles?
2. How can I make an NPC, who, if stabbed (not killed!), turns into a thing like ash or rock? I know how can I make this rock and ash, but, how can I make a script like: 'wait for player to stab me'?

I hope that it is a good thread... :?

____________________________
I'm one of the polish DROD players ;)

-=Sorry for my English :P=-
07-11-2008 at 08:07 PM
View Profile Send Private Message to User Send Email to User Show all user's posts Quote Reply
Someone Else
Level: Smitemaster
Avatar
Rank Points: 1300
Registered: 06-14-2005
IP: Logged
icon Re: Zombie scripting (0)  
Imperative: Invulnerable should do the trick. I think that it would also be killed by briars, adders, platforms, and fegundoes.
Wait for player to stab me would be like this:
If...
Wait for player(coordinates)
If...
Wait for player to face (direction)
GoTo (Label name)
If End
If End

Put that in a loop, with one for each direction.

[Last edited by Someone Else at 07-11-2008 11:32 PM]
07-11-2008 at 11:27 PM
View Profile Send Private Message to User Send Email to User Show all user's posts High Scores This architect's holds Quote Reply
Chaco
Level: Smitemaster
Rank Points: 3624
Registered: 10-06-2005
IP: Logged
icon Re: Zombie scripting (0)  
Imperative Invulnerable also makes the character immune to hot tiles and bombs.

Making the character based off of a wubba will nicely cause the character to be immune to swords, but will still make it vulnerable to hot tiles and bombs (if I remember correctly).

____________________________
Quick links to my stuff (in case you forgot where it was):
Click here to view the secret text

07-12-2008 at 12:00 AM
View Profile Send Private Message to User Send Email to User Show all user's posts High Scores This architect's holds Quote Reply
underscorpion
Level: Goblin
Avatar
Rank Points: 17
Registered: 06-17-2008
IP: Logged
icon Re: Zombie scripting (0)  
'Wait for player' - do you mean 'Wait for entity player' or 'Wait for player to move'?

Remember, that NPC will go to player and kill him, this is script:
Label 'x'
Move to player
Wait 1 turns (because zombies are slow :P)
Go to 'x'

Any ideas? :|

EDIT: 2 minutes ago I discovered strange thing: The NPC, who is Wubba doesn't be like Wubba - it's invulnerable to bombs and hot tiles... :?

____________________________
I'm one of the polish DROD players ;)

-=Sorry for my English :P=-

[Last edited by underscorpion at 07-12-2008 04:03 PM]
07-12-2008 at 08:11 AM
View Profile Send Private Message to User Send Email to User Show all user's posts Quote Reply
Someone Else
Level: Smitemaster
Avatar
Rank Points: 1300
Registered: 06-14-2005
IP: Logged
icon Re: Zombie scripting (0)  
Yes, I meant wait for entity player. In that case, put the player finding script in another character (in the script database), and copy the same script into notepad (or any other text editor with find and replace capabilities). Then, find and replace 'Player' with 'Self'. Put that in the zombie's script, and then compare the variables, doing pretty much the same thing. That should work better.
07-12-2008 at 04:01 PM
View Profile Send Private Message to User Send Email to User Show all user's posts High Scores This architect's holds Quote Reply
New Topic New Poll Post Reply
Caravel Forum : DROD Boards : Architecture : Zombie scripting
Surf To:


Forum Rules:
Can I post a new topic? No
Can I reply? No
Can I read? Yes
HTML Enabled? No
UBBC Enabled? Yes
Words Filter Enable? No

Contact Us | CaravelGames.com

Powered by: tForum tForumHacks Edition b0.98.8
Originally created by Toan Huynh (Copyright © 2000)
Enhanced by the tForumHacks team and the Caravel team.