PDA

View Full Version : scripting in an area with fear



cardinal
07-29-2004, 05:11 AM
is there any way to deal with scripting when monsters in the area can cast fear, causing you to bolt from teh room? it seems to throw off my script in combat.

Enchanter
07-29-2004, 09:15 AM
Use looks and the room descriptions to figure out what room you're in if you get a 'you can't go there' message.

Deathravin
08-04-2004, 04:34 PM
what I do is I have a "goback" that sees where I am and gets me to a place to run the acutal running back function. Now the "goback" is the most pain in the ass part of any script, but its the only way I've found to do it.

so it sees where you are, and goes back to the pre-dertirmined place check your mana or your mind and if you're ok to keep hunting, then just goto the hunting part of the script, if you're good to leave, then goto the travel part.

Example of a "goback" - This one is for The Bog in Vaalor

GoBackStandupP:
pause 1
GoBackStandup:
Match ComeBackFromHuntL You stand back up.
Match ComeBackFromHuntL You are already standing.
Match GoBackStandupP You are still stunned.
Match GoBackStandupP You struggle, but fail to stand.
put stand
Matchwait

ComeBackFromHuntLDP:
pause 1
ComeBackFromHuntLD:
Match ComeBackFromHuntL You are now in a defensive stance.
Match ComeBackFromHuntL Cast Round Time in effect: Setting stance to guarded.
Match ComeBackFromHuntLDP you are still stunned
Match ComeBackFromHuntLDP ...wait
Put stance def
Matchwait
ComeBackFromHuntP:
pause 1
GoBackGenericSub:
ComeBackFromHuntL:
put Look
ComeBackFromHunt:
Save GoBack
Match GenericUndisease !D>
Match GenericUnLeech You feel something slimy on you, and glance down to notice a large slimy leech attached to your skin. Eww!
Match GenericUnLeech You feel a bit weaker as a large slimy leech draws the blood from your body.
Match RestingMana [Ta'Vaalor, Amaranth Court]
Match GoBackToFrom [Fethayl Bog, Marsh Edge]
Match GoBackGoNEWait [Fethayl Bog, Mudpit]
Match GoBackGoW [Fethayl Bog, Muddy Slough]
Match GoBackGoMud [Fethayl Bog, Fallen Tree]
Match GoBackGoWWait [Fethayl Bog, Ruined Shrine]
Match GoBackGoNEWait [Fethayl Bog, Sunken Mausoleum]
Match GoBackGoNEWait [Fethayl Bog, Boneyard]
Match GoBackGoWWait [Fethayl Bog, Caretaker's Hovel]
Match GoBackGoOWait [Fethayl Bog, Inside the Hovel]
Match GoBackGoNWWait [Fethayl Bog, Trail]
Match GoBackGoNWait [Fethayl Bog, Grove]
Match GoBackGoSEWait [Fethayl Bog, Bone Pile]
Match GoBackGoNWait [Fethayl Bog, Cypress Grove]
Match GoBackGoNWWait [Fethayl Bog, Hillock]
Match GoBackGoNWait [Fethayl Bog, Pools]
Match GoBackGoNWWait [Fethayl Bog, Ivory Pillar]
Match GoBackGoDWait [Fethayl Bog, Lone Grave]
Match GoBackGoSWWait [Fethayl Bog, Corroded Statue]
Match GoBackGoWWait [Fethayl Bog, Spider's Nest]
Match GoBackGoSWWait [Fethayl Bog, Dead End]
Match GoBackGoWWait [Fethayl Bog, Meadowland]
Match GoBackGoUWait [Fethayl Bog, Underground Crypt]
Match GoBackFethaylBog [Fethayl Bog]
Match GenericStandup You don't seem to be able to move to do that.
Match GenericStandup You can't do that while laying down.
Match GenericStandup You must be standing to do that.
Match GenericStandup You are still stunned.
Match ComeBackFromHuntP ...wait
Matchwait

GoBackFethaylBog:
Match GoBackGONW Obvious paths: east, west, northwest, southwest
Match GOBackGoW Obvious paths: south, east, west, southeast
Match GoBackGoNW Obvious paths: east, northwest, southeast
Match GoBackGoNW Obvious paths: north, east, northwest, southwest
Match GoBackGONW Obvious paths: north, east, northwest
Match GoBackGOW Obvious paths: west, northeast, southeast
Match GoBackGOW Obvious paths: west, southeast
Match GoBackGOE Obvious paths: south, east
Match GoBackGOS Obvious paths: south
Match GoBackGOW Obvious paths: west
Matchwait

GoBackGoNWait:
waitfor Obvious
GoBackGoN:
put north
goto ComeBackFromHunt
GoBackGoSWait:
waitfor Obvious
GoBackGoS:
put south
goto ComeBackFromHunt
GoBackGoEWait:
waitfor Obvious
GoBackGoE:
put east
goto ComeBackFromHunt
GoBackGoWWait:
waitfor Obvious
GoBackGoW:
put west
goto ComeBackFromHunt
GoBackGoNEWait:
waitfor Obvious
GoBackGoNE:
put northeast
goto ComeBackFromHunt
GoBackGoNWWait:
waitfor Obvious
GoBackGoNW:
put northwest
goto ComeBackFromHunt
GoBackGoSEWait:
waitfor Obvious
GoBackGoSE:
put southeast
goto ComeBackFromHunt
GoBackGoSWWait:
waitfor Obvious
GoBackGoSW:
put southwest
goto ComeBackFromHunt
GoBackGoDWait:
waitfor Obvious
GoBackGoD:
put down
goto ComeBackFromHunt
GoBackGoUWait:
waitfor Obvious
GoBackGoU:
put up
goto ComeBackFromHunt
GoBackGoOWait:
waitfor Obvious
GoBackGoO:
put out
goto ComeBackFromHunt
GoBackGoMudWait:
waitfor Obvious
GoBackGoMud:
put Go Mud
goto ComeBackFromHunt

GoBackToFrom:
Goto MoveRoomToFrom134



[Edited on 8/4/2004 by Deathravin]