View previous topic :: View next topic |
Author |
Message |
Fernurion Village Idiot

Joined: 19 Aug 2003 Posts: 192 Location: Lost
|
Posted: Wed Oct 06, 2004 4:31 pm Post subject: hazard plotscripts? |
|
|
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 |
|
 |
Calehay ...yeah. Class B Minstrel

Joined: 07 Jul 2004 Posts: 549
|
Posted: Wed Oct 06, 2004 4:40 pm Post subject: Bumping |
|
|
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 |
|
 |
Aethereal SHUT UP. Elite Designer


Joined: 04 Jan 2003 Posts: 928 Location: Gone! I pop in on occasion though.
|
Posted: Wed Oct 06, 2004 8:27 pm Post subject: |
|
|
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 |
|
 |
|