|
tortokai Newbie
Joined: 28 Feb 2015 Posts: 1
|
Posted: Sat Feb 28, 2015 2:18 pm
trigger/variable with IF help |
I'm trying to make the following trigger, basicly a huntbot
sense mobname finds a mob, that's covered, once it lands one of these four strings, is where I need help.
That mob does not exist, cannot be sensed, or there is no path to them.
You concentrate and sense their ki
You receive your share of experience
You're already in the same room!!
I've tried -
#if (@sensemob=1) {moon giant}
#if (@sensemob=2) {moon thunder}
#if (@sensemob=3) {moon cloud}
#if (@sensemob=4) {moon storm}
#if (@sensemob=5) {moon lightning}
#if (@sensemob=6) {@sensemob=1;sense giant}
I've tried it like this - #if (@sensemob=1 {moon giant})
and #if @sensemob=1 {moon giant}
Error i recieve is
You're already in the same room!!
ERROR: Trigger "You're already in the same room!!" fired but did not compile
when the 'mob does not exist' line triggers, it does sensemob+1 and runs the 1-6 lines again, so I just need the right syntax for the #if line, I believe |
|
|
|
shalimar GURU
Joined: 04 Aug 2002 Posts: 4715 Location: Pensacola, FL, USA
|
Posted: Sat Feb 28, 2015 10:25 pm |
I see nothing wrong with your block of if statements.
The ones after are bad syntax.
Perhaps if you included the triggers as well we could determine why its not compiling. |
|
_________________ Discord: Shalimarwildcat |
|
|
|
Daern Sorcerer
Joined: 15 Apr 2011 Posts: 809
|
Posted: Sun Mar 01, 2015 2:16 pm |
Code: |
#if (@sensemob=6) {@sensemob=1;sense giant} |
should be
Code: |
#if (@sensemob=6) {sensemob=1;sense giant} |
@ is used for referencing variables, not for setting them. |
|
|
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|