Author Topic: Flags  (Read 3147 times)

0 Members and 1 Guest are viewing this topic.

Offline Patrick

Flags
« on: July 28, 2002, 09:24:40 PM »
When you are putting flags in, how do you strategically put them into the Logic.

Because I have a flag ,104,  that I want to have achanged view under, and a changed text under, and an erased view under.

So it is like this in a nutshell

Said...print...print...get i9...erase o2...change view 36 to loop 1... THEN... I want it to stay erased o2, new text,changed view loop. But I am not really that experianced with flags enough to know what to do about this.


Do you put

if(said("...")) {
 print("...");
 print("...");
if(isset(f104)) {
 print("...");
}
 else {
 print("...")
 set.loop(o1,1);
 erase(o2);
 set(f104);
}
if(f104);
 set.loop(o1,1);
 erase(o2);
}


would this in a nutshell be correct, or did I mess up by setting f104 or by putting in isset 104?

 ??? I really have no idea  ???


Thanks to who can help me!

SMG240
« Last Edit: July 28, 2002, 09:25:36 PM by smartguy240 »




Joey

  • Guest
Re:Flags
« Reply #1 on: July 29, 2002, 06:56:06 AM »
Alright. I think you have it right except for one thing. First of all, i bvelieve you can do isset, but it is faster to type in by doing if(f104){
Then at the end you are using f104 again. I think you can only use a flag for one thing. It should be like this:

if(said("...")) {
print("...");
print("...");
if(f104){
print("...");
}
else {
print("...")
set.loop(o1,1);
erase(o2);
set(f104);
}
if(f104){
set.loop(o1,1);
erase(o2);
}


or:

if(said("...")) {
print("...");
print("...");
if(f104){
print("...");
}
else {
print("...")
set.loop(o1,1);
erase(o2);
set(f104);
set(f105);
}
if(f105){
set.loop(o1,1);
erase(o2);
}

Try both of these. If they 1 doesnt work, try the other. But in the first one you did if(f104);
i changed that to if(f104){
thats what you need. If none of these codes work reply again for help.


SMF 2.0.19 | SMF © 2021, Simple Machines
Simple Audio Video Embedder

Page created in 0.026 seconds with 16 queries.