War Master Posted January 4, 2003 Share Posted January 4, 2003 I want to declare a variable and have it increment by 1 after each of 4 specific actions have taken place. I need to test through an "if statement" if these actions are done to make the objective complete. Can you do nested "if statements"? If there's another way to do this please reply. Link to comment Share on other sites More sharing options...
Wudan Posted January 5, 2003 Share Posted January 5, 2003 This is why we need a coding forum. You posted this in the Mapping Forum, and it's supposed to go in the coding forum. Link to comment Share on other sites More sharing options...
Wudan Posted January 5, 2003 Share Posted January 5, 2003 Oops - I mean GENERAL EDITING. Because it's not like coding is hard to do, and it really should be lumped in with models and skins, which are also hard to do. Link to comment Share on other sites More sharing options...
War Master Posted January 6, 2003 Author Share Posted January 6, 2003 I'm not talking about C++ programming. Scripting is an important part of sp level creation. I've helped and received help with scripts on this forum for quite a while. I've already figured out how to increment floats with BehavED by the way. Link to comment Share on other sites More sharing options...
Dragarius Posted January 7, 2003 Share Posted January 7, 2003 Although scripting is coding of a form and the 'forum rules' list it as belonging in General Editing, I think most scripting is more appropriate for this forum. It can be an important part of issues discussed here (i.e. how do I make my map do this?) I've gone to General Editing for help on my scripts and find that most discussion is modeling and total conversion. (i.e. how do I make my lightsaber look like a pumpkin?) I also see a bias in most forums toward MP which doesn't use any scripting. Perhaps another forum just for us (SP scripting) weirdos would help. Link to comment Share on other sites More sharing options...
War Master Posted January 7, 2003 Author Share Posted January 7, 2003 I strongly believe scripting should be in the mapping forum. Those who haven't made sp maps probably can't relate to what I'm saying. A func_static is pretty much useless without a script. What if you wanted a collapsing bridge in your map, it won't look realistic as a func_plat, you need to script the brushes to fall in a certain manner. ref_tags and target_scriptrunners aren't in Radiant for decoration. Scripting can take your map to a higher level by adding more variations and possibilities. Link to comment Share on other sites More sharing options...
Wudan Posted January 8, 2003 Share Posted January 8, 2003 Well, enough about forum talk and what belongs where. I though that you meant coding when you said you wanted to increment a float variable, which is done in code. BUT, I don't know how to do this in ICARUS. I'm sorry I caused a ruckus. Link to comment Share on other sites More sharing options...
War Master Posted January 8, 2003 Author Share Posted January 8, 2003 To increment in ICARUS you just need to put a +1 after your variable like this set ( "rotation_count", "+1" ); Link to comment Share on other sites More sharing options...
Dragarius Posted January 9, 2003 Share Posted January 9, 2003 The 'Rules' post states: Scripting is NOT coding and should go into General Editing This is that part I have an issue with. And I understand that War Master has found a solution to his problem, but still General Editing seems like an odd place for scripting as I previously posted. Link to comment Share on other sites More sharing options...
Emon Posted January 9, 2003 Share Posted January 9, 2003 ICARUS is a very simplistic programming language. You use it to program NPC behavior, advanced objectives, etc. It is coding. Link to comment Share on other sites More sharing options...
War Master Posted January 9, 2003 Author Share Posted January 9, 2003 Nevertheless it should go with mapping. These forums should be reorganized. The general editing forum is a complete mess. Link to comment Share on other sites More sharing options...
Dragarius Posted January 9, 2003 Share Posted January 9, 2003 Agreed! A complete mess. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.