TGI coding and stuff like that

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.
User avatar
Golden_Soldier
Posts: 265
Joined: July 20th, 2010, 10:26 pm
Location: Roanoke

Re: TGI coding and stuff like that

Post by Golden_Soldier »

Ok more work is done. Once again I have two problems. first of all why in the scenario The Dog Plains does the scenario not end once both tasks are accomplished? Is it something with the variables. Is it possible to not have a variable go to a set number but have it just go up by one? (e.g. after 4 stages are done in the cave I wish to have a sidequest so after each stage is done the variable goes up by one so that when it is at 4 It will go to the side quest instead of going back to the cave)
User avatar
Elvish_Hunter
Posts: 1575
Joined: September 4th, 2009, 2:39 pm
Location: Lintanir Forest...

Re: TGI coding and stuff like that

Post by Elvish_Hunter »

Golden_Soldier wrote:Is it something with the variables. Is it possible to not have a variable go to a set number but have it just go up by one?
Sure.

Code: Select all

[set_variable]
    name=my_variable
    add=1
[/set_variable]
Current maintainer of these add-ons, all on 1.16:
The Sojournings of Grog, Children of Dragons, A Rough Life, Wesnoth Lua Pack, The White Troll (co-author)
User avatar
Captain_Wrathbow
Posts: 1664
Joined: June 30th, 2009, 2:03 pm
Location: Guardia

Re: TGI coding and stuff like that

Post by Captain_Wrathbow »

Or

Code: Select all

{VARIABLE_OP variable_name add 1}
User avatar
Golden_Soldier
Posts: 265
Joined: July 20th, 2010, 10:26 pm
Location: Roanoke

Re: TGI coding and stuff like that

Post by Golden_Soldier »

for those of you who care I've got an update with two new scenarios one talking and one fighting. I'll work on another fighting one now
Attachments
The_Grand_Impressionist.zip
(989.35 KiB) Downloaded 149 times
User avatar
Golden_Soldier
Posts: 265
Joined: July 20th, 2010, 10:26 pm
Location: Roanoke

Re: TGI coding and stuff like that

Post by Golden_Soldier »

Campaign image. Could be better. I may redo it at some point. But dont critique cuz this isnt an art forum and this isnt really art. I think it looks fine though. It serves its purpose well.
Attachments
Campaign-image.png
Campaign-image.png (75.65 KiB) Viewed 2373 times
User avatar
powershot
Posts: 1193
Joined: May 7th, 2011, 3:03 am
Location: Central America
Contact:

Re: TGI coding and stuff like that

Post by powershot »

Really cool.
My new account is: Power_Pixel_Wannabe. Yea. Yea.... Why are you still reading this? What the heck m8? You have some kind of problem? Yea. I draw. NO I'M NOT 5 ANYMORE!!! Little brats.
The heck m8? I thought you left... No seriously... go... serious...
ok bye m8. I'm serious.
User avatar
Golden_Soldier
Posts: 265
Joined: July 20th, 2010, 10:26 pm
Location: Roanoke

Re: TGI coding and stuff like that

Post by Golden_Soldier »

that's great. but if you dont have anything beneficial to say (which no offense but most of the time you do not) please do not reply on this anymore. :augh:
Post Reply