Quote:
Originally Posted by MysticalDragon
PHP Code:
for ( i: player.weapons ) { if ( !i.name.starts( "-" ) ) { temp.itemList.add( i.name ); } }
Remove the "-" part if you want system NPCs to be included
|
Ideally use
temp.i instead of just
i. I think variables used in for statements are always temporary, but it improves readability imo.