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
Shujinko07
Beginner


Joined: 31 Mar 2008
Posts: 10

PostPosted: Wed Oct 01, 2008 5:37 am   

Target in define status bar?
 
Well, I believe I've managed to figure out how to make a simple targetting thing by using alias, but how can I have that aliased target appear in the define status bar to display what I have targeted?

My alias is set to be x equalling target=%1

Just need that to be shown in the define status bar
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Wed Oct 01, 2008 9:38 am   
 
#STATUS {Target: @target} {} {TargetDisplay}

You only have to define it once and it will automatically update after that.
_________________
The only good questions are the ones we have never answered before.
Search the Forums
Reply with quote
Shujinko07
Beginner


Joined: 31 Mar 2008
Posts: 10

PostPosted: Thu Oct 02, 2008 10:10 pm   Second question..
 
thank you for that and it helped a lot.

Now my second problem is per se:

There's a card that I want to fling, but it requires you to charge it up, and once charged it can be used. BUT there are other types of cards as well, and the message is the same for any card you use once it is charged up before flinging. Like:

Priestess card set up:
outd pirestess
charge priestess
Charged up messages for ANY card=
Rubbing your fingers briskly on the Tarot card, you quickly impart to it the
necessary energy to use it.

The card begins to glow with a mystic energy.

Then you can fling whatever card you wish to fling that you charged up. Must a trigger be setup somehow?
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Thu Oct 02, 2008 11:36 pm   
 
It would depend on the command you have to send. If "fling card" will work then you don't need anything special. If you can have 5 different cards charged, and don't have to fling them immediately; then I would expect you would need some other entire mechanism to determine the fling command you wanted at that time.

I could probably think of a few more cases, but the point is the same. What are the limitations of the mud? What exact commands will work?
_________________
The only good questions are the ones we have never answered before.
Search the Forums
Reply with quote
Shujinko07
Beginner


Joined: 31 Mar 2008
Posts: 10

PostPosted: Fri Oct 03, 2008 1:12 am   
 
The commands are

outd (card name)
charge (cardname)

The card begins to glow with a mystic energy. <-- The message letting you know the card is ready to be flung.

Fling (card) at ground/Target

Certain cards have to be flung at the ground, but the others are at a target. Like Priestess/aeon/hangedman/emperor are flung at a target.
Chariot/Despair are a few that are flung at the ground.
Reply with quote
ralgith
Sorcerer


Joined: 13 Jan 2006
Posts: 715

PostPosted: Fri Oct 03, 2008 4:04 am   
 
I guess I'm a little confused as to what exactly you'd like to trigger? Do you want to trigger the whole action from outd to fling, or do you want to manually issue outd and have it autofling that card once its charged?

If the latter this will do it:
Code:
#CLASS {Card Flinging}
#ALIAS outd {
   ~outd %1
   #VARIABLE CardToFling %1
   #VARIABLE FlingTarget %2
}
#TRIGGER {The card begins to glow with a mystic energy.} {fling @CardToFling @FlingTarget}
#VARIABLE CardToFling {}
#VARIABLE FLingTarget {}
#CLASS 0


Then you would issue outd with an extra argument compared to normal
Example, using mob named Fool:
outd priestess fool

Of course, use ground for the target when appropriate.

Now, if you wanted to automate the whole thing, we need a LOT more information. But some of the basics are:
** A database of targets and what cards should be thrown with what card target (that may sounds weird, but for example say you want it to automate throwing chariot when you fight a Goblin Templar then you would need card_target separate from actual target of the trigger)
** How you would like the automation to be started, normally some standardized text from the MUD as a trigger or via an alias.
** Any exceptions would need to be coded in as well
** Also any safety cases, like, oh crap! Someone is attacking me, I need to abort out of my current run and reassess!

So anyways, hope this helps.
_________________
CrossOver: Windows Compatibility on Mac and Linux CMUD Advocate
Reply with quote
Shujinko07
Beginner


Joined: 31 Mar 2008
Posts: 10

PostPosted: Fri Oct 03, 2008 5:35 am   
 
That code actually works, but I guess I left out the targetting thing. mine is set up so that x = target in which target=%1 .

Here's the copy/paste of what happened when I flung the priestess card at myself as the target

H:988 M:892 Ess:100% [eb]outd priestess

You shuffle 1 card with the image of the High Priestess out of your deck.
H:988 M:892 Ess:100% [eb]charge priestess

Rubbing your fingers briskly on the Tarot card, you quickly impart to it the
necessary energy to use it.
H:988 M:892 Ess:100% [eb]
The card begins to glow with a mystic energy.
H:988 M:892 Ess:100% [eb]fling priestess at me

Raising the High Priestess tarot over your head, parallel to the ground, you
release it. It instantly expands and moves downward, healing you as your body
passes through it.

This one is for cards that are flung at the ground. I'm using chariot as an example.

You shuffle 1 card with the image of the Chariot out of your deck.
H:988 M:361 Ess:100% [eb]charge chariot

Rubbing your fingers briskly on the Tarot card, you quickly impart to it the
necessary energy to use it.
H:988 M:361 Ess:100% [eb]
The card begins to glow with a mystic energy.
H:988 M:361 Ess:100% [eb]fling chariot at ground

You throw the Chariot tarot at the ground and immediately a flame-charred
chariot appears. Moments later, four demonic goats, black with red eyes, rise up
from the earth and slip themselves into the chariot's harness.

The cards that are flung at a target are: Emperor/priestess/magician/fool/empress/lovers/hierophant/hangedman/wheel/justice/star/aeon/lust/moon/death.
Cards that are flung at ground are:
Hermit/Tower/universe/despair/devil

So, hopefully those examples will help of what I need the glowing charge to trigger any of those cards I mentioned to be flung at the target as stated or at the ground as stated based on the cards that it is only allowed to be flung towards.
Reply with quote
ralgith
Sorcerer


Joined: 13 Jan 2006
Posts: 715

PostPosted: Fri Oct 03, 2008 5:00 pm   
 
then you could use this instead

Code:
#CLASS {Card Flinging}
#ALIAS outd {
   ~outd %1
   #VARIABLE CardToFling %1
}
#TRIGGER {The card begins to glow with a mystic energy.} {fling @CardToFling at @Target}
#VARIABLE CardToFling {}
#CLASS 0
_________________
CrossOver: Windows Compatibility on Mac and Linux CMUD Advocate
Reply with quote
Rappy
Wanderer


Joined: 15 Jul 2005
Posts: 96

PostPosted: Sat Oct 11, 2008 2:19 am   
 
Somehow ralgith left out the target in last example...

Code:
#CLASS {Card Flinging}
#ALIAS outd {
   ~outd %1
   #VARIABLE CardToFling %1
   #VARIABLE Target %-2
}
#TRIGGER {The card begins to glow with a mystic energy.} {fling @CardToFling at %if(@Target,@Target,ground)}
#VARIABLE CardToFling {}
#CLASS 0


Notice the trigger for the glowing card. This way you don't have to specify ground for ground targets, simply specify a target if you fling it at yourself or a mob.

-Rappy
_________________
Windows 11 Pro,
cMUD 3.34
Reply with quote
ralgith
Sorcerer


Joined: 13 Jan 2006
Posts: 715

PostPosted: Sat Oct 11, 2008 2:50 pm   
 
I left it out on purpose because he is already assigning it elsewhere :P
_________________
CrossOver: Windows Compatibility on Mac and Linux CMUD Advocate
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