Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - ESGmaster

#1
Katana, bo, hanbo, chain with dagger at the end.
#2
Thank you, it's not fun having combat in a game without risk of injury, and it's not fun having combat with instant death.
#3
That works fine, but it still says it needs a ( on line 17, and on the combat the whenever the player kills one of the gangster the TGP_Gangsters is lowered by one.
if  (TGP_Gangsters > 0)
    {
    cGANGTGP1.Animate (4, 3, eRepeat, eNoBlock, eForwards);
    cGANGTGP2.Animate (4, 3, eRepeat, eNoBlock, eForwards);
    SetTimer (1, 220);
    }
    if bool IsTimerExpired (1, timer1){
    Player_Health = Player_Health - 10;
    SetTimer (1, 220);
    Display ("Ouch, Hurry the hell up");
   

#4
I belive that will work expest it says it needs a ( on line 17 but there's already one. Sorry, but I am very bad at coding.
9 function room_RepExec()
10 {
11 if  (TGP_Gangsters > 0)
12    {
13    cGANGTGP1.Animate (4, 3, eRepeat, eNoBlock, eForwards);
14    cGANGTGP2.Animate (4, 3, eRepeat, eNoBlock, eForwards);
15    SetTimer (1, 220);
16    }
17    if (IsTimerExpired);
18    Player_Health = Player_Health - 10;
19    SetTimer (1, 220);
20    Display ("Ouch, Hurry the hell up");
21 } 
}
#5
I'm working on a combat system, I have the animation working with repeatly execute, but when I have the player's health - 10 on it I end up with health ending up in the
-thousands, I havn't gotten the death when reaching 0 yet, I think players won't like dying in 0.10 seconds.
#6
As in when the player wants to go to another city (or has completed all they can do for right now.) they have their guns taken from them and stored in a chest in the airport for when they come back to that city.
#7
Yes, the player uses many guns through out the game, aleast 4 per city with about 5 cities total.
#8
As in when a player uses a airplane to move to city to city how do I have the airport customs take the players guns?
#9
Thanks, I should have known that.
#10
How do I change it? I tried using dialog.SetOptionState inside the dialog but it says  it's a unknown command. I used to know it, but with the new version I don't.
#11
I made a mistake in the variable I said it was Ruger_P94_Ammo it was RUGER_P94_Ammo.
Sorry, I'm an idiot.
Thanks, I was looking for something hard and it was in plain sight. (as in The Purloined Letter.)
#12
Sorry, I don't know anything about coding.
It says that there's an undefined token 'Ruger_P94_Ammo' (sorry I am horrid at coding.)

function iRUGERP94_UseInv() {
if (player.ActiveInventory == i9mmclip10) {
    Ruger_P94_Ammo = Ruger_P94_Ammo + 10;
    player.LoseInventory(i9mmclip10);
  }
  else {
    Display("No");
  }
}
#13
I tried it before, but I set it back. (I am not good at coding.)
Now it says it cannot convert 'int' to InventoryItem.

function iRUGERP94_UseInv() {
  if (player.ActiveInventory.ID == i9mmclip10) {
    Ruger_P94_Ammo = Ruger_P94_Ammo + 10;
    player.LoseInventory(i9mmclip10);
  }
  else {
    Display("No");
  }
}
#14
That worked but it says there's A parse error on line 550, which is the if line.
I don't know that much about coding.
function iRUGERP94_UseInv() {
  if (player.ActiveInventory.ID = i9mmclip10) {
    Ruger_P94_Ammo = Ruger_P94_Ammo + 10;
    player.LoseInventory(i9mmclip10);
  }
  else {
    Display("No");
  }
}
#15
Thanks, as you can tell I am bad at scripting.
EDIT:Sorry it has A error. (and I made A error before with the item)
function iRUGERP94_UseInv()
{
  if (player.ActiveInventory.Name=i9mmclip10);
  {
     Ruger_P94_Ammo = Ruger_P94_Ammo + 10;
     player.LoseInventory (i9mmclip10);
  }
   else Display ("No");
}
#16
That worked unfortunely I have another problem.
It saids there's A parse error on line 550
I don't know what's wrong here's the script:
function iRUGERP94_UseInv()
{
if (player.ActiveInventory.ID == Ruger_P94_Ammo)
{
Ruger_P94_Ammo = Ruger_P94_Ammo + 10;
player.LoseInventory (i9mmclip10)
}
else Display ("No")
}
#17
How do I change A global variable?
The game I'm working on requires the item to use the global variables to reload the guns.
Everytime I try to change it by:
Ruger_P94_Ammo + 10
And it says it is already set.
SMF spam blocked by CleanTalk