Castle Paradox Forum Index Castle Paradox

 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 Gamelist   Review List   Song List   All Journals   Site Stats   Search Gamelist   IRC Chat Room

How do you make an NPC hurt you

 
Post new topic   Reply to topic    Castle Paradox Forum Index -> HELP!
View previous topic :: View next topic  
Author Message
Laven Atries
Starmaster




Joined: 21 Mar 2003
Posts: 11

PostPosted: Mon Apr 28, 2003 5:50 am    Post subject: How do you make an NPC hurt you Reply with quote

Basically, the topic says it all. I want to know if there is a script command, or series of them that I can use to make an NPC deal 4 damage to a hero every time he activates it. Basically I'm trying to make a walking, talking harm tile. Any help would be appreciated!

-Laven Atries
_________________
Oro?
Back to top
View user's profile Send private message
Setu_Firestorm
Music Composer




Joined: 26 Mar 2003
Posts: 2566
Location: Holiday. FL

PostPosted: Mon Apr 28, 2003 9:52 pm    Post subject: Reply with quote

I'm not entirely sure if this'll work, but I think it just may.

Code:
script, MeanNPC, begin   #Script for the mean guy who punches you

tweak palette (20,0,0)
update palette                #all of these commands will make the screen
wait (2)                         #flash red
set hero stat (hero:You,stat:HP,current stat -- "Damage")  #this calculates wait (2)                                                                         #damage
reset palette
update palette
end


After that, just tell the NPC to run that "MeanNPC" script. Hope that helps.
_________________


Facebook: http://www.facebook.com/georgerpowell
Newgrounds: http://setu-firestorm.newgrounds.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address MSN Messenger
Guest







PostPosted: Tue Apr 29, 2003 3:26 am    Post subject: Reply with quote

thanks. I got the script working. Appreciate the help!

-Laven Atries
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Castle Paradox Forum Index -> HELP! All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group