About Us
Products
Purchase
Downloads
Support
Forums
Contact Us
Site
 Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
vertigo5012
Newbie


Joined: 19 May 2005
Posts: 3

PostPosted: Thu May 19, 2005 12:04 am   

Godwars Mud Script
 
Ok, what I'm looking for is a detailed exping script for a godwars mud, I can modify for mud spcific stuff. Or you can contact me and I will give you the specifics. What I want it to do is travel to the mobs, and activate the exping power, and when the area is cleared, switch variables to the new mobs. I am trying to teach myself to make good scripts, but i can't seem to get the understanding behind making a if command work right:P


Vertigo
Reply with quote
DeathDealer
Adept


Joined: 20 Jul 2004
Posts: 268

PostPosted: Thu May 19, 2005 12:26 pm   
 
do a search on here for combat bots.
Without alot more input from you such as mob names, ways of you to attack etc, mobs death msgs, exit msgs and lots more stuff, it's not easy to just write up a combat bot.
Check the bots that are already here and see what tickles your fancy and modify it to your liking.
_________________
Reply with quote
vertigo5012
Newbie


Joined: 19 May 2005
Posts: 3

PostPosted: Thu May 19, 2005 11:17 pm   
 
Ok firstly I apologize for seeming a idiot. and yes I realize what a pain it is to create a script for exping on a mud you dont play. So I will explain my problems as I go.


Exp Script

#ALIAS exp {say %1;explodebolt %1}
#ALIAS etravel {travel %1}
#TRIGGER {They aren't here} {etravel @mob;point @mob}
#TRIGGER {You point at * accusingly} {exp;point @mob}

I set the variable manually, not sure if thats the only way to do it,
this simple script is working fine with one exception. When the
mobiles in the areas I work run out, it spams " noone by that name here" and just keeps spamming. I want it to change variables.

#var mob kahahl
#var mob gundam

These are two areas I work in, I know a if command might work
but can't seem to figure out how to make it work.

#if (@mob = gundam) {#var mob kahahl} {#var mob gundam}

I want it to evaluate the @mob variable, and if its kahahl, switch to gundam, but if its gundam switch to kahahl.

Thanks ahead of time for your effort.

Vertigo
Reply with quote
vertigo5012
Newbie


Joined: 19 May 2005
Posts: 3

PostPosted: Fri May 20, 2005 10:54 am   
 
Ok, the above issue has been fixed, with a slight syntax change.

#IF {@mob = gundam} {#VA mob kahahl} {#VA mob gundam}


My next issue is this, after the trigger phrase "Your beast is already controlling you."
I want it to abort the present trigger, and recall. Than wait till the Triggering phrase
"You feel calm and less agitated." And than Issue the command point @mob.

Vertigo
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
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

© 2009 Zugg Software. Hosted by Wolfpaw.net