[DiscordArchive] suggestions for optimizing this ?
[DiscordArchive] suggestions for optimizing this ?
![[Image: screenshot.png?ex=690bd85e&is=690a86de&h...4a19f5028&]](https://cdn.discordapp.com/attachments/448835144564867094/651922208029016090/screenshot.png?ex=690bd85e&is=690a86de&hm=d1e6fa87f15103a25e80133c00aec13b232521dde2675143859ee104a19f5028&)
Archived author: Deleted User • Posted: 2019-12-04T23:06:07.180000+00:00
Original source
suggestions for optimizing this ?
![[Image: screenshot.png?ex=690bd85e&is=690a86de&h...4a19f5028&]](https://cdn.discordapp.com/attachments/448835144564867094/651922208029016090/screenshot.png?ex=690bd85e&is=690a86de&hm=d1e6fa87f15103a25e80133c00aec13b232521dde2675143859ee104a19f5028&)
Archived author: Deleted User • Posted: 2019-12-04T23:07:35.871000+00:00
Original source
I made a mistake on line 11, the real version of this one is:
```LUA
if factionId = 1 then neutral = factionId + 2 else neutral = factionId + 1 end
```
![[Image: screenshot.png?ex=690bdc2c&is=690a8aac&h...baa1cf355&]](https://cdn.discordapp.com/attachments/448835144564867094/651926293411004416/screenshot.png?ex=690bdc2c&is=690a8aac&hm=45ef84464cb1bfda86eba3b5eaf17fdfed8a467e89e4db86a43d087baa1cf355&)
Archived author: Deleted User • Posted: 2019-12-04T23:22:21.672000+00:00
Original source
I corrected some mistakes
![[Image: screenshot.png?ex=690bdc2c&is=690a8aac&h...baa1cf355&]](https://cdn.discordapp.com/attachments/448835144564867094/651926293411004416/screenshot.png?ex=690bdc2c&is=690a8aac&hm=45ef84464cb1bfda86eba3b5eaf17fdfed8a467e89e4db86a43d087baa1cf355&)