Nexus Help

by Unknown

Back to Mechanic's Corner.

Unknown2011-07-27 03:07:23
Okay. So I'm trying to write a system for Astrology when I stargaze to help me know, without having to constantly refer back to the help files, which is which and which is good/bad/eh okay.

For instance,

STARGAZE VOLCANO

Sun in Spider is quincunx Volcano
Moon in Antlers is semisextile Volcano
Eroee in Skull is square Volcano
Sidiak in Lion is trine Volcano
Papaxi in Glacier is semisextile Volcano
Aapek in Dolphin is square Volcano

I want my nexus client to Echo the following, refering to each line seperately from the first line to the last.

Line 1: (if sign is conjuction/semisextile/sextile/square/trine/quincunx/opposite then #echo

Trine= #echo TRINE NameOfSign--> FANTASTIC TO USE
Conjuction= #echo CONJUCTION NameOfSign--> GREAT TO USE
Sextile= #echo SEXTILE NameOfSign--> GOOD TO USE
Semisextile= #echo SEMISEXTILE NameOfSign--> ITS OKAY TO USE
Quincunx= #echo QUINCUNX NameOfSign--> MINOR NEGATIVE
Square= #echo SQUARE NameOfSign--> MODERATE NEGATIVE
Opposite= #echo OPPOSITE NameOfSign--> DO NOT USE!!

I know the #if command could be used here, but I'm not sure how to set it or where to set it.

I think it would be a trigger, if I'm correct.

So then it would be

#if volcano= trine
#echo TRINE->> MAJOR BENEFIT TO TARGET/CASTER
elseif volcano=Conjuction
#echo CONJUCTION NameOfSign--> GREAT BENEFIT TO TARGET/CASTER
elseif volcano= Sextile
#echo SEXTILE--> MODERATE BENEFIT TO TARGET/CASTER
elseif volcano=Semisextile
#echo SEMISEXTILE NameOfSign--> MINOR BENEFIT TO TARGET/CASTER
elseif volcano= quincunx
#echo QUINCUNX NameOfSign--> MINOR NEGATIVE TO TARGET/CASTER
elseif volcano= square
#echo SQUARE NameOfSign--> MODERATE NEGATIVE TO TARGET/CASTER
elseif volcano=Opposite
#echo OPPOSITE NameOfSign--> DO NOT USE UNLESS TO CAUSE DAMAGE
elseif
endif
end

Or at least, that's how I'm understanding it. But where do I put that? And how would I set the nexus client to refer back to the word before volcano? I think it has something to do with the {w} variable or command or whatever that thing is called.

Yeah. I could use some help if someone is willing to do so.
Unknown2011-07-27 13:45:12
*twiddles her thumbs against the hordes of crickets in the background*
Qistrel2011-07-27 16:37:02
I'm not quite understanding this because I don't understand astrology well enough. I'm not great with programming, but I do use Nexus and have written my own influence system. I think you would need a trigger for each of the planets?

I think it the triggerlines would be like this:

Sun in {w:sunsign} is {w:suntype} {w}

and the code:

#if $suntype = trine
#echo TRINE $sunsign --> MAJOR BENEFIT TO TARGET/CASTER
elseif $suntype = conjuction
#echo CONJUCTION $sunsign --> GREAT BENEFIT TO TARGET/CASTER
elseif $suntype = sextile
#echo SEXTILE--> MODERATE BENEFIT TO TARGET/CASTER
elseif $suntype = semisextile
#echo SEMISEXTILE $sunsign --> MINOR BENEFIT TO TARGET/CASTER
elseif $suntype = quincunx
#echo QUINCUNX $sunsign --> MINOR NEGATIVE TO TARGET/CASTER
elseif $suntype = square
#echo SQUARE $sunsign --> MODERATE NEGATIVE TO TARGET/CASTER
elseif $suntype = opposite
#echo OPPOSITE $sunsign --> DO NOT USE UNLESS TO CAUSE DAMAGE
else
endif
Unknown2011-07-28 00:11:19
Thank you so much! Now my next question would be:

1. Is that a variable? Where would that be dropped? A trigger, right? And then where would I put the other information? And how would I place that information?
Qistrel2011-07-28 12:06:05
EDIT: I removed thi because it was wrong and don't want to confuse you more. Hehe. See the next post please.
Qistrel2011-07-28 13:23:49
Ok, I made a Moondancer and worked out how to do it more simply than above. This should catch (almost) everything all in one trigger. And you don't need to make the variables, it should automatically create them for you

Trigger (top box)
CODE
{w} in {w:astrosign} is {w:astroplace} {w}


Script (bottom box)
CODE
#if $astroplace = trine {
#echo TRINE $astrosign --> MAJOR BENEFIT TO TARGET/CASTER
} elsif $astroplace = conjuct {
#echo CONJUCTION $astrosign --> GREAT BENEFIT TO TARGET/CASTER
} elsif $astroplace = sextile {
#echo SEXTILE $astrosign --> MODERATE BENEFIT TO TARGET/CASTER
} elsif $astroplace = semisextile {
#echo SEMISEXTILE $astrosign --> MINOR BENEFIT TO TARGET/CASTER
} elsif $astroplace = quincunx {
#echo QUINCUNX $astrosign --> MINOR NEGATIVE TO TARGET/CASTER
} elsif $astroplace = square {
#echo SQUARE $astrosign --> MODERATE NEGATIVE TO TARGET/CASTER
} elsif $astroplace = opposite {
#echo OPPOSITE $astrosign --> DO NOT USE UNLESS TO CAUSE DAMAGE
} else {
}


I can't get the thing to work for two of the signs though, Twin Crustals and Burning Censer, because they are two words. So you will need a second trigger like this:

Trigger (top box)
CODE
{w} in {w} {w:astrosign} is {w:astroplace} {w}


Script (bottom box)
Exactly the same as above.

This will catch the two-word signs, and just call them 'Crystals' and 'Censer' in the echo.

Let me know if this works for you.
Unknown2011-07-29 01:22:26
Thank you so much for putting that together for me.

However, I'm getting:

line 3: unexpected word "elseif" )want Command separator or End-of-Line

According to the Nexus Help Page, this should be working.
Unknown2011-07-29 01:58:00
QUOTE (Marina_Whytetower @ Jul 28 2011, 09:22 PM) <{POST_SNAPBACK}>
Thank you so much for putting that together for me.

However, I'm getting:

line 3: unexpected word "elseif" )want Command separator or End-of-Line

According to the Nexus Help Page, this should be working.


It should be elsif, not elseif
Qistrel2011-07-29 07:05:21
Yeah, no idea why they made it not have an 'e'.
Unknown2011-07-29 23:27:57
QUOTE (Starfire Q @ Jul 29 2011, 03:05 AM) <{POST_SNAPBACK}>
Yeah, no idea why they made it not have an 'e'.


I'm still getting the error. I've set it up just as you put it, but its still saying that the elseif in the 3rd line should have a command separator or End-of-Line. But when I run it as is with the } at the end of the 3rd line I get the stuff you see in the pics below.


And after the prompt executes, it just keeps going on and on, causing the system to get the errors "Excuse me?" "Try that again." etc.
Razenth2011-07-30 00:17:56
QUOTE (Starfire Q @ Jul 29 2011, 12:05 AM) <{POST_SNAPBACK}>
Yeah, no idea why they made it not have an 'e'.


Sounds Perl-ish.

Oh, and ELSIF. You're still using ELSEIF.
Unknown2011-07-30 02:04:41
I replaced the elseif with elsif, but for some reason, its doing the same thing as before.
Qistrel2011-07-30 10:18:49
You said you put a } at the end of the third line. Did you remove the } after you changed the ELSEIFs to ELSIF? If its still there, it will give you some errors like the stuff you described.

In fact, I went and put the } at the end of the third line on my testing char, and it gave me exactly what you described.

So just take that } off the end of the third line.