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

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion Goto page Previous  1, 2, 3
Mr. Sasavicz Posted: Sun Apr 29, 2007 1:44 pm
CPPIG help
Mr. Sasavicz
Novice


Joined: 11 Mar 2002
Posts: 37
Location: USA

PostPosted: Sat May 05, 2007 5:46 pm   
 
Fang Xianfu wrote:
Well you said yourself that you had this as the trigger script:

#VA HP %1; #VA HPMAX %2; #VA MP %3; #VA MPMAX %4; #VA MV %5; #VA MVMAX %6

This will create variables for each of those things. Then, for example, you'd set the value of your hp gauge to @HP, the max to @HPMAX, and the low to @HPMAX/4


do I have to put this somewhere?

~(Hp:(%d)~/(%d)~)~(Mp:(%d)~/(%d)~)~(Mv:(%d)~/(%d)~)


and where does
#VA HP %1; #VA HPMAX %2; #VA MP %3; #VA MPMAX %4; #VA MV %5; #VA MVMAX %6
that go?
Reply with quote
Progonoi
Magician


Joined: 28 Jan 2007
Posts: 430

PostPosted: Sat May 05, 2007 6:32 pm   
 
omg :P You need to read the following really closely now and do exactly as told.

Code:


#TRIGGER {~(Hp:(%d)~/(%d)~)~(Mp:(%d)~/(%d)~)~(Mv:(%d)~/(%d)~)} {#VA HP %1;#VA HPMAX %2;#VA MP %3;#VA MPMAX %4;#VA MV %5;#VA MVMAX %6}



1. You see a bit of code inside the code tags.
2. You need to paste that code bit into your zmud's command line.
3. Then you need to press the enter button.


Prog
Reply with quote
Mr. Sasavicz
Novice


Joined: 11 Mar 2002
Posts: 37
Location: USA

PostPosted: Sat May 05, 2007 6:38 pm   
 
progonoi wrote:
omg :P You need to read the following really closely now and do exactly as told.

Code:


#TRIGGER {~(Hp:(%d)~/(%d)~)~(Mp:(%d)~/(%d)~)~(Mv:(%d)~/(%d)~)} {#VA HP %1;#VA HPMAX %2;#VA MP %3;#VA MPMAX %4;#VA MV %5;#VA MVMAX %6}



1. You see a bit of code inside the code tags.
2. You need to paste that code bit into your zmud's command line.
3. Then you need to press the enter button.


Prog


Ok I have been trying to make a trigger and put that line into it the whole time just going to the setting , trigger, new.
I have done what u typed above and the buttons still do nothing
Reply with quote
Mr. Sasavicz
Novice


Joined: 11 Mar 2002
Posts: 37
Location: USA

PostPosted: Sat May 05, 2007 6:50 pm   
 
OMG

ok ok ok
it was case sensative I got it working thankyou to everyone that tried to help over the past few days!
Reply with quote
Mr. Sasavicz
Novice


Joined: 11 Mar 2002
Posts: 37
Location: USA

PostPosted: Sat May 05, 2007 6:53 pm   
 
the grafix get lower from left to right. is there a way to reverse that?
I looked in the button state cant see anywhere
Reply with quote
Mr. Sasavicz
Novice


Joined: 11 Mar 2002
Posts: 37
Location: USA

PostPosted: Sat May 05, 2007 6:58 pm   
 
hey nevermind I aligned it to the right so it is top to bottom and it looks nice :)
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Sat May 05, 2007 9:28 pm   
 
For future reference, a gauge will automatically drain vertically if button height is greater than or equal to button width. Similarly, if height is less than (but not equal to) width then it will drain horizontally.
_________________
EDIT: I didn't like my old signature
Reply with quote
Mr. Sasavicz
Novice


Joined: 11 Mar 2002
Posts: 37
Location: USA

PostPosted: Sat May 05, 2007 11:13 pm   
 
MattLofton wrote:
For future reference, a gauge will automatically drain vertically if button height is greater than or equal to button width. Similarly, if height is less than (but not equal to) width then it will drain horizontally.


yeas i wanted them to be on the top and drain from left to right.
they drain right to left when you put them to the top

when u make a button.gauge theres a place for caption. can I make that colored? its defaulted to black.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion All times are GMT
Goto page Previous  1, 2, 3
Page 3 of 3

 
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