Register to post in forums, or Log in to your existing account
 
:
Search found 13 matches for:
Page 1 of 1
Author Message
  Topic: Weird Find behavior
jcmcbeth

Replies: 0
Views: 2725

PostForum: CMUD General Discussion   Posted: Sat May 07, 2011 4:22 pm   Subject: Weird Find behavior
This is my trigger code:

#LOCAL planet

$rec = %find(%1, Planets, Name);

#IF ($rec) {
$planet = %dbget($rec);
}

$planet.Name = %1;
$planet.System = ...
  Topic: Weird #PICK behavior
jcmcbeth

Replies: 4
Views: 8593

PostForum: CMUD General Discussion   Posted: Thu Sep 25, 2008 10:06 pm   Subject: Weird #PICK behavior
The code you gave me worked.
  Topic: Weird #PICK behavior
jcmcbeth

Replies: 4
Views: 8593

PostForum: CMUD General Discussion   Posted: Wed Sep 24, 2008 5:08 pm   Subject: Weird #PICK behavior
That's an idea, because I tried %quote() and i'm guessing that didn't work because it probably doesn't quote parenthesis.

I'll let you know.
  Topic: Weird #PICK behavior
jcmcbeth

Replies: 4
Views: 8593

PostForum: CMUD General Discussion   Posted: Wed Sep 24, 2008 2:07 pm   Subject: Weird #PICK behavior
I have a button that build's the follow variable to pass to pick:

p:Select a target:|o:1|"( 8220) Diamond :target Diamond "|"( 36) Cruiser m33  ...
  Topic: Parsing Problem with switch statements
jcmcbeth

Replies: 13
Views: 12781

PostForum: CMUD General Discussion   Posted: Fri Sep 19, 2008 9:51 pm   Subject: Parsing Problem with switch statements
To change the state I would just say state = @STATE_MOVING;

Yeah, I could have just said
state = "STATE_DIGGING";

but if you used C++ or other programming languages you wouldn't go
...
  Topic: alias setting a variable problem
jcmcbeth

Replies: 10
Views: 12241

PostForum: CMUD General Discussion   Posted: Fri Sep 19, 2008 6:46 pm   Subject: alias setting a variable problem
Did you try seeing it to another key? Maybe one that isn't an F-key.
  Topic: alias setting a variable problem
jcmcbeth

Replies: 10
Views: 12241

PostForum: CMUD General Discussion   Posted: Fri Sep 19, 2008 6:18 pm   Subject: alias setting a variable problem
I created that alias and those macros and I didn't encounter that problem.
  Topic: Parsing Problem with switch statements
jcmcbeth

Replies: 13
Views: 12781

PostForum: CMUD General Discussion   Posted: Fri Sep 19, 2008 5:37 pm   Subject: Parsing Problem with switch statements
Well, I was just creating an example of the parsing problem I was having. However, it it similiar to what i'm doing. I have a variable @state, and I have different states, say, @STATE_MOVING, @STATE ...
  Topic: Database Problems
jcmcbeth

Replies: 6
Views: 11095

PostForum: CMUD General Discussion   Posted: Fri Sep 19, 2008 5:32 pm   Subject: Database Problems
I actually did try to implement this problem with a bunch of database variable, but I couldn't figure out how to take an alias argument and use it has the name of a variable, such as:


#ALIAS Go & ...
  Topic: Database Problems
jcmcbeth

Replies: 6
Views: 11095

PostForum: CMUD General Discussion   Posted: Fri Sep 19, 2008 5:15 pm   Subject: Database Problems
$p_rec = %find(%1, "All", "Name");

Will only return the ID for the first line for that mud output even though the trigger is fired for each subsequent line. Everyone o ...
  Topic: Parsing Problem with switch statements
jcmcbeth

Replies: 13
Views: 12781

PostForum: CMUD General Discussion   Posted: Thu Sep 18, 2008 4:05 am   Subject: Parsing Problem with switch statements
Both of my examples are the same but with different spacing, which is the point I was trying to make.
  Topic: Database Problems
jcmcbeth

Replies: 6
Views: 11095

PostForum: CMUD General Discussion   Posted: Thu Sep 18, 2008 2:14 am   Subject: Database Problems
I have some input like this, and I have a trigger that fires for each line. I want to store this in a database.


Name Starsystem Governed By Pop Type
Doma ...
  Topic: Parsing Problem with switch statements
jcmcbeth

Replies: 13
Views: 12781

PostForum: CMUD General Discussion   Posted: Thu Sep 18, 2008 12:35 am   Subject: Parsing Problem with switch statements
I noticed a problem with how CMud parses switch statements, I did something like this:

#SWITCH (@STATE)
(@STATE_A) {
// some code
}
(@STATE_B) {
// ...
 
Page 1 of 1
All times are GMT
© 2009 Zugg Software. Hosted on Wolfpaw.net