ForestDragon's WML questions

The place to post your WML questions and answers.

Moderator: Forum Moderators

Forum rules
  • Please use [code] BBCode tags in your posts for embedding WML snippets.
  • To keep your code readable so that others can easily help you, make sure to indent it following our conventions.
Post Reply
User avatar
ForestDragon
Posts: 1766
Joined: March 6th, 2014, 1:32 pm
Location: Ukraine

ForestDragon's WML questions

Post by ForestDragon »

hello, am kinda curious if it's possible to add more things into [sound][/sound] or [music][/music] other than just the sound itself, like speed, pitch, ect? just curious
Last edited by ForestDragon on May 23rd, 2016, 6:11 am, edited 1 time in total.
User avatar
zookeeper
WML Wizard
Posts: 9742
Joined: September 11th, 2004, 10:40 pm
Location: Finland

Re: Is it possible to alter sounds in-game by using WML?

Post by zookeeper »

No.
User avatar
ForestDragon
Posts: 1766
Joined: March 6th, 2014, 1:32 pm
Location: Ukraine

Re: ForestDragon's WML questions

Post by ForestDragon »

ok, so i am making a new MP mod, and i might need a bit of help (btw, i is called XP bank):
1.i need to make a variable, that has different amount for each side (aka 'stored_exp', but different for each side, like side.stored_exp, or something, help pls)
2.i need to check the units exp, so it turns into a variable, or just simply check it, so that it cant turn it into stored_exp foreverfigured out
Last edited by ForestDragon on May 24th, 2016, 12:08 pm, edited 1 time in total.
User avatar
Ravana
Forum Moderator
Posts: 2933
Joined: January 29th, 2012, 12:49 am
Location: Estonia
Contact:

Re: ForestDragon's WML questions

Post by Ravana »

1. I tend to use names like a_1 to a_9.
2. Not sure what you ask.
User avatar
ForestDragon
Posts: 1766
Joined: March 6th, 2014, 1:32 pm
Location: Ukraine

Re: ForestDragon's WML questions

Post by ForestDragon »

1.i also might need something to check whose turn it is, and the interacted unit's side too, to make sure that the exp will be deposited to, and withdrawn from that side's XP bank
2.i guess this.unit.experience will do
User avatar
ForestDragon
Posts: 1766
Joined: March 6th, 2014, 1:32 pm
Location: Ukraine

Re:Need Help making a MP mod

Post by ForestDragon »

help, i cant get my mod to display in the modification selection (plus, it didn't even give me an error message or anyhing :annoyed: ), here are all the files:
xpbank_mod.cfg:
xpbank_event.cfg , very incomplete:
EDIT:changed the filenames, still not working :x :doh: :(
Last edited by ForestDragon on May 26th, 2016, 5:24 am, edited 3 times in total.
User avatar
zookeeper
WML Wizard
Posts: 9742
Joined: September 11th, 2004, 10:40 pm
Location: Finland

Re: ForestDragon's WML questions

Post by zookeeper »

Better check those filenames.
User avatar
ForestDragon
Posts: 1766
Joined: March 6th, 2014, 1:32 pm
Location: Ukraine

Re: ForestDragon's WML questions

Post by ForestDragon »

changed the filenames, still not working, i think it may be something else :|
User avatar
zookeeper
WML Wizard
Posts: 9742
Joined: September 11th, 2004, 10:40 pm
Location: Finland

Re: ForestDragon's WML questions

Post by zookeeper »

ForestDragon wrote:changed the filenames
Even main.cfg?
User avatar
ForestDragon
Posts: 1766
Joined: March 6th, 2014, 1:32 pm
Location: Ukraine

Re: ForestDragon's WML questions

Post by ForestDragon »

no, just the ones mentioned in main to what they are
User avatar
zookeeper
WML Wizard
Posts: 9742
Joined: September 11th, 2004, 10:40 pm
Location: Finland

Re: ForestDragon's WML questions

Post by zookeeper »

Well there you go then. Naturally a file called main.cfg does nothing by itself.
User avatar
Iris
Site Administrator
Posts: 6796
Joined: November 14th, 2006, 5:54 pm
Location: Chile
Contact:

Re: ForestDragon's WML questions

Post by Iris »

What zookeeper is actually trying to say is that it should named _main.cfg (note the leading underscore), not main.cfg.
Author of the unofficial UtBS sequels Invasion from the Unknown and After the Storm.
User avatar
ForestDragon
Posts: 1766
Joined: March 6th, 2014, 1:32 pm
Location: Ukraine

Re: ForestDragon's WML questions

Post by ForestDragon »

umm it is actually in the files _main.cfg sorry for confusing you. the only suspects i have is the mod file itself, and the event
User avatar
ForestDragon
Posts: 1766
Joined: March 6th, 2014, 1:32 pm
Location: Ukraine

Re: ForestDragon's WML questions

Post by ForestDragon »

ok, new state of files (i removed mods, and macros folder, and put the files into main folder)i don't even know what to do:i checked other mods that worked, and found nothing wrong with mine, yet it still doesn't show up (well, it shows up in addon menu) :doh: :augh: :cry: :shock: (btw, i am on a different computer, where it's still 1.11.5):
_main.cfg:
xpbank_mod.cfg:
xpbank_event.cfg:
User avatar
zookeeper
WML Wizard
Posts: 9742
Joined: September 11th, 2004, 10:40 pm
Location: Finland

Re: ForestDragon's WML questions

Post by zookeeper »

Works perfectly fine for me. That is, the game reads the files until it chokes on the syntax errors.

Most likely you have the files in the wrong place or their extension isn't actually .cfg.
Post Reply