Hi, besides some fixes to my previous maps I currently work on another one. Its name is "Smuggler Joe Hates You All" and is ment to be a bossfight. The main difficulty is that I can't give cpu bossy feature like extremely quick regeneration and/or enormous health. I've tried to adapt ShutDownMan's script for regen and somebody's "superbot" script but failed to make them working in my map. I would ask a scripter for help with this task.
Here is the link for map template:
http://www.mediafire.com/download/4upa3 ... hya01.sfdm
It's an early version and doesnt represent the intended final result. Person whose help I'll use, is going to receive a credit as a co-maker.
This forum is locked and will eventually go offline. If you have feedback to share you can find us in our Discord channel "MythoLogic Interactive" https://discord.gg/nECKnbT7gk
Forum rules
Forum rules
Need help making cpu bossy.
Forum rules
By using the forum you agree to the following rules.
By using the forum you agree to the following rules.
- Motto73
- Superfighter

- Posts: 316
- Joined: Mon May 09, 2016 7:35 am
- Title: Lazy ass
- SFD Account: Motto73
- Started SFD: Multiplayer Test Demo
- Location: Sunny City
- Gender:
- Age: 26
So, you can make a script that sets the boss' health to what you want to.
You can't set a player's health more than 100. So you have to add set the health via scritp every time it loses health.
By the way, I have a boss in my adventure map Motion, which uses fast regeneration so he cant even burn to death. It works fine if you want to set the health to a uninitialized value.Then you need to use fast attacks and strategy to win it. If you have a set value then you can just camp all night long killing the boss.
Here is an easy way to make this method called:
Code: Select all
public float Hp=4000;// Example amount
public IPlayer boss;// Set the boss first, and have a script that decreases the health.
public void bossHealth(TriggerArgs args){ //Call this like every 10 - 20 ms
if(Hp>=100){
boss.SetHealth(100f);
}
else boss.SetHealth(Hp);
}
By the way, I have a boss in my adventure map Motion, which uses fast regeneration so he cant even burn to death. It works fine if you want to set the health to a uninitialized value.Then you need to use fast attacks and strategy to win it. If you have a set value then you can just camp all night long killing the boss.
Here is an easy way to make this method called:
Code: Select all
public void OnStartup(){
CreateTimer(20,0,"bossHealth","");
}
public void CreateTimer(int interval, int count, string method, string id) {
IObjectTimerTrigger timerTrigger = (IObjectTimerTrigger)Game.CreateObject("TimerTrigger");
timerTrigger.SetIntervalTime(interval);
timerTrigger.SetRepeatCount(count);
timerTrigger.SetScriptMethod(method);
timerTrigger.CustomId = id;
timerTrigger.Trigger();
}
0 x

- Kawabanga
- Superfighter

- Posts: 69
- Joined: Sat Mar 19, 2016 10:36 pm
- Title: Epic fails amateur.
- SFD Alias: My name is Kawa-bbanggza!!
- Started SFD: Late 2015
- Location: Poland
- Gender:
Tried hard to implement these scripts to my map, but codding isn't my thing (and it won't be, I'm just too old and busy to focus on learning it). It would be great if you (or somebody) could have a look into my map and make it working.
0 x
-
Armadyl5
- Superfighter

- Posts: 119
- Joined: Sun Mar 20, 2016 9:50 am
- Started SFD: 1.2.1
- Gender:
- Age: 27
extremely quick regeneration , Check .
enormous health , Check .
http://www.mediafire.com/download/h4ypi ... hya01.sfdm
enormous health , Check .
http://www.mediafire.com/download/h4ypi ... hya01.sfdm
0 x
Never Surrender !
Always Fight For Your Rights , and Don't Let Your Friends Down .
Always Fight For Your Rights , and Don't Let Your Friends Down .