Page 1 of 1

Help me with a particular messagebox

PostPosted: Fri Jan 27, 2017 7:14 am
by Juan Cerda

If a mod comes with a messagebox, I tend to go into the CS and remove them, to me they're intrusive and unneccesary and can ruin a mod if overdone.

The mod in question is http://mw.modhistory.com/download-1-9321, which tells you what you've picked any time you pick up an ingredient (yeah I know it was kreshweed I picked up :P)

See scripts -

Messagebox, "You have gathered %.0f Luminous Russulas.", PickAmount

Messagebox, "You have gathered 1 Violet Coprinus." ; Modify

Im basically wondering what do "modify" and "pickamount" mean at the end of each line? Most other messageboxes are just the messagebox command and the line itself.

Can I delete the whole line or should I leave those last parts in?


Help me with a particular messagebox

PostPosted: Fri Jan 27, 2017 10:03 am
by Laurenn Doylee

"Modify", or anything after a semicolon in a script, is just a comment that does nothing. PickAmount is a variable containing the amount of ingredients you picked, and the "%.0f" is substituted with it when the messagebox is displayed. You can just delete the whole line.


Help me with a particular messagebox

PostPosted: Fri Jan 27, 2017 12:47 am
by Anthony Santillan

Thanks ;)


Help me with a particular messagebox

PostPosted: Fri Jan 27, 2017 11:21 am
by jaideep singh
or just throw a semicolon in front of the offending line. that's simpler and easier to reverse should you feel nostalgic for message spam.