help debugging nexus influencer

by Unknown

Back to Mechanic's Corner.

Unknown2011-04-02 18:14:54
What I'm trying to do is have a system where I keep influencing using an Alias, and the program automatically adjusts the level of the influncer, such as begging to supplication. Can anyone help me debug this?

CODE
#if $level = 1 {influence $tar with begging}{
#set level 2
}
elsif $level = 2 {influence $tar with supplication}{
#set level 1
}


any help is appreciated.
Veyrzhul2011-04-02 18:29:42
QUOTE (Lorwyn @ Apr 2 2011, 06:14 PM) <{POST_SNAPBACK}>
What I'm trying to do is have a system where I keep influencing using an Alias, and the program automatically adjusts the level of the influncer, such as begging to supplication. Can anyone help me debug this?

CODE
#if $level = 1 {influence $tar with begging}{
#set level 2
}
elsif $level = 2 {influence $tar with supplication}{
#set level 1
}


any help is appreciated.


My nexus days have been gone for a while, but I can check my old script later. At first sight, I think it should look like this:

#if $level = 1 {
influence $tar with begging
#set level 2
} elsif $level = 2 {
influence $tar with supplication
#set level 1
}

(all the commands go into one set of brackets)