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
doomfyre
Apprentice


Joined: 03 Jan 2002
Posts: 152
Location: USA

PostPosted: Mon Feb 11, 2002 4:35 am   

Another of my wacky trigger ideas
 
I have a set of auction triggers set up and id like to add something to prompt me for a new item and starting price for the next item. Like a window or something to pop up and say "Auction another item?" and if yes, "Item?_________" once thats entered, "Price?_____"

Auctions dont run 24 hours a day. So i have trigger set to fire off the initial auction.

Here's what i have sofar:

#class auction
#var AucItem
#var AucPrice


I have a few triggers that handle things ok for me now:

#trigger {Auction~:*sold} {#T+ auction; #IF @AucItem {auction @AucItem @AucPrice} {#T- auction}}

This one is intended to fire when someone else sells something successfully. There is no "cue" for the auction system. It's pretty much survival of the quickest.

Do i have that IF right? what im intending it to do is
#IF theres and item in the AucItem variable {do this action}if not{do this action}

#TR {No bids received for *} {#T+ auction; #IF @AucItem {auction @AucItem @AucPrice} {#T- auction}}

Above is another possible outcome of the initial auction.

#TR {No bids received for * @AucItem} {this is where id like it to ask me for a new item}
but only if i was unsuccessful in selling an item that I was auctioning, not everytime it sees that message.

#TR {The auctioneer pays you} {I'd also like it to ask me here}

The following are the actual mud outputs for various situations:

Auction: A new item is being auctioned: a golden dragonscale torso at 0 gold.
Auction: a golden dragonscale torso sold to Soandso for 66,000.
Auction: No bids received for a fiery green emerald - removed from auction.
The auctioneer pays you 180,000 gold, charging an auction fee of 20,000.

Right now im just filling the AucItem and AucPrice items manually of course, which isnt that big of a deal, i just thought it'd be neat to be prompted.

Thanks for any help.
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5187

PostPosted: Mon Feb 11, 2002 5:09 am   
 
Make your self an alias containing this
AucItem=%prompt("", "Auction Item?")
#IF (@AucItem) {AucPrice=%prompt("", "At what price?")
#IF (!@AucPrice) {AucItem=""}}
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