Aller au contenu

Photo

Verification -- no iteration structure


  • Veuillez vous connecter pour répondre
8 réponses à ce sujet

#1
sillyrobot

sillyrobot
  • Members
  • 171 messages
G'day Folks,

I haven't seen any iteration/looping structures (for-next, do-while, repeat-until, goto etc.) and I just wanted to confirm that they don't exist outside the main engine.

#2
Talian Kross

Talian Kross
  • Members
  • 239 messages
nvm

Modifié par Talian Kross, 26 novembre 2009 - 11:31 .


#3
AND04

AND04
  • Members
  • 154 messages
something like this?



for(i=0;i<10;i++)

{

// do something

}



or are you refering to global none lokal script stuff?

#4
sillyrobot

sillyrobot
  • Members
  • 171 messages

for(i=0;i

{

// do something

}


this or

while ( condition )
{
// do something
}

Do for-next's exist? That would be great news

Modifié par sillyrobot, 26 novembre 2009 - 12:08 .


#5
Garad Moonbeam

Garad Moonbeam
  • Members
  • 5 messages
the scripting language is c-based, not VB. Expect for loops definitely exist and while loops might.

#6
Sunjammer

Sunjammer
  • Members
  • 925 messages
or

do
{
    // stuff
} while(condition);

Modifié par Sunjammer, 26 novembre 2009 - 09:46 .


#7
sillyrobot

sillyrobot
  • Members
  • 171 messages
It was my mistake. My last modding environment was TES Oblivion and no iteration was supported for performance reasons.



I looked for and didn't find any examples or mention on the wiki regarding control structures other than branches (eg. if, switch).



It'll be much easier environment to work in with teh capability to loop.

#8
Gralamin

Gralamin
  • Members
  • 45 messages
You can indeed loop in Dragon Age.

#9
Sunjammer

Sunjammer
  • Members
  • 925 messages
I haven't documented the keyword yet. Soon ™