Novahq.net Forum

Novahq.net Forum (https://novahq.net/forum/index.php)
-   Delta Force (https://novahq.net/forum/forumdisplay.php?f=101)
-   -   [DFX2] PL00P ya G00P's (https://novahq.net/forum/showthread.php?t=46762)

MERMITE 07-09-2012 02:05 PM

PL00P ya G00P's
 
'ere we go again....wac, wac! (JOE./DFX2 only)

This information was passed to me, from an Abo deep in the Aussie outback, who got it of a passing satellite ("headless horseman") i'm gonna get shot 4that..lol

Understand these are vital wac commands, if like me, map WITHOUT using events, they suc anyway, but you can still use 'em even with events

GLOOP:run:
The gloop is a procedure that will cause a looping sequence within the
code. The syntax of a gloop will start with the keyword gloop followed
immediately by the group name and conclude with the keyword end. It is
used in conjunction with the keyword item to represent each of the members
of the group.
The group name can be any name that does not contain spaces and must not be the same as a keyword.
When a gloop is reached any conditions and statements within the gloop
will cycle through for each of the members in the group until all have been
checked and/or acted upon, before the sequential continuation of the wac
code. In other words, the wac codes linear progression through the code is
broken as though a subroutine that must check each member of the group before returning back to the remainder of the wac codes linear sequence.

Maximum group name can be up to 22 characters

Syntax:

gloop groupname
if conditions containing item then
actions containing item
endif
end
Or
if conditions then
gloop groupname
actions containing item
end
endif
Example:
if never then
gloop mygroup
ssnmax(item,300)
end
endif
This code will set the members of the group named mygroup to have vision
range of 300 meters.
What the loop does is holds the internal number of each of the members of the group in turn, in the keyword item for each of the members of the group
until all members have been acted on, before the continuation of the
remaining wac code.


continue:

MERMITE 07-09-2012 02:25 PM

continue
 
seems to be a word limit on here or those words are a lot more powerful than I thought

Guest001 07-09-2012 09:17 PM

Does this mean I can command that all members of a group have to be present in area10 before wac execute?(instead of the default any Group1 member in area10 triggers)

ArmaRing 07-10-2012 01:50 AM

hi
 
hay MERMITE have you tryed out the new mod for Joint ops if not see us at

http://www.dfusa.net

sine up and download the mod you can do what ever you want with a wac it is running off of the 1.7.5.7 .exe

MERMITE 07-10-2012 01:09 PM

Quote:

Originally Posted by ArmaRing (Post 378113)
hay MERMITE have you tryed out the new mod for Joint ops if not see us at

http://www.dfusa.net

sine up and download the mod you can do what ever you want with a wac it is running off of the 1.7.5.7 .exe

Hijacking posts and Spamming is an illegal, activity here as well as other internet sites
As this thread is concerned with DFX2 please post your concerns under it's correct heading
thank you

"M"

Guest001 07-10-2012 01:13 PM

The excitement of creation overcomes our friend "M" forgive him.

MERMITE 07-10-2012 01:15 PM

Allow me to re-iterate:

GLOOP -> Named Group Loop
Don't use group commands,group commands don't work, don't use space in your group name.
GLOOP can't work with *.bms files. bms files don't know any group name. (btw. bms don't know names at all)
with GLOOP you are be able to do much more then with group commands.

- GLOOP group actions(item) END

CODE
GLOOP group
if condition
actions(item)
end condition
END

or a 'secret' vid:

here:http://www.nlh.dfreload.com/div/coding/coding.htm

Guest001 07-10-2012 01:24 PM

Can you give me a working example? I am having trouble grasping the syntax.

Guest001 07-26-2012 09:19 PM

:spam: @ArmaRing

Have you tried making the setup as so;


Set the installer to create shortcut parameters which point to the default game folder with these switches-


"C:\Program Files\Novalogic\Delta Force Xtreme 2\dfx2.exe" /mydfusamod dfusa


This points to the newly installed folder mydfusamod and reads the pff file dfusa.

Use any free compiler for the installer and use ravens pff tools to create and pack the pff.

you may need 2 (pff files) if you enable editing of the mods ie

med.pff.

you can change menu screens and and game sounds if you wish.



This is a less risky install for users (also your exe for your mod is too big and causes lagging on external drives)

Doing it this way it uses the DFX(2) exe to run which is (legal)


All times are GMT -5. The time now is 04:02 AM.

Powered by vBulletin®