Project Perfect Mod Forums
:: Home :: Get Hosted :: PPM FAQ :: Forum FAQ :: Privacy Policy :: Search :: Memberlist :: Usergroups :: Register :: Profile :: Log in to check your private messages :: Log in ::


The time now is Fri Apr 19, 2024 9:28 pm
All times are UTC + 0
"loop ... until" script possible?
Moderators: Global Moderators, Tiberian Sun Moderators
Post new topic   Reply to topic Page 1 of 1 [6 Posts] Mark the topic unread ::  View previous topic :: View next topic
Author Message
Lin Kuei Ominae
Seth


Joined: 16 Aug 2006
Location: Germany

PostPosted: Thu Sep 06, 2012 2:19 pm    Post subject:  "loop ... until" script possible? Reply with quote  Mark this post and the followings unread

Is it possible to create some kind of "loop until" script for units?
e.g.
[my unit script]
1=loop
2=guard area
3=flash unit
4=scatter
5=until "condition" ;e.g. until local variable set
6=move to waypoint
7=move to waypoint
8=jump to line 1

_________________
SHP Artist of Twisted Insurrection:  Nod buildings

Public SHPs
X-Mech Calendar (28 Mechs for GDI and Nod)
5 GDI, 5 Nod, 1 Mutant, 1 Scrin unit, 1 GDI building

Tools
Image Shaper______TMP Shop______C&C Executable Modifier

Back to top
View user's profile Send private message
Mig Eater
Defense Minister


Joined: 13 Nov 2003
Location: Eindhoven

PostPosted: Thu Sep 06, 2012 2:38 pm    Post subject: Reply with quote  Mark this post and the followings unread

The only thing that comes close is script 49; repeat until success but I doubt you can get the results you want with that.

_________________



Back to top
View user's profile Send private message Visit poster's website ModDB Profile ID YouTube User URL Facebook Profile URL Twitter Channel URL
Graion Dilach
Defense Minister


Joined: 22 Nov 2010
Location: Iszkaszentgyorgy, Hungary

PostPosted: Thu Sep 06, 2012 2:42 pm    Post subject: Reply with quote  Mark this post and the followings unread

6, Jump to Script line?

_________________
"If you didn't get angry and mad and frustrated, that means you don't care about the end result, and are doing something wrong." - Greg Kroah-Hartman
=======================
Past C&C projects: Attacque Supérior (2010-2019); Valiant Shades (2019-2021)
=======================
WeiDU mods: Random Graion Tweaks | Graion's Soundsets
Maintainance: Extra Expanded Enhanced Encounters! | BGEESpawn
Contributions: EE Fixpack | Enhanced Edition Trilogy | DSotSC (Trilogy) | UB_IWD | SotSC & a lot more...

Back to top
View user's profile Send private message Visit poster's website ModDB Profile ID
RP
Commander


Joined: 12 Jul 2012
Location: Mapping God Heaven

PostPosted: Thu Sep 06, 2012 2:59 pm    Post subject: Re: "loop ... until" script possible? Reply with quote  Mark this post and the followings unread

Lin Kuei Ominae wrote:

5=until "condition" ;e.g. until local variable set


If you want the team to stop whatever they are doing when the local is set, just use Action 5-Destroy team, that should suffice. All units will be recruitable again

_________________


Mental Omega 3.0 Mission creator - Creator of FinalOmega: APYR 3.0 Map Editor

/ppm/'s stupidity

Back to top
View user's profile Send private message
Crimsonum
Seth


Joined: 14 Jul 2005
Location: Fineland

PostPosted: Thu Sep 06, 2012 3:15 pm    Post subject: Reply with quote  Mark this post and the followings unread

No, he wants the team to continue their script once the Local is set.

I believe you must create two different scripts, one that terminates after 4=scatter, and one that is assigned to the team once the local is set via a specific trigger. I've always used the Group value to recruit certain units, so the AI won't just randomly pick from available units.

_________________


Back to top
View user's profile Send private message
RP
Commander


Joined: 12 Jul 2012
Location: Mapping God Heaven

PostPosted: Thu Sep 06, 2012 3:48 pm    Post subject: Reply with quote  Mark this post and the followings unread

I meant it as a condition, you can remove
'5=until "condition" ;e.g. until local variable set ' and make a trigger.
Once the local variable is set, the trigger destroys the team.
So, if condition is true, destroy team

_________________


Mental Omega 3.0 Mission creator - Creator of FinalOmega: APYR 3.0 Map Editor

/ppm/'s stupidity

Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [6 Posts] Mark the topic unread ::  View previous topic :: View next topic
 
Share on TwitterShare on FacebookShare on Google+Share on DiggShare on RedditShare on PInterestShare on Del.icio.usShare on Stumble Upon
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © phpBB Group

[ Time: 0.1414s ][ Queries: 11 (0.0083s) ][ Debug on ]