AEons of Death

Forum to the ZDoom Mod AEoD / AEons of Death by DBThanatos
 
HomeFAQSearchRegisterLog in
Latest topics
» No music in a specific situation
Fri Apr 14, 2017 5:06 pm by siealex

» [6.07b1] Incorrect item counting
Tue Apr 11, 2017 4:21 pm by siealex

» [WIP]Happy Time Circus 2: V4 Pre-release 2
Fri Apr 07, 2017 11:23 pm by Major Cooke

» AEoD 6.07 Beta 1 Released!
Fri Apr 07, 2017 9:07 pm by Major Cooke

» AEoD 6.06.2 Released!
Mon Apr 03, 2017 8:30 am by Michaelis

» AEoD Music Thread
Sat Apr 01, 2017 6:23 am by Michaelis

» Discord Channels
Wed Mar 08, 2017 9:53 pm by Major Cooke

» super shotgun causes GZDoom to crash
Wed Nov 16, 2016 10:57 pm by Major Cooke

» Nothing visible
Fri Nov 11, 2016 10:27 am by Thefunny711

Search
 
 

Display results as :
 
Rechercher Advanced Search
Who is online?
In total there are 3 users online :: 0 Registered, 0 Hidden and 3 Guests

None

Most users ever online was 65 on Wed Nov 30, 2011 12:47 am

Share | 
 

  666.WAD

View previous topic View next topic Go down 
AuthorMessage
jd
Gibs and Guts
Gibs and Guts
avatar

Posts : 7
Join date : 2010-11-08

PostSubject: 666.WAD   Mon Nov 15, 2010 12:01 pm

as title says..

Code:


script 666 enter
{
   if (checkinventory("health") > 0 && checkinventory("health") < 100)
   {
      giveinventory("healthbonus",1);
      delay(17);
      restart;
      }
   else
      {
      delay(1);
      restart;
      }
}


will it work? Question

NOTE: i wrote this from scratch this is not affiliated in any way with aeod so if it makes your computer explode its your problem Very Happy

*EDIT* thanks DBT for the tip!

for fun i created a wad which incorporates infinite health, infinite blue armor protection,
instant ammo regeneration, all weapons, and the power of the superweapons8 dehacked.
tested works fine with utimate doom, doom2, final doom (tnt and plutonia)
should work fine with all wads that does not replace standard weapon actors

download link

Code:

http://www.mediafire.com/?vijkbou8t88rke3



Last edited by jd on Mon Nov 15, 2010 3:45 pm; edited 1 time in total
Back to top Go down
DBThanatos
Developer
Developer
avatar

Posts : 4018
Join date : 2008-09-03
Location : Beyond the unholy grave; Altering the future.

PostSubject: Re: 666.WAD   Mon Nov 15, 2010 1:19 pm

I dont think it will. Instead of "ChekInventory" try with GetActorProperty, and from there you can check health.

Also, I'd recommend to use "while" instead of "if". In that way you even save a couple lines

Should be something like

Code:
script 666 enter
{
  while(1)
  {
      while (GetActorProperty(0,APROP_Health)> 0 && GetActorProperty(0,APROP_Health) < 100)
      {
        giveinventory("healthbonus",1);
        delay(16);      //16 instead of 17 because is always going to wait one tic outside this "while"
      }
      delay(1);
  }
}

_________________

DBT AKA "Jesus the pimp" - Major Cooke
"02:37 p.m. - DBThanatos runs around like a little girl"
"Because now, all you see in AEoD was either ripped, processed and/or coded by the AEoD team (or direct contributions FOR AEoD). It might be a ripfest, but is OUR ripfest." -DBT about AEoD v6
"Seven sixteenths of one inch: That's the distance you'd have to move your pinky in order to not sound like an idiot." - maddox
"What I talk about is Doom, because in the end, Doom is all that counts." - Stephen King
"In offline gaming we trust" -DBT & MC


Spoiler:
 
Back to top Go down
 
666.WAD
View previous topic View next topic Back to top 
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
AEons of Death :: Non AEoD related :: Off Topic Talk-
Jump to: