Trigger question

Yoww89

New Member
Reaction score
0
Another simply and direct question:

Which option is lighter (i mean in processing time or memory use or something like that) and witch is the more correct after all (if there's such thing :p)

Option 1:
Set MyItem = (Item carried by Hero of type MyItemType)
Item - Set charges remaining in MyItem to ((Charges remaining in MyItem) - 1)
If - Charges remaining in MyItem Equal to 0 then action...

Option 2:
Item - Set charges remaining in (Item carried by Hero of type MyItemType) to ((Charges remaining in (Item carried by Hero of type MyItemType) - 1)
If - Charges remaining in (Item carried by Hero of type MyItemType) the actions...

OK, I KNOW IT'S A SILLY QUESTION, BUT COME'OOOON! ISN'T THIS SUPPOSED TO BE THE HELPER? CAN SOMEONE HELP ME?? ¬¬'
 

KaerfNomekop

Swim, fishies. Swim through the veil of steel.
Reaction score
612
Option 2 seems to be more useful, but neither trigger will work if the Hero has more than one of the item-type.
 

Yoww89

New Member
Reaction score
0
actually it does work, it gets the first item of type MyItem in inventory and do the action to that item only. :)
 

Yoww89

New Member
Reaction score
0
First double post, yeeeah! :D

No one experienced enough know the answer to my quesion??
Maybe i should've done computer science instead of chemical engineering :p
 

dianamod27

Member
Reaction score
1
I think option 1 is "lighter" because (Item carried by Hero of type MyItemType) is a function; in option 1 you only go through that function once whereas in option 2, you go through it multiple times.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top