Register to post in forums, or Log in to your existing account
 
:
Search found 167 matches for:
Page 1 of 7 Goto page 1, 2, 3, 4, 5, 6, 7  Next
Author Message
  Topic: Status Bar Help
chaossdragon

Replies: 1
Views: 261

PostForum: CMUD General Discussion   Posted: Thu Feb 29, 2024 12:38 am   Subject: Status Bar Help
I would use a string list of the breaths you wish to compare to .. <$desiredBreaths = "Fire|Lightning|Sound|Force>"

then a Regex for .. ^>\s(\w)\s[#]\{,50}
#IF (%ismember(%1,$desiredBr ...
  Topic: Stringlist reordering
chaossdragon

Replies: 1
Views: 367

PostForum: CMUD General Discussion   Posted: Thu Feb 22, 2024 3:52 am   Subject: Stringlist reordering
Would an alias for a #SW be enough?

<aliasname> (%1)

@numVar = %1
#SWITCH (@numVar)
(1-1) {@numbers = "one 1-1|two 2-2|three 3-3|four 4-4|five 5-5|s ...
  Topic: #CAP with extra info
chaossdragon

Replies: 2
Views: 494

PostForum: CMUD General Discussion   Posted: Sun Dec 24, 2023 5:20 am   Subject: #CAP with extra info
<trigger priority="14850" regex="true">
<pattern>^(?:>\s|)(You tell \w+|\w+(?<!YOURPET) tells you|\w+ LTs \(.+\)|You LT \(.+\ ...
  Topic: Trigger to Count Skill Use
chaossdragon

Replies: 8
Views: 1313

PostForum: CMUD General Discussion   Posted: Thu Dec 14, 2023 4:45 am   Subject: Trigger to Count Skill Use
the #SW code would go in the body of the trigger that is capturing the attempts.

#TR {You nearly rip %* in two with (%*)!! ~(%d~)} {#SW {%1 = your deadly corrod ...
  Topic: How do I expand a variable within #TRIGGER's patterns and commands?
chaossdragon

Replies: 2
Views: 619

PostForum: CMUD General Discussion   Posted: Thu Dec 14, 2023 4:38 am   Subject: How do I expand a variable within #TRIGGER's patterns and commands?
using () should expand the variable if i recall correctly... but why you want todo this escapes me.
  Topic: #GAG not working suddenly
chaossdragon

Replies: 4
Views: 853

PostForum: CMUD General Discussion   Posted: Tue Dec 12, 2023 11:26 pm   Subject: #GAG not working suddenly
copy an example of your gag'd line and in the trigger on the wizard tab you can paste it to test if the prompt matches... will help figure out what's going on. could be a un-counted whitespace.
...
  Topic: Trigger to Count Skill Use
chaossdragon

Replies: 8
Views: 1313

PostForum: CMUD General Discussion   Posted: Wed Dec 06, 2023 5:03 am   Subject: Trigger to Count Skill Use
Look into #SWITCH You should be able to have a generic 'capture' prompt and eval that capture to the #SW potential results to +1 your wand, and when no match is found do nothing.
  Topic: How does #MATH works?
chaossdragon

Replies: 1
Views: 480

PostForum: CMUD General Discussion   Posted: Fri Nov 24, 2023 4:24 am   Subject: How does #MATH works?
#MATH is depreciated you can just use () to eval

try

$AABB = (100/50)

#SHOW $AABB
  Topic: Often, but not always button clicks process twice, doing everything double
chaossdragon

Replies: 2
Views: 676

PostForum: CMUD General Discussion   Posted: Tue Oct 03, 2023 2:56 am   Subject: Often, but not always button clicks process twice, doing everything double
I recently had a same-ish issue but it was with mouse and not program. single clicks was reading as dbl or wouldn't hold so drag-n-drop was nearly impossible.
  Topic: Incrementing a Loot Alias
chaossdragon

Replies: 7
Views: 1635

PostForum: CMUD General Discussion   Posted: Thu Jul 13, 2023 12:37 am   Subject: Incrementing a Loot Alias
I'd look for something more like "Obvious exit(s): east, north, etc, etc"
  Topic: Beginner Triggers
chaossdragon

Replies: 5
Views: 1454

PostForum: CMUD General Discussion   Posted: Thu Jun 29, 2023 11:20 am   Subject: Beginner Triggers
it shouldn't 'break' but wouldn't fire off as no match would be found. Again without a few samples of in-game prompts it's hard to offer much. Hope the method helps find your solution :)
  Topic: Beginner Triggers
chaossdragon

Replies: 5
Views: 1454

PostForum: CMUD General Discussion   Posted: Thu Jun 29, 2023 3:01 am   Subject: Beginner Triggers
There are several way to go about this, but having some actual in-game descriptions from 'x corpse' or like outputs to refine the options.

personally, I would look at $relevantComponents = "compo ...
  Topic: OK, so I can't seem to handle a simple IF statement
chaossdragon

Replies: 9
Views: 3335

PostForum: CMUD General Discussion   Posted: Mon Mar 06, 2023 4:19 am   Subject: OK, so I can't seem to handle a simple IF statement
Start with each line and do a #SHOW so your first line $newarea=%gmcp.Room.info.area test with #SHOW %gmcp.Room.info.area if this does work then you can move to the next line. should help figu ...
  Topic: Comments within settings
chaossdragon

Replies: 3
Views: 1815

PostForum: CMUD General Discussion   Posted: Tue Feb 14, 2023 5:41 am   Subject: Comments within settings
I use

// script ignores this line

actual sample...
combo alias

//master combo list
$comboList="opener|blind|basic|DfA|dahleg|slow"

// command check with echo syntax
#IF ( ...
  Topic: Out of my depth, need help with a script.
chaossdragon

Replies: 12
Views: 3763

PostForum: CMUD General Discussion   Posted: Mon Dec 19, 2022 2:35 pm   Subject: Out of my depth, need help with a script.
Personally I would set a variable [ Blacklist = Multi_name_1|Multi_name_2|etc|etc ] specifically for the chars you want captured but not sent to the chat window. This will allow your capture trigger ...
  Topic: How to capture a mob short description as a trigger?
chaossdragon

Replies: 3
Views: 2012

PostForum: CMUD General Discussion   Posted: Sun Oct 30, 2022 3:54 am   Subject: How to capture a mob short description as a trigger?
#TR {An (%a) switches and hits * hard|very hard!} {grapple %1}
#TR {An (%a) pummels * hard|very hard!} {grapple %1}


assuming MULTI1 is a potential list of targets as well...
  Topic: Change the speedwalk speed?
chaossdragon

Replies: 2
Views: 1468

PostForum: CMUD General Discussion   Posted: Thu Oct 06, 2022 12:57 am   Subject: Change the speedwalk speed?
Look into #step #pause #resume I used to run a bot that would start and follow a speedwalk using those commands to nav through rooms, check for mobs, kill if present or move to next room if no mo ...
  Topic: Colors for Status Window
chaossdragon

Replies: 6
Views: 3097

PostForum: CMUD General Discussion   Posted: Wed Aug 31, 2022 1:37 am   Subject: Colors for Status Window
https://i.imgur.com/ectXFkQ.png

here's an example of how it looks for me... main mud window is on left, chat captures are upper right, and lower right is my tracked status variables.

Sorry it's ...
  Topic: Colors for Status Window
chaossdragon

Replies: 6
Views: 3097

PostForum: CMUD General Discussion   Posted: Wed Aug 31, 2022 12:14 am   Subject: Colors for Status Window
close your coloring with %reset()

#VAR shield %ansi(bold,cyan)ON%reset()

usually I just set my color in the status windows code and not embed in the variable, this could lead to issues with rea ...
  Topic: How to prevent duplicate variable creation?
chaossdragon

Replies: 23
Views: 8299

PostForum: CMUD General Discussion   Posted: Tue Jul 26, 2022 12:05 am   Subject: How to prevent duplicate variable creation?
out of curiousity, how long do you leave cmud running at any given time? Do you save and close the program periodically? I have noticed that dupe vars and mis-firing scripts will occur with variably ...
  Topic: temporary variable
chaossdragon

Replies: 3
Views: 2270

PostForum: CMUD General Discussion   Posted: Sat Jul 23, 2022 11:07 pm   Subject: temporary variable
As Tarn said. Use "#LOCAL {tempVar}" then reference it with $tempVar

if you don't define it with #LOCAL it will dump the tempVar once the inital {script} is closed, so any further calls on it wil ...
  Topic: #math issues on flaoting numbers in a variable
chaossdragon

Replies: 3
Views: 2213

PostForum: CMUD General Discussion   Posted: Mon Jul 18, 2022 10:49 am   Subject: #math issues on flaoting numbers in a variable
Shalimar advised me on a floating script a few years back, and had said you pretty much have to always use #.00 for it to function.

in fact you had commented on that exact thread "I suck at math" ...
  Topic: getting my syntax right
chaossdragon

Replies: 5
Views: 2846

PostForum: CMUD General Discussion   Posted: Tue Jul 12, 2022 10:24 pm   Subject: getting my syntax right
for on/off states I tend to use boolean (if that is the correct term) 1/0 so (@autosc = 1) {on} {off}
  Topic: Placing variables to the root
chaossdragon

Replies: 7
Views: 3818

PostForum: CMUD General Discussion   Posted: Sun May 15, 2022 7:54 pm   Subject: Placing variables to the root
Sadly this is an issue with my settings to... I find it does it more frequently when I am enabling/disabling classes that store said variables.

My solution was to migrate to DBVars " charData.Var_ ...
  Topic: Reading value from the line with ()
chaossdragon

Replies: 2
Views: 2052

PostForum: CMUD General Discussion   Posted: Wed Apr 20, 2022 3:25 am   Subject: Reading value from the line with ()
#TR {Gigantic %n Force ~((%n)~) - %n ~[ ~]} {#PRINT %1}

should do the trick.
 
Page 1 of 7 Goto page 1, 2, 3, 4, 5, 6, 7  Next
All times are GMT
© 2009 Zugg Software. Hosted on Wolfpaw.net