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
daemoan.vermillious
Apprentice


Joined: 28 Feb 2009
Posts: 135
Location: Chico, Ca

PostPosted: Wed Mar 23, 2011 4:39 pm   

trigger off propmpt?
 
Heres My Prompt:

<[10324068] [32500H 31500M 32458V]>

i wanting to trigger off my exp at or over 20000000 exp

to

Convert 20000000 qps
Reply with quote
shalimar
GURU


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

PostPosted: Wed Mar 23, 2011 4:52 pm   
 
Code:
<trigger priority="7490" newline="false" prompt="true" id="749">
  <pattern><~[(%d)~] ~[(%d)H (%d)M (%d)V~]></pattern>
  <value>$exp=%1
$health=%2
$mana=%3
$vitality=%4
#IF ($exp=>20000000) {Convert 20000000 qps}</value>
</trigger>

It makes local variables for your vitals as well, you can throw them away or not
_________________
Discord: Shalimarwildcat
Reply with quote
daemoan.vermillious
Apprentice


Joined: 28 Feb 2009
Posts: 135
Location: Chico, Ca

PostPosted: Mon Mar 28, 2011 4:29 am   
 
/so I had to make a new prompt
so I had to remake the trigger this is it
-=(<210100115> <55000(H) 54048(M)> <0>)=-
I made this trigger
Pattern
^~-~=~(~<(%d)~> ~<(%d)~(H~) (%d)~(M~)> ~<%d~>~)~=~-

Value:
$exp=%1
$health=%2
$mana=%3
$fight=%4
#IF ($exp=>200000000) {#10 Convert 20000000 qps}

Iam getting this error:
ERROR: Trigger "^~-~=~(~<(%d)~> ~<(%d)~(H~) (%d)~(M~)> ~< ~>~)~=~-" fired but did not compile

also
I put this in a Class Called Exper
Can I fire that trigger once and then disable the class and then re enable it after its been recieves but the mud

This is what it says when i exchange for qps:
You exchange 20000000 experience for 200 QPS.

This is What is says when i have no more exp to convert
Reply with quote
shalimar
GURU


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

PostPosted: Mon Mar 28, 2011 11:21 am   
 
Use this pattern:
Code:
-=~(<(%d)> <(%d)~(H~) (%d)~(M~)> <(%d)>~)=-



And yes, you want to give the trigger above an ID of some sort like AutoQPS

Then at the end of the above trigger add a new lline:
Code:
#T- AutoQPS


Then make a new trigger to turn it back on:
Code:
#TR {You exchange 20000000 experience for 200 QPS. } {#T+ AutoQPS}
_________________
Discord: Shalimarwildcat
Reply with quote
Myrkul
Wanderer


Joined: 21 Aug 2008
Posts: 85

PostPosted: Wed Mar 30, 2011 3:20 am   
 
[edit][/edit]
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