Alaskar2006-03-04 13:52:17
well, I want to start scripting in Nexus (even if it is primitive, etc.) but I don't really understand how the #IF statements work.....I want a script to, after I kill something, to get it when I regain balance. I have an alias (GETIT) for GET &tar, and I want the script to wait until I have balance and then GETIT.
Unknown2006-03-04 14:07:57
Have a trigger that matches: "You have recovered balance on all limbs." and executes: GETIT, or whatever command you want to execute once you've recovered balance.
Alaskar2006-03-04 14:53:29
I thought of that, but I have to recover balance on both arms, and it doesn't just say "You have recovered balance on all limbs."
Unknown2006-03-04 16:11:55
Hmm, I thought it did. Oh well, you can match "{<}You have recovered balance," although that is a bit inefficient: it would try to pick things up each time you recovered balance on an arm. But it works.
Alaskar2006-03-04 17:35:06
If I had wanted it to attempt to pick it up after every "You have regains balance..." statement, I would make a simple trigger like that, but I don't want that. I want a trigger to check if I have balance, then get it if I do.
Alaskar2006-03-05 00:24:37
Could someone explain the #if statements? In Neverwinter Nightes, a PC game with an additional program to make you own areas, the conditionals used something like If blahblahblah = true {do this}. Is it the same here? would I have a conditional for #IF BALANCE = TRUE {getit} ?
Shiri2006-03-05 01:57:07
You'd have a conditional for
#if $balance = true {getit}
And then a trigger for "You have recovered balance on all limbs." to do
#set balance true
That's all I can help with, since
#if $balance = true {getit}
And then a trigger for "You have recovered balance on all limbs." to do
#set balance true
That's all I can help with, since
QUOTE(You)
If I had wanted it to attempt to pick it up after every "You have regains balance..." statement, I would make a simple trigger like that, but I don't want that. I want a trigger to check if I have balance, then get it if I do.
this is contradictory so I can't tell if I've solved your problem or not.Alaskar2006-03-05 03:11:05
hmm...ok, I have, for when I regain balance
#ECHO BALANCE BACK, GO GO GO!
#SET balance true
for when I slay a gnome
#if balance = true {getit}
and what I'm getting when I slay a gnome
Right after the line "you have slain a gnome" I get a message telling me I must regain balance.
#ECHO BALANCE BACK, GO GO GO!
#SET balance true
for when I slay a gnome
#if balance = true {getit}
and what I'm getting when I slay a gnome
Right after the line "you have slain a gnome" I get a message telling me I must regain balance.
Vix2006-03-05 03:13:10
Well, first off, does Nexus recogize spaces in echoes? I always use little hypens between words just to be safe.
You probably have to trigger your attack as setting balance untrue? And then you have to do some fancy coding with the balance message to get target. Hrm.
You probably have to trigger your attack as setting balance untrue? And then you have to do some fancy coding with the balance message to get target. Hrm.
Alaskar2006-03-05 03:41:00
well, I thought the same thing, so, instead of writing a new attack thingy, i just went to the variable for balance and set it to false. And that above is what I got. Ok, I'm trying these on my Aquamancer character and this is what I get...
Trega closes his eyes and bows his head.
674h, 792m, 773e, 0p, 2270en, 3260w ex-st tar gnome
Target tar = gnome.
674h, 792m, 773e, 0p, 2270en, 3260w ex-bla
You make a fist and punch towards a gnome, releasing a blast of pure elemental
energy that slams into him, searing his flesh.
With a final spasm, a gnome dies, collapsing into a mound of charred and
smoking flesh.
You have slain a gnome.
674h, 712m, 773e, 0p, 2255en, 3235w x-
You must regain equilibrium first.
674h, 712m, 773e, 0p, 2255en, 3235w x-
You have recovered equilibrium.
674h, 712m, 773e, 0p, 2265en, 3241w ex-
EQ. BACK, MENTAL STABILITY GOOD!
EDIT: If you're wondering why I have two seperate accounts, it's because while I've always wanted to try a weapons based class, the magic classes always call me back, and I couldn't make up my mind.
QUOTE
Trega closes his eyes and bows his head.
674h, 792m, 773e, 0p, 2270en, 3260w ex-st tar gnome
Target tar = gnome.
674h, 792m, 773e, 0p, 2270en, 3260w ex-bla
You make a fist and punch towards a gnome, releasing a blast of pure elemental
energy that slams into him, searing his flesh.
With a final spasm, a gnome dies, collapsing into a mound of charred and
smoking flesh.
You have slain a gnome.
674h, 712m, 773e, 0p, 2255en, 3235w x-
You must regain equilibrium first.
674h, 712m, 773e, 0p, 2255en, 3235w x-
You have recovered equilibrium.
674h, 712m, 773e, 0p, 2265en, 3241w ex-
EQ. BACK, MENTAL STABILITY GOOD!
EDIT: If you're wondering why I have two seperate accounts, it's because while I've always wanted to try a weapons based class, the magic classes always call me back, and I couldn't make up my mind.
Vix2006-03-05 03:45:24
Nah, everyone has alts. It's fine as long as they don't do anything with each other or help each other.
Now, if you really want to get the corpse, just get an Acquisitio enchantment (ask for a Cosmic enchanter) and you'll pick up corpses as soon as you kill them.
Now, if you really want to get the corpse, just get an Acquisitio enchantment (ask for a Cosmic enchanter) and you'll pick up corpses as soon as you kill them.
Alaskar2006-03-05 03:49:40
Just like Achaea! 'cept it was free in Achaea. I think this will be better than Achaea, because of the lack of 1337 and pwnt players, and the fewer players. And classes and races seem more balanced, with the exception of arti-whores . Of course. I guess I'll just get one of those enchantments then, but I really want to get the hang of #if statements and maybe make some sort of system. In achaea I had a system. Had a trigger for every affliction, it was not a great system, but it did the job.
Mirk2006-03-05 05:23:14
well, something you could do is just put in a #wait (time) command after your trigger for killing the gnome, where the time is the time it takes to regain balance. Another thing you could do is use the prompt as a trigger to determine if you have balance (just note, you'd have to set health, mana, etc. as a variable, and have it set so that it can determine if you have balance, equilibrium, etc)
so what you could do is have it get the thing that tells you if you have balance and equilibrium (ex) and make sure it's set so that it can tell what you have, for example
{d:chealth}h, {d:cmana}m, {d:cego}e, {d:cpower}p, {d:cendurance}en, {d:cwill}w ex-
that would be the trigger text
this is the code
please note that you will have to take in account for anything the prompt could do, and make triggers for all of them (right arm balance, blind, deafness, dreamform/ghost, etc...)
then you could have a trigger for the death message of the gnome, which would execute an alias, which we'll call dgnome
these should work, although, who knows
#edit: note that using all of the prompt (health, mana, etc) gets captured, maybe you could do something with that as well
#edit2: had problems with code, so I fixed it...
so what you could do is have it get the thing that tells you if you have balance and equilibrium (ex) and make sure it's set so that it can tell what you have, for example
{d:chealth}h, {d:cmana}m, {d:cego}e, {d:cpower}p, {d:cendurance}en, {d:cwill}w ex-
that would be the trigger text
this is the code
CODE
#set cequil = 1
#set cbal = 1
#set blind = 0
#set deaf = 0}
#set cbal = 1
#set blind = 0
#set deaf = 0}
please note that you will have to take in account for anything the prompt could do, and make triggers for all of them (right arm balance, blind, deafness, dreamform/ghost, etc...)
then you could have a trigger for the death message of the gnome, which would execute an alias, which we'll call dgnome
CODE
#if $cequil = 0 {#wait 500
        dgnome} elseif $cbal = 0 {#wait 500
        dgnome} else {get gnome}
        dgnome} elseif $cbal = 0 {#wait 500
        dgnome} else {get gnome}
these should work, although, who knows
#edit: note that using all of the prompt (health, mana, etc) gets captured, maybe you could do something with that as well
#edit2: had problems with code, so I fixed it...