Author Topic: Script Core Suggestions  (Read 85673 times)

0 Members and 1 Guest are viewing this topic.

Offline ~Niko~

  • Rainbow Warrior
  • *****
  • Posts: 2410
Re: Script Core Suggestions
« Reply #180 on: August 18, 2009, 04:18:53 pm »
procedure DoHeal(ID: Byte; HealPoints: Integer)
I guess that I could do this for ya.

When I find some spare time.

Offline Serial K!ller

  • Camper
  • ***
  • Posts: 408
    • Soldat Mods Archive
Re: Script Core Suggestions
« Reply #181 on: August 31, 2009, 03:24:39 pm »
Event
function OnplayerBonus(ID : byte ;BonusType : byte) : boolean;

f.e.:

Code: [Select]
Function OnplayerBonus(ID,BonusType);

  If BonusType = 1 then begin
     customBonus(ID);
     result := false;
  end
  else begin
     result := true;
  end;

end;

[edit]
Fixed to function :p
« Last Edit: August 31, 2009, 04:56:19 pm by Serial K!ller »

Offline ~Niko~

  • Rainbow Warrior
  • *****
  • Posts: 2410
Re: Script Core Suggestions
« Reply #182 on: August 31, 2009, 04:46:24 pm »
procedures can't hold results, serialkiller

function OnplayerBonus(ID,BonusType): Boolean; //this would do the trick

Offline Serial K!ller

  • Camper
  • ***
  • Posts: 408
    • Soldat Mods Archive
Re: Script Core Suggestions
« Reply #183 on: September 10, 2009, 02:41:19 pm »
spawnCustomBonus(PosX,PosY,CustombonusIDtype,"\downloads\mytext.bmp")

and

OnplayerCustomBonus(ID : byte ;BonusType : byte) : boolean;

Offline miketh2005

  • Soldat Beta Team
  • Flagrunner
  • ******
  • Posts: 668
  • What's the URL for www.microsoft.com?
Re: Script Core Suggestions
« Reply #184 on: September 10, 2009, 04:07:05 pm »
spawnCustomBonus(PosX,PosY,CustombonusIDtype,"\downloads\mytext.bmp")

and

OnplayerCustomBonus(ID : byte ;BonusType : byte) : boolean;

Instead of adding this, I think, if possible, he should add a way to spawn custom pictures.
Quote from: 'Ando.' pid='12999178' dateline='1309046898'
My new password is secure as shit :)
Mate, I am not sure Shit is even secured nowadays.

Offline xmRipper

  • Soldat Beta Team
  • Flagrunner
  • ******
  • Posts: 742
    • Personal
Re: Script Core Suggestions
« Reply #185 on: September 10, 2009, 04:41:59 pm »
Instead of adding this, I think, if possible, he should add a way to spawn custom pictures.
I hope new scripting core will support this.

(...extra map features to provide exciting new gameplay elements, vastly improved interface customization via server-side scripting, truckloads of new Script Core features...)
Co-Founder / CTO @ Macellan
Founder Turkish Soldat Community

Offline miketh2005

  • Soldat Beta Team
  • Flagrunner
  • ******
  • Posts: 668
  • What's the URL for www.microsoft.com?
Re: Script Core Suggestions
« Reply #186 on: September 10, 2009, 04:49:57 pm »
Instead of adding this, I think, if possible, he should add a way to spawn custom pictures.
I hope new scripting core will support this.

(...extra map features to provide exciting new gameplay elements, vastly improved interface customization via server-side scripting, truckloads of new Script Core features...)

EXACTLY! That will GREATLY improve Soldat gameplay. I want to make a Soldat RPG, which I think will do very nicely, especially with these features implemented.
Quote from: 'Ando.' pid='12999178' dateline='1309046898'
My new password is secure as shit :)
Mate, I am not sure Shit is even secured nowadays.

Offline rayanaga

  • Soldier
  • **
  • Posts: 143
  • ~Fur flying~
    • Kryonex
Re: Script Core Suggestions
« Reply #187 on: September 11, 2009, 04:05:43 pm »
Yeah, something like  DrawImage("\downloads\ExtraInterface.png", x, y, scale, rotation, color)

I only vote for having more then one DrawText method up at a time. I dunno how much work this would require though.
[kY] Kryonex - Your local zombie fanatics.
http://www.kryonex.com/

Offline miketh2005

  • Soldat Beta Team
  • Flagrunner
  • ******
  • Posts: 668
  • What's the URL for www.microsoft.com?
Re: Script Core Suggestions
« Reply #188 on: September 11, 2009, 10:26:29 pm »
Also, changing playing movement speed is much needed.

P.S. I like love your new avatar, raya :D
Quote from: 'Ando.' pid='12999178' dateline='1309046898'
My new password is secure as shit :)
Mate, I am not sure Shit is even secured nowadays.

Offline rayanaga

  • Soldier
  • **
  • Posts: 143
  • ~Fur flying~
    • Kryonex
Re: Script Core Suggestions
« Reply #189 on: September 12, 2009, 09:08:41 am »
Also, changing playing movement speed is much needed.

P.S. I like love your new avatar, raya :D

Thank you. :D

Yeah, SetPlayerStat(ID,'Velx') or something would be very nice.
[kY] Kryonex - Your local zombie fanatics.
http://www.kryonex.com/

Offline |_ancer

  • Soldier
  • **
  • Posts: 153
  • again and again.
Re: Script Core Suggestions
« Reply #190 on: September 13, 2009, 02:59:28 am »
It'll be awesome to mock someone so I suggest this.
This basically forces a player to say something.

ForceSay(ID: byte; Text: String);

Offline croat1gamer

  • Veteran
  • *****
  • Posts: 1327
  • OMG CHANGING AVATAR!!! ^ω^
Re: Script Core Suggestions
« Reply #191 on: September 13, 2009, 03:31:31 am »
Last year, I dreamt I was pissing at a restroom, but I missed the urinal and my penis exploded.

Offline |_ancer

  • Soldier
  • **
  • Posts: 153
  • again and again.

Offline Serial K!ller

  • Camper
  • ***
  • Posts: 408
    • Soldat Mods Archive
Re: Script Core Suggestions
« Reply #193 on: September 13, 2009, 04:23:45 pm »
getplayerstat(ID,'ammo2': Byte) returns secondary weapon ammo

procedure ForceWeapon(ID, Primary, Secondary, Ammo, Ammo2: Byte)  can set both primary and secondary weapons ammo

Offline Tio R

  • Major(1)
  • Posts: 12
Re: Script Core Suggestions
« Reply #194 on: September 15, 2009, 09:00:05 am »
function GetPlayerStat(ID ,'admin'):boolean
obvious...

function GetPlayerStat(ID,'resolution'):string
return the resolution of player. Ex: '640x480'

procedure SetDeath(ID:byte; Death:integer)
set the players death to a new value.

procedure SetFlagScore(ID:byte; FlagScore:integer)
set the players score to a new value.

Offline croat1gamer

  • Veteran
  • *****
  • Posts: 1327
  • OMG CHANGING AVATAR!!! ^ω^
Re: Script Core Suggestions
« Reply #195 on: September 15, 2009, 09:08:33 am »
It would be useful, but has been suggested.

Resolution is kind off useless, isnt it?

GetPlayerStat(ID,'Deaths') := *NUMBER GOES HERE*

For setting how much caps would the player have? I think it is possible via GetPlayerStat(ID,'Flags') := *NUMBER GOES HERE*



For any other suggestions, take first a look here: http://enesce.com/help/, to check that it isnt possible to do currently.

Yeh, i repeat again, i would like some options for a faster AppOnIdle similar procedure.
« Last Edit: September 15, 2009, 09:11:11 am by croat1gamer »
Last year, I dreamt I was pissing at a restroom, but I missed the urinal and my penis exploded.

Offline miketh2005

  • Soldat Beta Team
  • Flagrunner
  • ******
  • Posts: 668
  • What's the URL for www.microsoft.com?
Re: Script Core Suggestions
« Reply #196 on: September 15, 2009, 02:25:23 pm »
How about setting how long a grenade delays until it goes off?
Quote from: 'Ando.' pid='12999178' dateline='1309046898'
My new password is secure as shit :)
Mate, I am not sure Shit is even secured nowadays.

Offline Tio R

  • Major(1)
  • Posts: 12
Re: Script Core Suggestions
« Reply #197 on: September 15, 2009, 06:48:46 pm »
Resolution is kind off useless, isnt it?
No! For example, a script of rpg with a skill of flash. I use a big drawtext for cover the display of players. This go work with players of low resolution.
But for players with hight resolution. Go cover only a small area of screen.
I could set the correct size of drawtext using the player resolution.

GetPlayerStat(ID,'Deaths') := *NUMBER GOES HERE*

For setting how much caps would the player have? I think it is possible via GetPlayerStat(ID,'Flags') := *NUMBER GOES HERE*
This cause syntax error of Identifier expected. GetPlayerStat go return deaths and flags caps of player, can't change them.
Compare GetPlayerStat(ID,'Kills') with SetScore(ID, kills).
http://enesce.com/help/html/Functions/SetScore.html

Offline miketh2005

  • Soldat Beta Team
  • Flagrunner
  • ******
  • Posts: 668
  • What's the URL for www.microsoft.com?
Re: Script Core Suggestions
« Reply #198 on: September 15, 2009, 07:39:25 pm »
Resolution is kind off useless, isnt it?
No! For example, a script of rpg with a skill of flash. I use a big drawtext for cover the display of players. This go work with players of low resolution.
But for players with hight resolution. Go cover only a small area of screen.
I could set the correct size of drawtext using the player resolution.

GetPlayerStat(ID,'Deaths') := *NUMBER GOES HERE*

For setting how much caps would the player have? I think it is possible via GetPlayerStat(ID,'Flags') := *NUMBER GOES HERE*
This cause syntax error of Identifier expected. GetPlayerStat go return deaths and flags caps of player, can't change them.
Compare GetPlayerStat(ID,'Kills') with SetScore(ID, kills).
http://enesce.com/help/html/Functions/SetScore.html

Can't you just make a bigger flash that will cover all res types?
Quote from: 'Ando.' pid='12999178' dateline='1309046898'
My new password is secure as shit :)
Mate, I am not sure Shit is even secured nowadays.

Offline Serial K!ller

  • Camper
  • ***
  • Posts: 408
    • Soldat Mods Archive
Re: Script Core Suggestions
« Reply #199 on: September 16, 2009, 12:17:44 am »
I have a script where I want to align (Draw)text to the weapons in the weapon selection menu but for that to work on custom resolution I would have to know the resolution so I can scale the text down.