Register to post in forums, or Log in to your existing account
 
:
Search found 5 matches for:
Page 1 of 1
Author Message
  Topic: help with string capture
Xiija

Replies: 3
Views: 502

PostForum: zMUD General Discussion   Posted: Tue Aug 13, 2019 5:21 pm   Subject: help with string capture
I was trying that.. got a weird result tho?

line from mud: Valid NPC targets here: cat effigy, monster, wisp bog gas.

captured: cat effigy, monster, wisp bog gas
result: cat effigy

if I do ...
  Topic: help with string capture
Xiija

Replies: 3
Views: 502

PostForum: zMUD General Discussion   Posted: Tue Aug 13, 2019 1:11 pm   Subject: help with string capture
I have a trigger i can't capture because it has multiple alternatives.

Valid NPC targets here: monster.
Valid NPC targets here: cat effigy.
Valid NPC targets here: cat effigy, monster, wisp bo ...
  Topic: logical not syntax
Xiija

Replies: 6
Views: 3410

PostForum: zMUD General Discussion   Posted: Wed Apr 25, 2018 6:31 pm   Subject: logical not syntax
tried that, no go :(
i guess it's not possible in zmud?

i just did this...

#IF (@bsong = 1) {@bsong = 0} {@bsong = 1}
#ECHO Bloodsong: @bsong
  Topic: logical not syntax
Xiija

Replies: 6
Views: 3410

PostForum: zMUD General Discussion   Posted: Tue Apr 24, 2018 5:40 am   Subject: .
( tried your idea, didn't work :( ... )
was just trying to do a basic math thing like in most programming languages...

var a = 0
a = !a
( now a is equal to 1 )
a = !a
( now a is equal to 0 ...
  Topic: logical not syntax
Xiija

Replies: 6
Views: 3410

PostForum: zMUD General Discussion   Posted: Tue Apr 24, 2018 3:52 am   Subject: logical not syntax
cast bloodsong
{@bsong = !(@bsong)}
#echo Bloodsong: @bsong

also tried
@bsong = !(@bsong)
@bsong = !@bsong

none of these work,
can i use a not operator in zmud?
 
Page 1 of 1
All times are GMT
© 2009 Zugg Software. Hosted on Wolfpaw.net