|
Bpfft Newbie
Joined: 11 Dec 2002 Posts: 3
|
Posted: Wed Dec 18, 2002 11:59 am
Trigger |
Okay I'm trying to make a trigger, so that I can walk in to a room, attack every mob in the room in succession, then walk to the next room, and repeat.
When I walk in to a room it looks like this:
Room name A
[Exits: north east south west]
Mob A long desc
Mob B long desc
Mob A long desc
Mob C long desc
when a mob leaves I get:
Mob short desc leaves north.
When a mob enters the room I get:
Mob short desc has arrived.
When a mob dies:
Mob short desc is DEAD!!
So what I need to do is attack each mob, when it dies, attack the next mob, then when there are no more mobs in the room, to go to the next room in the list.
If there is anything relevant I failed to include, please let me know and I'll see if I can find it. |
|
|
|
Killfile Novice
Joined: 30 Sep 2002 Posts: 32 Location: USA
|
Posted: Wed Dec 18, 2002 3:25 pm |
The real hard part of this trigger is getting the names the mobs respond to from the long names. For example
A horrid ball of slime rests here, oozing in its own muck.
What does this respond to? You and I would guess slime, but a computer is fairly dumb. You may wish to build a database of long and short names as well as keywords to do this. If anyone has a better idea I'm interested to hear it though, this problem has vexed me in the past.
--Killfile |
|
|
|
Vijilante SubAdmin
Joined: 18 Nov 2001 Posts: 5182
|
Posted: Wed Dec 18, 2002 11:54 pm |
Some examples of actual dscriptions would help.
Once we have that we can build an entire system to convert long desc to short desc and single word target. |
|
|
|
|
|
|
You cannot post new topics in this forum You cannot 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
|
|