To continue the Doom experience, play the Shores of Hell and its amazing sequel, Inferno!
Skip to content
by jmickle » Mon Jan 12, 2015 4:24 am
by NeuralStunner » Sun Jan 11, 2015 8:42 pm
Gez wrote:A_Jump jumps if the random number between 0 and 255 is under the value you give it. 255 is not less than 255, so if you used 255, there is one chance in 256 that it will not jump.
by Major Cooke » Sun Jan 11, 2015 2:05 pm
by Dark-Assassin » Sun Jan 11, 2015 1:59 pm
by Gez » Sun Jan 11, 2015 1:55 pm
by Dark-Assassin » Sun Jan 11, 2015 1:53 pm
by Graf Zahl » Sun Jan 11, 2015 1:51 pm
dark-slayer-201 wrote:s before an A_Jump(255,"State"); (Obvious)
by Dark-Assassin » Sun Jan 11, 2015 1:45 pm
by Fishytza » Sun Jan 11, 2015 1:41 pm
Graf Zahl wrote:I never said that. The way this is implemented they are just regular functions.
Graf Zahl wrote:The scripting language won't allow a goto, it also won't allow A_Jump constructs, but real script syntax instead.
Code: Select all
SARG A 5 { A_Jump(50, "Roar"); //If A_Jump decides to 'jump', will the rest below still run? A_Jump(20, "Snort"); A_ActiveSound; A_Jump(100, "StandForAMoment"); A_Jump(10, "Fart"); }
by Dark-Assassin » Sun Jan 11, 2015 1:23 pm
BOSS A 0 { A_Jump(256, "AngryMissile") if ( health < 250 ) and random(0,100) <= 75; A_Jump(256, "SuperMegaUltimateMissile") unless random(0,100) >= 10 or ( health < 100 ); A_Jump(256, "Missile"); }
by Graf Zahl » Sun Jan 11, 2015 1:16 pm
by Fishytza » Sun Jan 11, 2015 12:55 pm
Major Cooke wrote:So you could do this: Code: Select allPOSS G 3 { if (health > 1) A_Jump(256,"Alive") //Or perhaps Goto Alive could work? else A_Jump(256,"Dead") //Or perhaps Goto Dead could work? }
POSS G 3 { if (health > 1) A_Jump(256,"Alive") //Or perhaps Goto Alive could work? else A_Jump(256,"Dead") //Or perhaps Goto Dead could work? }
by NeuralStunner » Sun Jan 11, 2015 11:45 am
by Major Cooke » Sun Jan 11, 2015 11:21 am
// If it's not a '{', then it should be a single action. // Otherwise, it's a sequence of actions. if (!sc.Compare("{")) { tcall->Code = ParseAction(sc, state, statestring, bag); return; }
by Major Cooke » Sat Jan 10, 2015 3:15 pm
Top