Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
Intense5
Beginner


Joined: 02 Aug 2013
Posts: 10

PostPosted: Tue Mar 03, 2015 3:38 am   

Help! Cant get this trigger working
 
Hello I am trying to make this work but I simply cant..

When I type info there is a line that shows this information:

You have 377/377 hit, 103/103 mana, and 112/112 movement points.

I want that information to be stored in 3 different variables.

hpnow, mananow and mpnow

and I want to be able to write
"scen" and once I do that it is supposed to
emote Reports: hpnow, mananow and mpnow.

and I also want a command
"sce" that will only do
emote Reports: hpnow, and mpnow.

Is there any kind soul out there that can help me with this?
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4715
Location: Pensacola, FL, USA

PostPosted: Tue Mar 03, 2015 5:32 am   
 
#TR {You have (%d)/(%d) hit, (%d)/(%d) mana, and (%d)/(%d) movement points.} {
hpnow=%1
hpmax=%2
mananow=%3
manamax=%4
mpnow=%5
npmax=%6
}

#ALIAS scen {emote reports: @hpnow, @mananow, @mpnow}
#ALIAS sce {emote reports: @hpnow, @mpnow}
_________________
Discord: Shalimarwildcat
Reply with quote
Intense5
Beginner


Joined: 02 Aug 2013
Posts: 10

PostPosted: Tue Mar 03, 2015 6:08 pm   
 
cool..thanks alot :)

can anyone explain why I have to change all my triggers from XML to zscipt to make them work?
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4715
Location: Pensacola, FL, USA

PostPosted: Tue Mar 03, 2015 10:26 pm   
 
you shouldn't have to

the script text tab is for zscript (or whatever other language you set it to use)
the XML tab shows you the XML version of the same thing
_________________
Discord: Shalimarwildcat
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
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

© 2009 Zugg Software. Hosted by Wolfpaw.net