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

hazard plotscripts?

 
Post new topic   Reply to topic    Castle Paradox Forum Index -> HELP!
View previous topic :: View next topic  
Author Message
Fernurion
Village Idiot




Joined: 19 Aug 2003
Posts: 192
Location: Lost

PostPosted: Wed Oct 06, 2004 4:31 pm    Post subject: hazard plotscripts? Reply with quote

after spending the past four days in a state of confusion, i have to ask; is there a way of damaging a character uning a plotscript. eg, bumps into an npc?
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Calehay
...yeah.
Class B Minstrel



Joined: 07 Jul 2004
Posts: 549

PostPosted: Wed Oct 06, 2004 4:40 pm    Post subject: Bumping Reply with quote

Umm... I think that you can use a script that lowers HP (not completly sure how to do that.) Then set it to the NPC for run into.




This comes from the dictionary of Plotscripting commands:

set hero stat (who,stat,value,type)
A command that changes one of a hero's stats. The first argument is the position of the hero you want to change in your party as returned by find hero. The second argument is the name of the stat that you want to change. The names of the stats are also define in your HSI file in the form stat:name. The third argument is the new value of the stat. The last argument is either current stat or maximum stat. If you leave the last argument blank, current stat will be assumed.

Hopefully, this is of help to you.[/code]
_________________
Calehay
Back to top
View user's profile Send private message AIM Address
Aethereal
SHUT UP.
Elite Designer
Elite Designer



Joined: 04 Jan 2003
Posts: 928
Location: Gone! I pop in on occasion though.

PostPosted: Wed Oct 06, 2004 8:27 pm    Post subject: Reply with quote

Code:

script, hurthero, begin
#The hero is named Bob and he is going to be damaged for 25 HP.
setherostat(findhero(hero:Bob), stat:HP, getherostat(findhero(hero:Bob), stat:HP, current stat)--25, current stat)
end


First part of setherostat() finds Bob and stores him as that value. The second part declares that you want to change the HP. The third part uses getherostat() to return Bob's current HP and subtracts 25 from it. That value will be his new current HP.
_________________
Back to top
View user's profile Send private message Send e-mail AIM Address
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