.com.unity Forums

.com.unity Forums (http://forum.shrapnelgames.com/index.php)
-   Scenarios and Mods (http://forum.shrapnelgames.com/forumdisplay.php?f=130)
-   -   Does INCV actually do anything? (http://forum.shrapnelgames.com/showthread.php?t=35896)

sgqwonkian August 27th, 2007 03:07 PM

Does INCV actually do anything?
 
According to the Modmakers Guide to the Galaxy, there's a code for PAGE blocks called INCV:

"INCV <variable> <number>
Increments a user variable by an integer (or subtracts if the number is negative)."

It sounds like a really useful bit of code for my upcoming Odyssey-based mod and my upcoming Cthulhu-based mod.

But I can't seem to make it work. Or at least events that say "INCV crewnumb 40" seem to have no impact on a item with "TEXT Your ship has <uvar=crewnumb> crewmen on board."

I've searched the files of the main game trying to find an example of how to use it, and _if_ there's INCV code in action, and it's not in the mission, game, damocles quest, kawangi quest, or any of the dv_whatever items. And I'm pretty sure it's not hidden in any of the normal see-them-almost-every-game quests.

Does INCV actually do anything?
Does it really exist?
Does it only work if you're running the 1.22 patch?

Has anyone had any luck using the INCV code?

Fingers September 14th, 2007 06:30 PM

Re: Does INCV actually do anything?
 
The INCV command was introduced in v1.2 (1.22 for mac). The Ravian encounter (brood2) uses it to keep track of how many ravian fleets you've destroyed. Before you can use this command, you must set the variable with a SVAR command.

sgqwonkian September 15th, 2007 10:54 AM

Re: Does INCV actually do anything?
 

Thank you, Fingers! You just saved me a ton of trouble. Now I can make some real progress on my Oddyssey and Cthulhu mods. I'd been hammering out a work-around that involved painful amounts of CONDITION blocks, and now I can just INCV my way along easily. Should have known it was part of the patch.

Thanks again!


All times are GMT -4. The time now is 03:03 AM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©1999 - 2025, Shrapnel Games, Inc. - All Rights Reserved.