Having issues with horse script

Setup, mapping, script help, etc.
Post Reply
Taziar
Posts: 157
Joined: Tue Apr 07, 2015 8:24 pm
Location: Seattle

Having issues with horse script

Post by Taziar »

Zmud Horse Script, author unknown.

Code: Select all

#CLASS {Horsescript}
#ALIAS enable_horsescript {#var horserider 1}
#ALIAS disable_horsescript {#var horserider 0}
#VAR horsecount {3}
#VAR horselist {warhorse|wild stallion|gray palfrey|roan charger|black stallion|shaggy brown mare|draft horse|dust-colored gelding|bloodstock stallion|dun mare|brown stallion|prancing palomino mare|Domani razor}
#VAR horserider {1}
#VAR tormcount {0}
#VAR rakencount {0}
#VAR shadowcount {0}
#TRIGGER {obvious exits:} {#var horsecount 0;#var tormcount 0;#var rakencount 0;#var shadowcount 0}
#TRIGGER {, riding a (*).} {#if %ismember( %1, @horselist)>0 {#math horsecount @horsecount+1;#if @horserider=1 {#sub {, riding a ~|@horsecount~|~.%1~.}}} {}}
#TRIGGER {A gray palfrey prances skittishly nearby} {#math horsecount @horsecount+1;#sub {~|@horsecount~|~.A gray palfrey prances skittishly nearby}}
#TRIGGER {A warhorse is here, stamping his feet impatiently} {#math horsecount @horsecount+1;#sub {~|@horsecount~|~.A warhorse is here, stamping his feet impatiently}}
#TRIGGER {A wild stallion bucks madly} {#math horsecount @horsecount+1;#sub {~|@horsecount~|~.A wild stallion bucks madly}}
#TRIGGER {A draft horse is here} {#math horsecount @horsecount+1;#sub {~|@horsecount~|~.A draft horse is here}}
#TRIGGER {A shaggy brown mare stands here} {#math horsecount @horsecount+1;#sub {~|@horsecount~|~.A shaggy brown mare stands here}}
#TRIGGER {An Illianer steed stands here proudly, its black mane glistening} {#math horsecount @horsecount+1;#sub {~|@horsecount~|~.An Illianer steed stands here proudly, its black mane glistening}}
#TRIGGER {A dun mare is here, snorting angrily.} {#math horsecount @horsecount+1;#sub {~|@horsecount~|~.A dun mare is here, snorting angrily}}
#TRIGGER {A tall dust-colored gelding prances in a circle here} {#math horsecount @horsecount+1;#sub {~|@horsecount~|~.A tall dust-colored gelding prances in a circle here}}
#TRIGGER {A massive three-eyed reptile gazes at you} {#math tormcount @tormcount+1;#sub {~<color purple>~|@tormcount~|~.~</color>A massive three-eyed reptile gazes at you}}
#TRIGGER {, riding a raken.} {#math rakencount @rakencount+1;#if @horserider=1 {#sub {, riding a ~<color purple>~|@rakencount~|~.~</color>raken.}}}
#TRIGGER {, riding a torm.} {#math tormcount @tormcount+1;#if @horserider=1 {#sub {, riding a ~<color purple>~|@tormcount~|~.~</color>torm}}}
#TRIGGER {, riding a shadow stallion.} {#math shadowcount @shadowcount+1;#if @horserider=1 {#sub {, riding a ~<color red>~|@shadowcount~|~.~</color>shadow stallion}}}
#TRIGGER {, riding an Illianer steed.} {#math horsecount @horsecount+1;#if @horserider=1 {#sub {, riding an ~|@horsecount~|~.Illianer steed.}}}
#TRIGGER {A black shadow stallion paws the ground here, fiery-red eyes shining with evil} {#math shadowcount @shadowcount+1;#sub {~<color red>~|@shadowcount~|~.~</color>A black shadow stallion paws the ground here, fiery-red eyes shining with evil}}
#TRIGGER {A Tairen bloodstock stallion stands here, tail swaying with the breeze} {#math horsecount @horsecount+1;#sub {~|@horsecount~|~.A Tairen bloodstock stallion stands here, tail swaying with the breeze}}
#TRIGGER {Prancing about on dainty feet, a palomino mare stands here} {#math horsecount @horsecount+1;#sub {~|@horsecount~|~.Prancing about on dainty feet, a palomino mare stands here}}
#TRIGGER {A black stallion prances about} {#math horsecount @horsecount+1;#sub {~|@horsecount~|~.A black stallion prances about}}
#TRIGGER {, riding a Domani razor.} {#math horsecount @horsecount+1;#if @horserider=1 {#sub {, riding a ~|@horsecount~|~.Domani razor.}}}
#TRIGGER {Eyes keen, a Domani razor stands here swishing its tail.} {#math horsecount @horsecount+1;#sub {~|@horsecount~|~.Eyes keen, a Domani razor stands here swishing its tail}}
#CLASS 0
Problem I am having is when riding a razor and typing look or entering a new room the Razor does not get assigned a number. If I enter a room or look at a razor not being ridden by me it gets assigned a number.

Example:
The Cityguard Stables
The stables house the horses that are reserved for the guards of the city.
The clean stalls and lack of remaining refuse indicates the meticulous
nature of the stable hands. Horses of every size and breed are boarded
here, taken good care of until their masters are in need of them. The sigil
of the guard stands out above the entrance of the rock barn.
[ obvious exits: W ]
An iron lantern hangs from the wall above the gate.
A man walks among the horses here feeding them and rubbing them down.
A commoner walks the streets stripped to the waist.
Eyes keen, a Domani razor stands here swishing its tail, being ridden by you.
|1|.A warhorse is here, stamping his feet impatiently.
|2|.A draft horse is here.
|3|.A shaggy brown mare stands here.
A man stands here ready to make you a deal on a horse.

* R HP:Healthy MV:Fresh > 2
[dismount ]
You stop riding him.

* HP:Healthy MV:Fresh > l
The Cityguard Stables
The stables house the horses that are reserved for the guards of the city.
The clean stalls and lack of remaining refuse indicates the meticulous
nature of the stable hands. Horses of every size and breed are boarded
here, taken good care of until their masters are in need of them. The sigil
of the guard stands out above the entrance of the rock barn.
[ obvious exits: W ]
An iron lantern hangs from the wall above the gate.
A man walks among the horses here feeding them and rubbing them down.
A commoner walks the streets stripped to the waist.
|1|.Eyes keen, a Domani razor stands here swishing its tail
|2|.A warhorse is here, stamping his feet impatiently.
|3|.A draft horse is here.
|4|.A shaggy brown mare stands here.
A man stands here ready to make you a deal on a horse.

* HP:Healthy MV:Fresh > 1
[ride horse]
You start riding him.

* R HP:Healthy MV:Fresh > l
The Cityguard Stables
The stables house the horses that are reserved for the guards of the city.
The clean stalls and lack of remaining refuse indicates the meticulous
nature of the stable hands. Horses of every size and breed are boarded
here, taken good care of until their masters are in need of them. The sigil
of the guard stands out above the entrance of the rock barn.
[ obvious exits: W ]
An iron lantern hangs from the wall above the gate.
A man walks among the horses here feeding them and rubbing them down.
A commoner walks the streets stripped to the waist.
Eyes keen, a Domani razor stands here swishing its tail, being ridden by you.
|1|.A warhorse is here, stamping his feet impatiently.
|2|.A draft horse is here.
|3|.A shaggy brown mare stands here.
A man stands here ready to make you a deal on a horse.

Thanks in advance for any feedback!

Taziar Medakan, Sun Lieutenant [Rising Sun Blademaster]
House of Medakan cMUD Scripts: Table of Contents

House of Medakan zMUD Scripts: Table of Contents
Russ3Z
Site Admin
Posts: 19
Joined: Mon May 07, 2012 8:55 pm

Re: Having issues with horse script

Post by Russ3Z »

this line:

#TRIGGER {Eyes keen, a Domani razor stands here swishing its tail.}

is the problem. You need to remove the period at the end of it.
Taziar
Posts: 157
Joined: Tue Apr 07, 2015 8:24 pm
Location: Seattle

Re: Having issues with horse script

Post by Taziar »

Awesome!

Just realized that dun mare is affected the same way.
House of Medakan cMUD Scripts: Table of Contents

House of Medakan zMUD Scripts: Table of Contents
Post Reply