Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
operations, logic
#1
Question 
Hello!
i need help with macro / language
1) how i can use mathematical operations +,-,*,/ on variables.
for example: number:=Creatures.OnScreen()+Creatures.PlayrsOnScreen()

2) logical operations equivalen with AND, OR ,
THX so much
Reply
#2
Open bbot doku wiki Then go macro commands and on begin are thoose options i can't help u cuz I'm on mobile
Reply
#3
Unfortunatelly Macro engine doesn't have relational operations (AND, OR..), but it contains basic math functions:

http://wiki.bmega.net/doku.php?id=macros...#internals

+ is Inc
- is Dec

To do what you need, a example (I didn't test, nor wrote correctly the functions):

Creatures:=Creatures.OnScreen()
Playrs:=Creatures.PlayersOnScreen()
Inc(Creatures, !Players!)
Reply
#4
You can do separated values in settings and I think it will be better for customize

Example
Use energy ring when
Creatures by name
(Rotworm, troll) more than x
Creature to ignore ( snake, dog, cat)
Players on screen more than x
Ignore npc
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)