Staredit Network > Forums > SC1 UMS Mapmaking Assistance > Topic: [SOLVED] String Clarification
[SOLVED] String Clarification
Jun 18 2011, 12:51 pm
By: Oh_Man  

Jun 18 2011, 12:51 pm Oh_Man Post #1

Find Me On Discord (Brood War UMS Community & Staredit Network)

DTM = Display Text Message.

OK everyone here is my question: Which is the most efficient method of string-saving?

Say I have a menu, the DTM would be like this:
1 - Quests
2 - Character Attributes
3 - Equipment
8 - Back

So, is SCMDraft recycling strings on every enter? Or is it only recycling strings if DTMs are identical? Because, otherwise, I am planning on going all back through my triggers and changing it to something like this.

DTM
1 - Quests
DTM (separate one)
2 - Character Attributes
DTM (separate one)
3 - Equipment
DTM (separate one)
8 - Back


Thanks,
Oh_Man.




Jun 18 2011, 2:23 pm NudeRaider Post #2

We can't explain the universe, just describe it; and we don't know whether our theories are true, we just know they're not wrong. >Harald Lesch

Open ScmDraft's string editor and see for yourself. :P

---

Which method conserves more strings depends on how many combinations of different menus with the same element you have.
Every separate DTM is saved as a separate string. Using the [Enter] char in a string won't split it into a new string.

So when you have like 3 different possible combinations, like for example

1
2
3
8

1
3
8

1
2
8

In that case you need fewer number of strings (but more of the max. char limit of 64k) when to put everything in 3 strings, but if you have more combinations than there are choices it's better to separate it into individual lines if you're using ScmDraft because it recycles identical strings in different triggers. This is the only editor that does this.




Jun 18 2011, 7:36 pm Oh_Man Post #3

Find Me On Discord (Brood War UMS Community & Staredit Network)

Aah thank you, a lot of my DTMs have lots of enters as well, to push other writing off the screen. Right now I have a very inefficient use of strings, and I am looking forward to all the extra space I'll have after employing this method.

Many thanks!!

Post has been edited 1 time(s), last time on Jun 19 2011, 12:45 am by Oh_Man.




Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[03:45 am]
Sylph-Of-Space -- Does the shoutbox get disabled when there's spammers?
[2024-5-17. : 6:47 am]
NudeRaider -- lil-Inferno
lil-Inferno shouted: nah
strong
[2024-5-17. : 5:41 am]
Ultraviolet -- 🤔 so inf is in you?
[2024-5-17. : 4:57 am]
O)FaRTy1billion[MM] -- my name is mud
[2024-5-17. : 4:35 am]
Ultraviolet -- mud, meet my friend, the stick
[2024-5-16. : 10:07 pm]
lil-Inferno -- nah
[2024-5-16. : 8:36 pm]
Ultraviolet -- Inf, we've got a job for you. ASUS has been very naughty and we need our lil guy to go do their mom's to teach them if they fuck around, they gon' find out
[2024-5-16. : 5:25 pm]
NudeRaider -- there he is, right on time! Go UV! :D
[2024-5-16. : 5:24 pm]
lil-Inferno -- poopoo
[2024-5-16. : 5:14 pm]
UndeadStar -- I wonder if that's what happened to me. A returned product (screen) was "officially lost" for a while before being found and refunded. Maybe it would have remained "lost" if I didn't communicate?
Please log in to shout.


Members Online: Wing Zero, 1carolinee471rM1, 9harperc1123yL4