Greetings fellow builders/scripters.
I am working with Gicker (thanks bro!) on his d20 Star Wars based MUD and I am trying out some higher level scripting.
So my problem is that the script fires off on the default case due to not seeing the ovnum located in the room, no matter how many of them are there... and the elseif and else cases never get seen.
This is a room enter 100 script.
script below:
Code:
if ovnumroom(21002)!=0
wait 5
%echo% With a howling roar, an ancient looking YT-700 lands and its cargo ramp drops down.
wait 20
%echo% Suddenly... a repulsor sled with some sort of large livestock container comes quickly sliding out. Immediately afterwards, no sooner than the sled is off the ramp, the ship immediately takes back off again with its engines screaming in protest. The ship spins in place on its altitude thrusters, reversing its attitude, while the cargo ramp starts to close...
wait 15
%echo% In the time it takes for a human to blink, the YT-700 is gone... Leaving behind only the container on its sled sitting smack-dab in the middle of the landing pad admist swirling orange haze. That pilot had to have been combat trained to be able to pull that drop, dump, and burn so well in such little time.
%load% obj 21002
elseif ovnumroom(21002)>0
wait 5
%echo% Another freighter begins their approach to landing pad in an attempt to land. Upon seeing the cargo
container sitting in the center of the pad, the pilot adjusts their course to land at another unoccupied landing pad.
else
%echo% Something seems off here.
end
I could use some help in figuring out what I am doing wrong. I have tried different expressions and values... I have tried !=, ==, and >= with the corresponding values. The script runs and drops the ovnum as it is supposed to if it were null or 0...
Thanks guys!