|
talonfreak2003 Beginner
Joined: 02 Dec 2004 Posts: 27 Location: Kansas... whippie!
|
Posted: Mon Oct 24, 2005 3:42 pm
Talonfreak is the newb of scripts! |
Ok, so I wanted to make a script today, unsure how to do it sofar. So I'll start with how I'd like it to run, maybe you guys can give me pointers of how to make it ?
Alright, I need to make it select which area I'm going to use ... so for that I have:
{#ALIAS Script} {#PROMPT area "Which area am I going to?";#IF ("@area"="ToE") {ToE_script}}
For the next part, I need to use alias's. If possible. For example
{#VAR ToE_Script} {wake;s;e;e;s;s;w;w;n;n;n;n;n;n;n;n;n;n;open west;w;u;n;n;n;kill demon;unlock north;open north;n;close south;lock south;k aco;k aco;k aco;e;k aco;k aco;k aco;w;w;k aco;k aco;k aco;e;u;........................}
Alright ... so here's where i'm stumped. How do I make it wait untill after each mob is dead before going onto next mob. Should I use %additem %delnitem ? Because I want it to, when it's done, exit out of area, go and regen for X amt of time (using #WAIT) then return
Any ideas ? |
|
|
|
Insomniac Wanderer
Joined: 25 Mar 2004 Posts: 78 Location: United Kingdom
|
|
_________________
No-one ever gets flamed for posting too much information. Conform to the PPP (Preferred Posting Protocol) and give as much information as possible, including MUD output where needed.
Last edited by Insomniac on Mon Oct 24, 2005 4:19 pm; edited 1 time in total |
|
|
|
talonfreak2003 Beginner
Joined: 02 Dec 2004 Posts: 27 Location: Kansas... whippie!
|
Posted: Mon Oct 24, 2005 3:59 pm |
Not exactly what I was looking for. The reason I say that is because the mobs in this area move. And are aggy (They help eachother).
|
|
|
|
Tech GURU
Joined: 18 Oct 2000 Posts: 2733 Location: Atlanta, USA
|
Posted: Mon Oct 24, 2005 4:19 pm |
If you use slow walk to move around the map then you can use the #PAUSE command to wait until the mob is dead.
Code: |
#TRIGGER {An aco is here} {#PAUSE;kill aco}
#COND {Aco dies a horrible death} {#STEP}
|
|
|
_________________ Asati di tempari! |
|
|
|
Insomniac Wanderer
Joined: 25 Mar 2004 Posts: 78 Location: United Kingdom
|
Posted: Mon Oct 24, 2005 4:20 pm |
It's a good start nontheless, as I look at it, it does everything that your original post asked for.
All you have to do is add a trigger for attacking a mob that isn't there (ie. after it moves) and #STEP onto the next room, I use this exact same technique myself.
Not sure what to do about 'aggy' as i have no experience of it. |
|
_________________
No-one ever gets flamed for posting too much information. Conform to the PPP (Preferred Posting Protocol) and give as much information as possible, including MUD output where needed. |
|
|
|
talonfreak2003 Beginner
Joined: 02 Dec 2004 Posts: 27 Location: Kansas... whippie!
|
Posted: Mon Oct 24, 2005 5:28 pm |
Alright, maybe I should be abit more specific. I want each area to have certain mobnames that are in it. If it's going to be a trigger/alias combo, I need it to pick out the names for that area. So let's say .... ToE has mobs of guard and acolite, while crystal bay has mobs of Crabs/Large fishermen. By typing which area I was in, it would set which mobs I was going after in a list, and the path would only stop if there were mobs that matched the pattern of the list (But the list would be changed via alias)
|
|
_________________ Yes, I'm a programing newb, but I can fix a car faster than you can spin your head. |
|
|
|
talonfreak2003 Beginner
Joined: 02 Dec 2004 Posts: 27 Location: Kansas... whippie!
|
Posted: Mon Oct 24, 2005 7:34 pm |
Maybe should I try .....
#ALIAS ToE_Script {#ADDITEM Moblist Acolyte;%additem moblist demon guard;<directions><spellup><mobkilling directions>;recall;<more directions>;#WAIT 500000;ToE_Script)}
Quote: |
Entrance to the Temple of Evil
[Exits: east south west ]
(White Aura) A demonic looking guard stands here.
(White Aura) A demonic looking guard stands here.
|
Now for the very next room
Quote: |
Main Hall
[Exits: north east west up ]
A young priest in training walks by you.
A young priest in training walks by you.
A young priest in training walks by you.
A young priest in training walks by you.
|
Now for Crystal Bay
Quote: |
A Sandy Shoreline
[Exits: north south southwest southeast ]
(Glowing) A pitch-black long sword burns brightly here.
A large red crab sits here.
A large red crab sits here.
|
Next room
Quote: |
A shoreline
[Exits: west northwest southeast ]
A large fisherman stands here fishing.
A large fisherman stands here fishing.
A large fisherman stands here fishing.
|
Would putting ToE_script at the end of the alias cause a "Infinate Loop" ?
How can I make it reconize only the mobs I want it to recognize ? |
|
|
|
Insomniac Wanderer
Joined: 25 Mar 2004 Posts: 78 Location: United Kingdom
|
Posted: Tue Oct 25, 2005 12:28 am |
What does a room look like that has no mob in it?
|
|
_________________
No-one ever gets flamed for posting too much information. Conform to the PPP (Preferred Posting Protocol) and give as much information as possible, including MUD output where needed. |
|
|
|
|
|