helppp! integers!!!

P

PLEASE HELP!!!

Guest
Somebody please help me with this problem. Apparently, one of my integer array variables isn't subtracting or adding to itself. here's the trigger:

event- player 1 types a chat message containing 'flame imp battle' as an exact match

conditions- integerarray[5] less than or equal to 10

actions-
set integerarray[30]=integerarray[30]-5
change the value for blah blah in the leaderboard to integerarray[30]

okay..so i did that...however it doesn't seem to do it correctly
i'm an expert at this and have done many leaderboards, however it just won't work

anyway, when you do: set integerarray[30]=integerarray[30]-5, does it automatically subtract, or do you have to do something like: change the value in IntegerArray[30] to Integerarray[30]-5
 

Darg

Administrator
Reaction score
49
hmm I don't see anything you are doing wrong there.

as a test, output the value of integerarray[30] to the screen both before and after you do the subtraction, and see what's going on (i.e. do a 'game - display text')
 
D

DoodDood

Guest
I am not an expert of "array" variables
(I am only asking a question :p)


It is clear that "integerarray[30]" and "integerarray[30]-5" are not equal,
so will the programme consider this equation wrong and just ignore or disable it?
 

Darg

Administrator
Reaction score
49
the line:

set integerarray[30]=integerarray[30]-5

doesn't test to see if the left and right sides are equal, it sets the value of the variable on the left hand side to the value defined by the right hand side.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top