ID:150879
 
First, I'd like to thank you for taking the time to read this, and now my two problems. I just started making a BYOND game about two days ago and while searching for a BYOND game to play I came across one, where when you talked to a NPC, the text would be in a pop-up and not in the text section. You would proceed by clicking a button that said "Ok".
Does anyone know how to do that?Any advice would be much appriciated. Now my second problem is with a combat system. I looked a Deadron's battle system example and I want to make it so you double-click to attack. I have no idea where to enter the "Dblclick()" code if that is what i should use at all. Please help if you can. Thank you again.
On 7/11/01 5:24 pm SSTrunks7 wrote:
First, I'd like to thank you for taking the time to read this, and now my two problems. I just started making a BYOND game about two days ago and while searching for a BYOND game to play I came across one, where when you talked to a NPC, the text would be in a pop-up and not in the text section. You would proceed by clicking a button that said "Ok".
Does anyone know how to do that?Any advice would be much appriciated. Now my second problem is with a combat system. I looked a Deadron's battle system example and I want to make it so you double-click to attack. I have no idea where to enter the "Dblclick()" code if that is what i should use at all. Please help if you can. Thank you again.

Can't help you with Deadron's stuff, but check the Alert() and Input() entries in the reference.
In response to Leftley
On 7/11/01 5:31 pm Leftley wrote:
On 7/11/01 5:24 pm SSTrunks7 wrote:
First, I'd like to thank you for taking the time to read this, and now my two problems. I just started making a BYOND game about two days ago and while searching for a BYOND game to play I came across one, where when you talked to a NPC, the text would be in a pop-up and not in the text section. You would proceed by clicking a button that said "Ok".
Does anyone know how to do that?Any advice would be much appriciated. Now my second problem is with a combat system. I looked a Deadron's battle system example and I want to make it so you double-click to attack. I have no idea where to enter the "Dblclick()" code if that is what i should use at all. Please help if you can. Thank you again.

Can't help you with Deadron's stuff, but check the Alert() and Input() entries in the reference.


Thanks about the prompt thing. That was it. Thanks a lot! Does anyone else know anything about my other problem?
In response to SSTrunks7
sup Trunks...im making a Dbz game, i dunno about you but when i finish making my combat system for it, you could AIM me at Lord BaseX and i could send you it....thats about all i could do...not good at giving advice
In response to Lord Nova Ice
On 7/11/01 6:11 pm Lord Nova Ice wrote:
sup Trunks...im making a Dbz game, i dunno about you but when i finish making my combat system for it, you could AIM me at Lord BaseX and i could send you it....thats about all i could do...not good at giving advice


Thanx, i can't wait to see your combat system! Thanx again! Also, if anyone can offer help on my problem please help.
In response to SSTrunks7
On 7/11/01 7:37 pm SSTrunks7 wrote:
On 7/11/01 6:11 pm Lord Nova Ice wrote:
sup Trunks...im making a Dbz game, i dunno about you but when i finish making my combat system for it, you could AIM me at Lord BaseX and i could send you it....thats about all i could do...not good at giving advice


Thanx, i can't wait to see your combat system! Thanx again! Also, if anyone can offer help on my problem please help.


I have a oddly devised code of my own that allows you to click and attack and gain levels and stuff AIM me at SSnadrew if you interested

In response to SSTrunks7
On 7/11/01 5:51 pm SSTrunks7 wrote:
Now my second problem is with a combat system. I looked a Deadron's battle system example and I want to make it so you double-click to attack. I have no idea where to enter the "Dblclick()" code if that is what i should use at all. Please help if you can. Thank you again.
Thanks about the prompt thing. That was it. Thanks a lot! Does anyone else know anything about my other problem?

You should put Dblclick under the parent to all mobs that can be attacked. Most likely it's /mob, unless you have some ghosts or other entities that cannot be attacked. If that is the case, you might want to put all mob classes that can be attacked under /mob/player or something.

In Dblclick(), just call the normal attack proc from the library.

(Pseudo code, don't C&P!)
mob
   player
      Dblclick()
         var/mob/player/P = usr
         P.Attack(src)  // Library attack proc here

/Andreas
In response to Gazoot
On 7/12/01 3:57 am Gazoot wrote:
On 7/11/01 5:51 pm SSTrunks7 wrote:
Now my second problem is with a combat system. I looked a Deadron's battle system example and I want to make it so you double-click to attack. I have no idea where to enter the "Dblclick()" code if that is what i should use at all. Please help if you can. Thank you again.
Thanks about the prompt thing. That was it. Thanks a lot! Does anyone else know anything about my other problem?

You should put Dblclick under the parent to all mobs that can be attacked. Most likely it's /mob, unless you have some ghosts or other entities that cannot be attacked. If that is the case, you might want to put all mob classes that can be attacked under /mob/player or something.

In Dblclick(), just call the normal attack proc from the library.

(Pseudo code, don't C&P!)
mobplayerDblclick()var/mob/player/P = usrP.Attack(src) // Library attack proc here

/Andreas


Thanks a lot, that really helped!!

In response to SSTrunks7
On 7/12/01 6:45 pm SSTrunks7 wrote:
mob
player
Dblclick()
var/mob/player/P = usr
P.Attack(src) // Library attack proc here

Thanks a lot, that really helped!!

No problem, glad you liked it. I don't want to interefer with your combat system, but be aware of that in situations with lag, players might have a hard time doubleclicking on a mob. Selecting targets from a list and/or auto-attacking could be good as an extra option.


/Andreas