|
daemoan.vermillious Apprentice
Joined: 28 Feb 2009 Posts: 135 Location: Chico, Ca
|
Posted: Sat Oct 24, 2009 5:08 am
Old Posting, New Problem... Z to C |
I Made This On Zmud A Long While Ago When I Was Smarter, I Tryied Adapting It To CMud Script and it keeps crashing the client.
See Posting For More Info:
http://forums.zuggsoft.com/forums/viewtopic.php?p=124409
Code: |
#CLASS {Identify}
#ALIAS Activate {#class identify 1}
#ALIAS Deactivate {#class identify 0}
#VAR Item {studded}
#VAR dropitem {1}
#TRIGGER {^Object '(%w)} {
#VAR Item %1
#VAR dropitem 1
#T+ ItemPrompt
TickID1
}
#TRIGGER {You are not carrying that.} {
#ti 1
TickID2
}
#TRIGGER {Affects {agility|constitution|dexterity|wisdom|intelligence|strength} by (%d)} {#if ((%1 >= 25) OR (%1 = 35)) {#VAR dropitem 0}}
#TRIGGER "ItemPrompt" {~<~[%d~]%s~[%dH%s%dM%s%dV~]~>} {
#if (@dropitem=1) {
drop rare
sac rare
} {put @Item bag}
#T- ItemPrompt
c id rare
} "" {disable}
#CLASS 0
|
Iam not Sure Whats Wrong But... Eh... Let It All Hang Out, That What I Always SAy! |
|
|
|
Tarken Aurelius Apprentice
Joined: 23 Oct 2008 Posts: 120 Location: Cincinnati, Ohio
|
Posted: Sat Oct 24, 2009 11:06 am |
Well, if something is going very wrongly, try testing out your triggers one-by-one in the order they're supposed to fire. Where they stop working, you find at least your first issue. And when you say crash, you mean full-blown fatal error or just undesirable input?
|
|
_________________ Tarken Aurelius, quality triggers since 2004! Trigger consulting since 2008! Content Developer at BatMUD (www.bat.org) |
|
|
|
GeneralStonewall Magician
Joined: 02 Feb 2004 Posts: 364 Location: USA
|
Posted: Sat Oct 24, 2009 7:50 pm |
Probably not the problem, but the proper syntax for evaluation is '@dropitem == 1', '%1 == 35', ect.
|
|
|
|
Tech GURU
Joined: 18 Oct 2000 Posts: 2733 Location: Atlanta, USA
|
Posted: Sun Oct 25, 2009 12:24 pm |
GeneralStonewall the way you have your syntax is preferred but not required.
You didn't really say what's the issue but the most obvious thing to me is that the activate and deactivate aliases are within the Identify folder. As a result the first time you deactivate it, the alias to activate will not be available. At the very least, the activate alias should be outside of the Identify folder. |
|
_________________ Asati di tempari! |
|
|
|
|
|