|
kazu Beginner
Joined: 16 Sep 2008 Posts: 17
|
Posted: Thu Sep 18, 2008 3:13 pm
trigger help |
Ok I'm making a trigger and it's telling me that the variable is empty when I know it's not, anyone have any idea why this is happening?
You feel incredibly tired, and fall asleep immediately.
#addkey afflicts @asleep 1
#addkey afflicts @prone 1
#if (@asleep = 1) {wake}
There's the trigger line |
|
|
|
Progonoi Magician
Joined: 28 Jan 2007 Posts: 430
|
Posted: Thu Sep 18, 2008 3:31 pm |
Code: |
#addkey afflicts asleep 1
#addkey afflicts prone 1
|
You can't use @ with #addkey like that.
Code: |
#if (%db(@afflicts,asleep)=1) {wake}
|
as Asleep is a key in Afflicts, that's the way to get its value out and make the #if. |
|
_________________ The Proud new owner of CMud.
--------------------------------
Intel Core i5-650 3,2GHz
4 DD3 RAM
GTX 460 768MB
Win 7 Home Premium 64x
-------------------------------- |
|
|
|
kazu Beginner
Joined: 16 Sep 2008 Posts: 17
|
Posted: Thu Sep 18, 2008 3:33 pm |
Ahh, thank you very much!
|
|
|
|
|
|