Castle Paradox Forum Index Castle Paradox

 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 Gamelist   Review List   Song List   All Journals   Site Stats   Search Gamelist   IRC Chat Room

Altering foemap with scripting
Goto page Previous  1, 2
 
Post new topic   Reply to topic    Castle Paradox Forum Index -> HELP!
View previous topic :: View next topic  
Author Message
JSH357




Joined: 02 Feb 2003
Posts: 1705

PostPosted: Wed Sep 05, 2007 1:02 pm    Post subject: Reply with quote

DB, I made a small syntax error in that code earlier (but I just fixed it). It SHOULD work now, though I haven't tested it.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
TMC
On the Verge of Insanity




Joined: 05 Apr 2003
Posts: 3240
Location: Matakana

PostPosted: Wed Sep 05, 2007 7:46 pm    Post subject: Reply with quote

Say what?
The first argument to the script isn't useless, assuming that you want to disable whole formation sets at a time depending on a tag. The first argument is a random formation from that formation set, so there's no need for the script to know about which sets are in the formation set in this case.

Also, Camdog, fightformation takes a formation as argument, not a formation set.

Code:

script,battlescript,form,formset,begin

variable(thetag)

switch(formset)
do(
case(1,2,3) do( thetag := 18 )
case(7) do( thetag:=19 )
)

if(checktag(thetag)==off )
then(fightformation(form))

end

_________________
"It is so great it is insanely great."
Back to top
View user's profile Send private message Send e-mail
JSH357




Joined: 02 Feb 2003
Posts: 1705

PostPosted: Wed Sep 05, 2007 8:04 pm    Post subject: Reply with quote

hahaha, wow. I didn't notice it went so far as to pass the actual random formation in. Uh, at least give me credit for those awesome variable names?
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Camdog




Joined: 08 Aug 2003
Posts: 606

PostPosted: Thu Sep 06, 2007 5:49 am    Post subject: Reply with quote

The Mad Cacti wrote:
Also, Camdog, fightformation takes a formation as argument, not a formation set.


Huh? When did I say otherwise?
Back to top
View user's profile Send private message
TMC
On the Verge of Insanity




Joined: 05 Apr 2003
Posts: 3240
Location: Matakana

PostPosted: Thu Sep 06, 2007 6:52 am    Post subject: Reply with quote

The code snippet you gave implied it.
_________________
"It is so great it is insanely great."
Back to top
View user's profile Send private message Send e-mail
Camdog




Joined: 08 Aug 2003
Posts: 606

PostPosted: Thu Sep 06, 2007 7:07 am    Post subject: Reply with quote

Well, that wasn't intentional. I was just giving a random example; the numbers in fight formation weren't intended to correlate with formation sets.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Castle Paradox Forum Index -> HELP! All times are GMT - 8 Hours
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You can post new topics in this forum
You can 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


Powered by phpBB © 2001, 2005 phpBB Group